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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user