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:
authorLukas Tönne <lukas.toenne@gmail.com>2016-04-12 17:28:00 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2016-04-12 17:28:00 +0300
commitbcd12bf64d89165385ab4782bc05d7758fde734e (patch)
treeeb3e2b57879ece121a8b36a51500921a4c71d64d /release/scripts/startup/bl_ui/properties_physics_common.py
parent29a792a75b66e0222fb29694b9f33c2f70bbcaa6 (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_common.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_common.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py
index 82eecf0fb5a..04cb592a0d1 100644
--- a/release/scripts/startup/bl_ui/properties_physics_common.py
+++ b/release/scripts/startup/bl_ui/properties_physics_common.py
@@ -97,7 +97,7 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel):
'CONSTRAINT') # RB_TODO needs better icon
-# cache-type can be 'PSYS' 'HAIR' 'SMOKE' etc
+# cache-type can be 'CLOTH', 'SMOKE' etc
def point_cache_ui(self, context, cache, enabled, cachetype):
layout = self.layout
@@ -113,11 +113,9 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
col.operator("ptcache.remove", icon='ZOOMOUT', text="")
row = layout.row()
- if cachetype in {'PSYS', 'HAIR', 'SMOKE'}:
+ if cachetype == 'SMOKE':
row.prop(cache, "use_external")
-
- if cachetype == 'SMOKE':
- row.prop(cache, "use_library_path", "Use Lib Path")
+ row.prop(cache, "use_library_path", "Use Lib Path")
if cache.use_external:
split = layout.split(percentage=0.35)
@@ -141,7 +139,7 @@ def point_cache_ui(self, context, cache, enabled, cachetype):
if not cache.use_external or cachetype == 'SMOKE':
row = layout.row(align=True)
- if cachetype not in {'PSYS', 'DYNAMIC_PAINT'}:
+ if cachetype != 'DYNAMIC_PAINT':
row.enabled = enabled
row.prop(cache, "frame_start")
row.prop(cache, "frame_end")