Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergej Reich <sergej.reich@googlemail.com>2012-06-08 19:24:28 +0400
committerSergej Reich <sergej.reich@googlemail.com>2012-06-08 19:24:28 +0400
commit221a7878223e983372ba830e4ca1a17067abf2ba (patch)
tree13438c7f4461b37517a123e447867dfa0773c79e /release/scripts/startup/bl_ui/properties_physics_fluid.py
parent909752a3da73e3630769fdd886cd69f02f0fe2fc (diff)
Don't show physics properties in game engine conext
Also rename fluid panels to be more consistent with other simulations
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_fluid.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_fluid.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py
index beb525bbd07..751f3e18acc 100644
--- a/release/scripts/startup/bl_ui/properties_physics_fluid.py
+++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py
@@ -192,13 +192,14 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel):
class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, Panel):
- bl_label = "Domain World"
+ bl_label = "Fluid World"
bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
md = context.fluid
- return md and md.settings and (md.settings.type == 'DOMAIN')
+ rd = context.scene.render
+ return md and md.settings and (md.settings.type == 'DOMAIN') and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -244,13 +245,14 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, Panel):
class PHYSICS_PT_domain_boundary(PhysicButtonsPanel, Panel):
- bl_label = "Domain Boundary"
+ bl_label = "Fluid Boundary"
bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
md = context.fluid
- return md and md.settings and (md.settings.type == 'DOMAIN')
+ rd = context.scene.render
+ return md and md.settings and (md.settings.type == 'DOMAIN') and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -273,13 +275,14 @@ class PHYSICS_PT_domain_boundary(PhysicButtonsPanel, Panel):
class PHYSICS_PT_domain_particles(PhysicButtonsPanel, Panel):
- bl_label = "Domain Particles"
+ bl_label = "Fluid Particles"
bl_options = {'DEFAULT_CLOSED'}
@classmethod
def poll(cls, context):
md = context.fluid
- return md and md.settings and (md.settings.type == 'DOMAIN')
+ rd = context.scene.render
+ return md and md.settings and (md.settings.type == 'DOMAIN') and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout