diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2015-02-23 18:17:28 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2015-02-23 18:34:15 +0300 |
commit | 249f2b9ccfc26a0e1b98ad8d8da7f60701634894 (patch) | |
tree | 90d8ad57406e12f3169731517187212e4d773ece /source/blender/editors | |
parent | 9626f4fdf5406a4016a9a56f36dfe329d74a9b0c (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 430994aed60..bfa501c3732 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -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); } |