RNA: use 1/0 for move layers operator

internal api Consistency.

For the records, I suspect there are still a few cases of this. I found
this by chance (moving an object to a different layer), and I ran into
the previous one (fixed by Campbell) as well (by adding a cube).

Anyways, since it only happens when building with crash on asserts is
not a big issue. But by the time we change RNA to use bool instead of
int it would be nice to do a call for test to prevent those breaks.
This commit is contained in:
Dalai Felinto
2015-02-23 12:17:28 -03:00
parent 9626f4fdf5
commit 249f2b9ccf

View File

@@ -1316,7 +1316,7 @@ static unsigned int move_to_layer_init(bContext *C, wmOperator *op)
CTX_DATA_END;
for (a = 0; a < 20; a++)
values[a] = (lay & (1 << a));
values[a] = (lay & (1 << a)) != 0;
RNA_boolean_set_array(op->ptr, "layers", values);
}