Cleaning up some issues that found their way into the python ui files with the first Cucumber merge.

This commit is contained in:
Daniel Stokes 2011-12-20 07:39:30 +00:00
parent a17f4dfda6
commit 0be004bb2f
2 changed files with 7 additions and 4 deletions

@ -76,7 +76,7 @@ class ParticleButtonsPanel():
class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
bl_label = ""
bl_options = {'HIDE_HEADER'}
COMPAT_ENGINES = {'BLENDER_RENDER'}
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
@classmethod
def poll(cls, context):
@ -87,9 +87,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
layout = self.layout
if context.scene.render.engine == "BLENDER_GAME":
layout.label("The Blender particle system is")
layout.label("not available for use in the")
layout.label("Blender Game Engine")
layout.label("Not available in the Game Engine")
return
ob = context.object

@ -35,6 +35,7 @@ class SceneButtonsPanel():
class SCENE_PT_scene(SceneButtonsPanel, Panel):
bl_label = "Scene"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
def draw(self, context):
layout = self.layout
@ -75,6 +76,7 @@ class SCENE_PT_audio(SceneButtonsPanel, Panel):
class SCENE_PT_unit(SceneButtonsPanel, Panel):
bl_label = "Units"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
def draw(self, context):
layout = self.layout
@ -92,6 +94,7 @@ class SCENE_PT_unit(SceneButtonsPanel, Panel):
class SCENE_PT_keying_sets(SceneButtonsPanel, Panel):
bl_label = "Keying Sets"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
def draw(self, context):
layout = self.layout
@ -124,6 +127,7 @@ class SCENE_PT_keying_sets(SceneButtonsPanel, Panel):
class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel):
bl_label = "Active Keying Set"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
@classmethod
def poll(cls, context):
@ -191,6 +195,7 @@ class SCENE_PT_physics(SceneButtonsPanel, Panel):
class SCENE_PT_simplify(SceneButtonsPanel, Panel):
bl_label = "Simplify"
COMPAT_ENGINES = {'BLENDER_RENDER'}
def draw_header(self, context):
rd = context.scene.render