Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergej Reich <sergej.reich@googlemail.com>2012-08-01 21:19:32 +0400
committerSergej Reich <sergej.reich@googlemail.com>2012-08-01 21:19:32 +0400
commit0245229021da5fdb0cca876f3a9ff503b9fdc4fa (patch)
tree2555f02bd3b839f0b7eedb80a7fd1c8b49ea1c58 /source/blender/makesrna
parentc7ba25fdf88e5215914c1fd4ce6235b2683c2acf (diff)
game engine: Use flags instead of hardcoded numbers for rna properties
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c5
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 !!!!!!!!!!!!! */