[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56865] trunk/blender/release/scripts/ startup/bl_ui/properties_game.py: partial revert of commit 54126 - (BGE UI: removing " use_occlusion_culling" from the ui)
Dalai Felinto
dfelinto at gmail.com
Thu May 16 23:37:25 CEST 2013
Revision: 56865
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56865
Author: dfelinto
Date: 2013-05-16 21:37:24 +0000 (Thu, 16 May 2013)
Log Message:
-----------
partial revert of commit 54126 - (BGE UI: removing " use_occlusion_culling" from the ui)
bug reported by Eloy Felix over email
Apparently there are some files that will perform better with "use_occlusion_culling" off.
For now the UI option can return.
Technically this could make into 2.67a, but the string is not localized (it'll be in English).
Not sure what is more important here:
- consistent UI OR to expose in the UI an option some people need
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_game.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_game.py 2013-05-16 18:39:45 UTC (rev 56864)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_game.py 2013-05-16 21:37:24 UTC (rev 56865)
@@ -619,11 +619,9 @@
gs = context.scene.game_settings
- layout.prop(gs, "physics_engine")
+ layout.prop(gs, "physics_engine", text="Engine")
if gs.physics_engine != 'NONE':
- col = layout.column()
- col.prop(gs, "physics_gravity", text="Gravity")
- col.prop(gs, "occlusion_culling_resolution", text="Culling Resolution")
+ layout.prop(gs, "physics_gravity", text="Gravity")
split = layout.split()
@@ -645,6 +643,12 @@
sub.prop(gs, "deactivation_angular_threshold", text="Angular Threshold")
sub = col.row()
sub.prop(gs, "deactivation_time", text="Time")
+
+ col = layout.column()
+ col.prop(gs, "use_occlusion_culling", text="Occlusion Culling")
+ sub = col.column()
+ sub.active = gs.use_occlusion_culling
+ sub.prop(gs, "occlusion_culling_resolution", text="Resolution")
else:
split = layout.split()
More information about the Bf-blender-cvs
mailing list