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_dynamicpaint.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_dynamicpaint.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py27
1 files changed, 19 insertions, 8 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
index 04696c793a6..db0794d8a8a 100644
--- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
+++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
@@ -120,7 +120,8 @@ class PHYSICS_PT_dp_advanced_canvas(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
- return md and md.ui_type == 'CANVAS' and md.canvas_settings and md.canvas_settings.canvas_surfaces.active
+ rd = context.scene.render
+ return md and md.ui_type == 'CANVAS' and md.canvas_settings and md.canvas_settings.canvas_surfaces.active and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -194,10 +195,13 @@ class PHYSICS_PT_dp_canvas_output(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
+ rd = context.scene.render
if not (md and md.ui_type == 'CANVAS' and md.canvas_settings):
return 0
surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
- return surface and not (surface.surface_format == 'VERTEX' and (surface.surface_type in {'DISPLACE', 'WAVE'}))
+ return (surface and
+ (not (surface.surface_format == 'VERTEX' and (surface.surface_type in {'DISPLACE', 'WAVE'}))) and
+ (not rd.use_game_engine))
def draw(self, context):
layout = self.layout
@@ -284,10 +288,11 @@ class PHYSICS_PT_dp_canvas_initial_color(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
+ rd = context.scene.render
if not (md and md.ui_type == 'CANVAS' and md.canvas_settings):
return 0
surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
- return (surface and surface.surface_type == 'PAINT')
+ return (surface and surface.surface_type == 'PAINT') and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -318,10 +323,11 @@ class PHYSICS_PT_dp_effects(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
+ rd = context.scene.render
if not (md and md.ui_type == 'CANVAS' and md.canvas_settings):
return False
surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
- return (surface and surface.surface_type == 'PAINT')
+ return (surface and surface.surface_type == 'PAINT') and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -366,11 +372,13 @@ class PHYSICS_PT_dp_cache(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
+ rd = context.scene.render
return (md and
md.ui_type == 'CANVAS' and
md.canvas_settings and
md.canvas_settings.canvas_surfaces.active and
- md.canvas_settings.canvas_surfaces.active.is_cache_user)
+ md.canvas_settings.canvas_surfaces.active.is_cache_user and
+ (not rd.use_game_engine))
def draw(self, context):
surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
@@ -385,7 +393,8 @@ class PHYSICS_PT_dp_brush_source(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
- return md and md.ui_type == 'BRUSH' and md.brush_settings
+ rd = context.scene.render
+ return md and md.ui_type == 'BRUSH' and md.brush_settings and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -437,7 +446,8 @@ class PHYSICS_PT_dp_brush_velocity(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
- return md and md.ui_type == 'BRUSH' and md.brush_settings
+ rd = context.scene.render
+ return md and md.ui_type == 'BRUSH' and md.brush_settings and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout
@@ -472,7 +482,8 @@ class PHYSICS_PT_dp_brush_wave(PhysicButtonsPanel, Panel):
@classmethod
def poll(cls, context):
md = context.dynamic_paint
- return md and md.ui_type == 'BRUSH' and md.brush_settings
+ rd = context.scene.render
+ return md and md.ui_type == 'BRUSH' and md.brush_settings and (not rd.use_game_engine)
def draw(self, context):
layout = self.layout