Commit: 2cf121ca356af7086844fa3115cb3712cdf1bbd6
Author: Roman Pogribnyi
Date:   Fri May 30 13:40:24 2014 +0200
https://developer.blender.org/rB2cf121ca356af7086844fa3115cb3712cdf1bbd6

Mantaflow UI added: tab and file generation button

===================================================================

M       release/scripts/startup/bl_ui/properties_physics_smoke.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py 
b/release/scripts/startup/bl_ui/properties_physics_smoke.py
index 5bdbbd7..a706415 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -325,5 +325,27 @@ class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel, 
Panel):
         domain = context.smoke.domain_settings
         effector_weights_ui(self, context, domain.effector_weights, 'SMOKE')
 
+class PHYSICS_PT_smoke_manta_settings(PhysicButtonsPanel, Panel):
+    bl_label = "MantaFlow Settings"
+    bl_options = {'DEFAULT_CLOSED'}
+       
+    @classmethod
+    def poll(cls, context):
+        md = context.smoke
+        return md and (md.smoke_type == 'DOMAIN')
+       
+    def draw_header(self, context):
+        md = context.smoke.domain_settings
+        self.layout.prop(md, "use_manta", text="")
+       
+    def draw(self, context):
+        layout = self.layout
+               
+        domain = context.smoke.domain_settings
+        layout.active = domain.use_manta
+        col = layout.split()
+        col.operator("manta.make_file", text="Create Manta Setup")
+
+
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to