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:
authorMiika Hamalainen <blender@miikah.org>2011-11-09 19:46:53 +0400
committerMiika Hamalainen <blender@miikah.org>2011-11-09 19:46:53 +0400
commit1b4a54ad73c058baa59ffdc9e5f18b0b79030fb0 (patch)
treea5b84d392ea14b0d760a5e24f7a8e51f203d558c /release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
parentedec46b0a6aac18f406991b9e16228d4bd848c61 (diff)
parentbc5ec4e69cf3308c2563239c0e8372b853800a78 (diff)
Merge with trunk r41701soc-2011-carrot
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
index 0263b0b52dd..fdaa1ae7a60 100644
--- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
+++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
@@ -87,6 +87,7 @@ class PHYSICS_PT_dynamic_paint(PhysicButtonsPanel, bpy.types.Panel):
elif (md.ui_type == "BRUSH"):
brush = md.brush_settings
+ engine = context.scene.render.engine
if (not brush):
layout.operator("dpaint.type_toggle", text="Add Brush").type = 'BRUSH'
@@ -101,10 +102,11 @@ class PHYSICS_PT_dynamic_paint(PhysicButtonsPanel, bpy.types.Panel):
col.prop(brush, "paint_wetness", text="Wetness")
col = split.column()
- sub = col.column()
- sub.active = (brush.paint_source != "PARTICLE_SYSTEM");
- sub.prop(brush, "use_material")
- if brush.use_material and brush.paint_source != "PARTICLE_SYSTEM":
+ if (engine == 'BLENDER_RENDER'):
+ sub = col.column()
+ sub.active = (brush.paint_source != "PARTICLE_SYSTEM");
+ sub.prop(brush, "use_material")
+ if brush.use_material and brush.paint_source != "PARTICLE_SYSTEM" and (engine == 'BLENDER_RENDER'):
col.prop(brush, "material", text="")
col.prop(brush, "paint_alpha", text="Alpha Factor")
else: