diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2016-04-12 17:28:00 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2016-04-12 17:28:00 +0300 |
commit | bcd12bf64d89165385ab4782bc05d7758fde734e (patch) | |
tree | eb3e2b57879ece121a8b36a51500921a4c71d64d /release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py | |
parent | 29a792a75b66e0222fb29694b9f33c2f70bbcaa6 (diff) |
Removed most partical-related code from UI scripts.
There are a lot of cases here where deciding for removal is a bit tricky.
Many features have options for "use_particles" and similar settings. Only
features which actually store a particle object reference or work on actual
particle data have been removed.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py index 269ffa6d371..87ec206de08 100644 --- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py +++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py @@ -124,10 +124,8 @@ class PHYSICS_PT_dynamic_paint(PhysicButtonsPanel, Panel): col = split.column() if not use_shading_nodes: - 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 not use_shading_nodes: + col.prop(brush, "use_material") + if brush.use_material and not use_shading_nodes: col.prop(brush, "material", text="") col.prop(brush, "paint_alpha", text="Alpha Factor") else: @@ -429,16 +427,6 @@ class PHYSICS_PT_dp_brush_source(PhysicButtonsPanel, Panel): col = split.column() col.prop(brush, "paint_source") - if brush.paint_source == 'PARTICLE_SYSTEM': - col.prop_search(brush, "particle_system", ob, "particle_systems", text="") - if brush.particle_system: - col.label(text="Particle effect:") - sub = col.column() - sub.active = not brush.use_particle_radius - sub.prop(brush, "solid_radius", text="Solid Radius") - col.prop(brush, "use_particle_radius", text="Use Particle's Radius") - col.prop(brush, "smooth_radius", text="Smooth radius") - if brush.paint_source in {'DISTANCE', 'VOLUME_DISTANCE', 'POINT'}: col.prop(brush, "paint_distance", text="Paint Distance") split = layout.row().split(percentage=0.4) |