[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39481] branches/soc-2011-salad/release/ scripts/startup/bl_ui/properties_scene.py: Fixing problem with missing COMPAT_ENGINES for some panels from Scene buttons .
Sergey Sharybin
g.ulairi at gmail.com
Wed Aug 17 09:28:42 CEST 2011
Revision: 39481
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39481
Author: nazgul
Date: 2011-08-17 07:28:42 +0000 (Wed, 17 Aug 2011)
Log Message:
-----------
Fixing problem with missing COMPAT_ENGINES for some panels from Scene buttons.
Modified Paths:
--------------
branches/soc-2011-salad/release/scripts/startup/bl_ui/properties_scene.py
Modified: branches/soc-2011-salad/release/scripts/startup/bl_ui/properties_scene.py
===================================================================
--- branches/soc-2011-salad/release/scripts/startup/bl_ui/properties_scene.py 2011-08-17 07:25:28 UTC (rev 39480)
+++ branches/soc-2011-salad/release/scripts/startup/bl_ui/properties_scene.py 2011-08-17 07:28:42 UTC (rev 39481)
@@ -30,9 +30,16 @@
@classmethod
def poll(cls, context):
rd = context.scene.render
- return context.scene and (rd.engine in cls.COMPAT_ENGINES)
+ if context.scene:
+ if hasattr(cls, "COMPAT_ENGINES"):
+ return rd.engine in cls.COMPAT_ENGINES
+ return True
+
+ return False
+
+
class SCENE_PT_scene(SceneButtonsPanel, Panel):
bl_label = "Scene"
More information about the Bf-blender-cvs
mailing list