[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60295] branches/soc-2013-bge/release/ scripts/startup/bl_ui/properties_object.py: Making the level of detail UI only available while the renderer is set to "Blender Game" since it does not help the viewport other than as a preview for the game engine .
Daniel Stokes
kupomail at gmail.com
Sun Sep 22 02:52:09 CEST 2013
Revision: 60295
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60295
Author: kupoman
Date: 2013-09-22 00:52:08 +0000 (Sun, 22 Sep 2013)
Log Message:
-----------
Making the level of detail UI only available while the renderer is set to "Blender Game" since it does not help the viewport other than as a preview for the game engine.
Modified Paths:
--------------
branches/soc-2013-bge/release/scripts/startup/bl_ui/properties_object.py
Modified: branches/soc-2013-bge/release/scripts/startup/bl_ui/properties_object.py
===================================================================
--- branches/soc-2013-bge/release/scripts/startup/bl_ui/properties_object.py 2013-09-21 21:26:30 UTC (rev 60294)
+++ branches/soc-2013-bge/release/scripts/startup/bl_ui/properties_object.py 2013-09-22 00:52:08 UTC (rev 60295)
@@ -138,7 +138,12 @@
class OBJECT_PT_levels_of_detail(ObjectButtonsPanel, Panel):
bl_label = "Levels of Detail"
+ COMPAT_ENGINES = {'BLENDER_GAME'}
+ @classmethod
+ def poll(cls, context):
+ return context.scene.render.engine in cls.COMPAT_ENGINES
+
def draw(self, context):
layout = self.layout
ob = context.object
More information about the Bf-blender-cvs
mailing list