diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-20 16:01:16 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-09-20 16:01:16 +0400 |
commit | 7172316b945c62797e6beba953ff203766614531 (patch) | |
tree | 640ac56fadded9c7686399b5a1f1c64f1a135700 /release/scripts/startup/bl_ui/properties_material.py | |
parent | 2015eefef70350382931881dd65ed2da09f8f2cd (diff) | |
parent | 78d4260144dbf01166fac8bc9303e6d5aa022f71 (diff) |
Merging r40366 through r40392 from trunk into soc-2011-garlicsoc-2011-garlic
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index dda6610933d..7b04c990c6a 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -612,9 +612,37 @@ class MATERIAL_PT_flare(MaterialButtonsPanel, Panel): col.prop(halo, "flare_subflare_size", text=_("Subsize")) -class MATERIAL_PT_physics(MaterialButtonsPanel, Panel): +class MATERIAL_PT_game_settings(MaterialButtonsPanel, bpy.types.Panel): + bl_label = "Game Settings" + COMPAT_ENGINES = {'BLENDER_GAME'} + + @classmethod + def poll(cls, context): + return context.material and (context.scene.render.engine in cls.COMPAT_ENGINES) + + def draw(self, context): + layout = self.layout + game = context.material.game_settings # dont use node material + + row = layout.row() + row.prop(game, "back_culling") + row.prop(game, "invisible") + row.prop(game, "text") + + row = layout.row() + row.label(text="Alpha Blend:") + row.label(text="Face Orientation:") + row = layout.row() + row.prop(game,"alpha_blend",text="") + row.prop(game,"face_orientation",text="") + +class MATERIAL_PT_physics(MaterialButtonsPanel, bpy.types.Panel): bl_label = "Physics" COMPAT_ENGINES = {'BLENDER_GAME'} + + def draw_header(self, context): + game = context.material.game_settings + self.layout.prop(game, "physics", text="") @classmethod def poll(cls, context): @@ -622,6 +650,7 @@ class MATERIAL_PT_physics(MaterialButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.active = context.material.game_settings.physics phys = context.material.physics # dont use node material |