[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44735] trunk/blender/release/scripts/ startup/bl_ui/properties_physics_fluid.py: Fix #30464: Confusing lack of label for Fluid "use"

Sergey Sharybin sergey.vfx at gmail.com
Thu Mar 8 11:13:37 CET 2012


Revision: 44735
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44735
Author:   nazgul
Date:     2012-03-08 10:13:31 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
Fix #30464: Confusing lack of label for Fluid "use"

It was indeed not clear at all what that label-less check box does.
Move it to next row (to prevent fluid type menu be too narrow) and
use label default for it.

Also don't create second column which is empty for outflow fluid type.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_physics_fluid.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_physics_fluid.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_physics_fluid.py	2012-03-08 10:01:03 UTC (rev 44734)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_physics_fluid.py	2012-03-08 10:13:31 UTC (rev 44735)
@@ -42,14 +42,14 @@
         md = context.fluid
         fluid = md.settings
 
-        row = layout.row()
+        col = layout.column()
         if fluid is None:
-            row.label("Built without fluids")
+            col.label("Built without fluids")
             return
 
-        row.prop(fluid, "type")
+        col.prop(fluid, "type")
         if fluid.type not in {'NONE', 'DOMAIN', 'PARTICLE', 'FLUID'}:
-            row.prop(fluid, "use", text="")
+            col.prop(fluid, "use")
 
         layout = layout.column()
         if fluid.type not in {'NONE', 'DOMAIN', 'PARTICLE', 'FLUID'}:
@@ -134,15 +134,11 @@
             col.prop(fluid, "inflow_velocity", text="")
 
         elif fluid.type == 'OUTFLOW':
-            split = layout.split()
-
-            col = split.column()
+            col = layout.column()
             col.label(text="Volume Initialization:")
             col.prop(fluid, "volume_initialization", text="")
             col.prop(fluid, "use_animated_mesh")
 
-            split.column()
-
         elif fluid.type == 'PARTICLE':
             split = layout.split()
 




More information about the Bf-blender-cvs mailing list