diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2012-08-01 21:19:32 +0400 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2012-08-01 21:19:32 +0400 |
commit | 0245229021da5fdb0cca876f3a9ff503b9fdc4fa (patch) | |
tree | 2555f02bd3b839f0b7eedb80a7fd1c8b49ea1c58 | |
parent | c7ba25fdf88e5215914c1fd4ce6235b2683c2acf (diff) |
game engine: Use flags instead of hardcoded numbers for rna properties
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 442f474eb2b..7148958943b 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -37,6 +37,7 @@ #include "DNA_particle_types.h" #include "DNA_scene_types.h" #include "DNA_userdef_types.h" +#include "DNA_world_types.h" #include "BLI_math.h" @@ -2635,13 +2636,13 @@ static void rna_def_scene_game_data(BlenderRNA *brna) /* mode */ prop = RNA_def_property(srna, "use_occlusion_culling", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "mode", (1 << 5)); /*XXX mode hardcoded *//* WO_DBVT_CULLING */ + RNA_def_property_boolean_sdna(prop, NULL, "mode", WO_DBVT_CULLING); RNA_def_property_ui_text(prop, "DBVT culling", "Use optimized Bullet DBVT tree for view frustum and occlusion culling"); /* not used *//* deprecated !!!!!!!!!!!!! */ prop = RNA_def_property(srna, "use_activity_culling", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_sdna(prop, NULL, "mode", (1 << 3)); /*XXX mode hardcoded */ + RNA_def_property_boolean_sdna(prop, NULL, "mode", WO_ACTIVITY_CULLING); RNA_def_property_ui_text(prop, "Activity Culling", "Activity culling is enabled"); /* not used *//* deprecated !!!!!!!!!!!!! */ |