diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2009-07-30 19:00:26 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2009-07-30 19:00:26 +0400 |
commit | 58c88bcf7636abce291168af189284181f2f7033 (patch) | |
tree | f99c18e5601242113b0d3888331578d5b0966c59 /release | |
parent | 1b26fe50c35afe5c83a0bf3a69fce55db00374d3 (diff) |
BF2.5: First commit of smoke code.
Not working:
a) rendering (since volumterics branch is not merged yet)
b) moving collision objects of any kind
c) saving of collision objects (because that's what I am working on)
d) pointcache
e) A bunch of other things I already know of
So please do not report any bugs on this one yet :-)
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_data_modifier.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/release/ui/buttons_data_modifier.py b/release/ui/buttons_data_modifier.py index 909677d61f0..64ffeae8fdb 100644 --- a/release/ui/buttons_data_modifier.py +++ b/release/ui/buttons_data_modifier.py @@ -82,6 +82,8 @@ 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") @@ -434,5 +436,30 @@ 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) |