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:
authorThomas Dinges <blender@dingto.org>2009-07-30 20:38:00 +0400
committerThomas Dinges <blender@dingto.org>2009-07-30 20:38:00 +0400
commit2f79219c07c60bcfdac9787710ed573d034e4ea3 (patch)
tree36d31602fc6bb3ebc501f4d4a17f4db44ac6c93c /release
parent20819ddcc9b1ef300d85a5fbbed6fafa86931a28 (diff)
2.5 Smoke:
* Put Smoke Modifier in the right alphabetical order in RNA and py file. * Some small naming changes. Commit approved by Genscher. :)
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_data_modifier.py55
1 files changed, 28 insertions, 27 deletions
diff --git a/release/ui/buttons_data_modifier.py b/release/ui/buttons_data_modifier.py
index 64ffeae8fdb..ae824e73720 100644
--- a/release/ui/buttons_data_modifier.py
+++ b/release/ui/buttons_data_modifier.py
@@ -70,6 +70,8 @@ class DATA_PT_modifiers(DataButtonsPanel):
self.shrinkwrap(box, ob, md)
elif md.type == 'SIMPLE_DEFORM':
self.simpledeform(box, ob, md)
+ elif md.type == 'SMOKE':
+ self.smoke(box, ob, md)
elif md.type == 'SMOOTH':
self.smooth(box, ob, md)
elif md.type == 'SOFTBODY':
@@ -82,8 +84,6 @@ class DATA_PT_modifiers(DataButtonsPanel):
self.uvproject(box, ob, md)
elif md.type == 'WAVE':
self.wave(box, ob, md)
- if md.type == 'SMOKE':
- self.smoke(box, ob, md)
def armature(self, layout, ob, md):
layout.itemR(md, "object")
@@ -357,6 +357,32 @@ class DATA_PT_modifiers(DataButtonsPanel):
if md.mode in ('TAPER', 'STRETCH'):
layout.itemR(md, "lock_x_axis")
layout.itemR(md, "lock_y_axis")
+
+ def smoke(self, layout, ob, md):
+ layout.itemR(md, "smoke_type")
+
+ if md.smoke_type == 'TYPE_DOMAIN':
+ layout.itemS()
+ layout.itemR(md.domain_settings, "maxres")
+ layout.itemR(md.domain_settings, "color")
+ layout.itemR(md.domain_settings, "amplify")
+ layout.itemR(md.domain_settings, "highres")
+ layout.itemR(md.domain_settings, "noise_type")
+ layout.itemR(md.domain_settings, "visibility")
+ layout.itemR(md.domain_settings, "alpha")
+ layout.itemR(md.domain_settings, "beta")
+ layout.itemR(md.domain_settings, "fluid_group")
+ layout.itemR(md.domain_settings, "eff_group")
+ layout.itemR(md.domain_settings, "coll_group")
+ elif md.smoke_type == 'TYPE_FLOW':
+ layout.itemS()
+ layout.itemR(md.flow_settings, "density")
+ layout.itemR(md.flow_settings, "temperature")
+ layout.itemL(text="Velocity")
+ layout.row().itemR(md.flow_settings, "velocity", text="")
+ layout.item_pointerR(md.flow_settings, "psys", ob, "particle_systems")
+ elif md.smoke_type == 'TYPE_COLL':
+ layout.itemS()
def smooth(self, layout, ob, md):
split = layout.split()
@@ -436,30 +462,5 @@ class DATA_PT_modifiers(DataButtonsPanel):
flow.itemR(md, "height", slider=True)
flow.itemR(md, "width", slider=True)
flow.itemR(md, "narrowness", slider=True)
-
- def smoke(self, layout, ob, md):
- layout.itemR(md, "fluid_type")
- if md.fluid_type == 'TYPE_DOMAIN':
- layout.itemS()
- layout.itemR(md.domain_settings, "maxres")
- layout.itemR(md.domain_settings, "color")
- layout.itemR(md.domain_settings, "amplify")
- layout.itemR(md.domain_settings, "highres")
- layout.itemR(md.domain_settings, "noise_type")
- layout.itemR(md.domain_settings, "visibility")
- layout.itemR(md.domain_settings, "alpha")
- layout.itemR(md.domain_settings, "beta")
- layout.itemR(md.domain_settings, "fluid_group")
- layout.itemR(md.domain_settings, "eff_group")
- layout.itemR(md.domain_settings, "coll_group")
- if md.fluid_type == 'TYPE_FLOW':
- layout.itemS()
- layout.itemR(md.flow_settings, "density")
- layout.itemR(md.flow_settings, "temperature")
- layout.itemL(text="Velocity")
- layout.row().itemR(md.flow_settings, "velocity", text="")
- layout.item_pointerR(md.flow_settings, "psys", ob, "particle_systems")
- if md.fluid_type == 'TYPE_FLUID':
- layout.itemS()
bpy.types.register(DATA_PT_modifiers)