Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(966)

Unified Diff: release/scripts/startup/bl_ui/properties_scene.py

Issue 4961053: Blender Cucumber to Trunk Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Fixes to crashing DDS mipmaps, leaking dyn lights, and some review comments. Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: release/scripts/startup/bl_ui/properties_scene.py
===================================================================
--- release/scripts/startup/bl_ui/properties_scene.py (revision 40024)
+++ release/scripts/startup/bl_ui/properties_scene.py (working copy)
@@ -29,12 +29,13 @@
@classmethod
def poll(cls, context):
- return context.scene
+ rd = context.scene.render
+ return context.scene and (rd.engine in cls.COMPAT_ENGINES)
class SCENE_PT_scene(SceneButtonsPanel, Panel):
bl_label = "Scene"
- COMPAT_ENGINES = {'BLENDER_RENDER'}
+ COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
def draw(self, context):
layout = self.layout
@@ -74,7 +75,7 @@
class SCENE_PT_unit(SceneButtonsPanel, Panel):
bl_label = "Units"
- COMPAT_ENGINES = {'BLENDER_RENDER'}
+ COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
def draw(self, context):
layout = self.layout

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b