2.5 Physic Buttons:
authorThomas Dinges <blender@dingto.org>
Fri, 3 Jul 2009 14:32:27 +0000 (14:32 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 3 Jul 2009 14:32:27 +0000 (14:32 +0000)
* Added some collision buttons. Patch by Wahooney. Thanks!

release/ui/buttons_physics_field.py

index 5843d1aadf655e5479add5ea42813c97c7696a6b..f3dc0f267d8e4073a55ee89ce58fc86b5593fab4 100644 (file)
@@ -46,7 +46,22 @@ class PHYSICS_PT_collision(PhysicButtonsPanel):
 
                if settings.enabled:
                        pass
+                       
+                       split = layout.split()
+                       
+                       col = split.column()
+                       col.itemL(text="Damping:")
+                       col.itemR(settings, "damping_factor", text="Factor");
+                       col.itemR(settings, "random_damping", text="Random");
+                       
+                       col = split.column()
+                       col.itemL(text="Friction:")
+                       col.itemR(settings, "friction_factor", text="Factor");
+                       col.itemR(settings, "random_friction", text="Random");
+                       
+                       layout.itemR(settings, "permeability");
+                       
+                       layout.itemR(settings, "kill_particles");
 
 bpy.types.register(PHYSICS_PT_field)
 bpy.types.register(PHYSICS_PT_collision)
-