2.5 Single Column Layout:

* Added code to enable single column layout for general physic panels. 
Note: Force Field Falloff panel has some issues with single layout.
This commit is contained in:
2009-11-18 21:57:13 +00:00
parent 0c8b41e464
commit 5ed3081e5c
6 changed files with 71 additions and 42 deletions

View File

@@ -146,7 +146,7 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel):
md = context.smoke.domain_settings
cache = md.point_cache_low
point_cache_ui(self, cache, cache.baked == False, 0, 1)
point_cache_ui(self, context, cache, cache.baked == False, 0, 1)
class PHYSICS_PT_smoke_highres(PhysicButtonsPanel):
@@ -192,7 +192,7 @@ class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel):
md = context.smoke.domain_settings
cache = md.point_cache_high
point_cache_ui(self, cache, cache.baked == False, 0, 1)
point_cache_ui(self, context, cache, cache.baked == False, 0, 1)
class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel):
@@ -205,7 +205,7 @@ class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel):
def draw(self, context):
domain = context.smoke.domain_settings
effector_weights_ui(self, domain.effector_weights)
effector_weights_ui(self, context, domain.effector_weights)
bpy.types.register(PHYSICS_PT_smoke)
bpy.types.register(PHYSICS_PT_smoke_field_weights)