diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2015-07-13 21:51:31 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2015-07-13 21:52:05 +0300 |
commit | 34a7156705c98e8b146f5e051981a7355ff719dd (patch) | |
tree | eee8ff2bf883bf3eca50d9f6a7ae5a548f807c55 /source/blender/makesrna | |
parent | 406b9aa7b1ead0ff2757a463bc7efe9fdcee5fbe (diff) |
RNA assert: make object game state to comply with RNA_property_boolean_get_index() 1/0 requirement
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index de39c7bc554..67243d493a2 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -1134,7 +1134,7 @@ static void rna_GameObjectSettings_state_get(PointerRNA *ptr, int *values) memset(values, 0, sizeof(int) * OB_MAX_STATES); for (i = 0; i < OB_MAX_STATES; i++) { - values[i] = (ob->state & (1 << i)) | all_states; + values[i] = (ob->state & (1 << i)) ? 1 : 0 | all_states; } } |