[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49468] trunk/blender/source/blender/ makesrna/intern/rna_scene.c: game engine: Use flags instead of hardcoded numbers for rna properties
Sergej Reich
sergej.reich at googlemail.com
Wed Aug 1 19:19:33 CEST 2012
Revision: 49468
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49468
Author: sergof
Date: 2012-08-01 17:19:32 +0000 (Wed, 01 Aug 2012)
Log Message:
-----------
game engine: Use flags instead of hardcoded numbers for rna properties
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_scene.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c 2012-08-01 16:17:44 UTC (rev 49467)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c 2012-08-01 17:19:32 UTC (rev 49468)
@@ -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 @@
/* 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 !!!!!!!!!!!!! */
More information about the Bf-blender-cvs
mailing list