UI:
[blender-staging.git] / release / ui / buttons_physic_cloth.py
index 09c21b4eb641d3e5714ce612cdafdd092f990fff..bd65392ad63426d5d2350b74d84b73bf95f66d6e 100644 (file)
@@ -50,13 +50,13 @@ class Physic_PT_cloth_collision(PhysicButtonsPanel):
        
        def draw_header(self, context):
                layout = self.layout
-               cloth = context.cloth.settings
+               cloth = context.cloth.collision_settings
        
                layout.itemR(cloth, "enable_collision", text="")
 
        def draw(self, context):
                layout = self.layout
-               cloth = context.cloth.settings
+               cloth = context.cloth.collision_settings
                
                layout.active = cloth.enable_collision  
                
@@ -103,4 +103,4 @@ class Physic_PT_cloth_stiffness(PhysicButtonsPanel):
                
 bpy.types.register(Physic_PT_cloth)
 bpy.types.register(Physic_PT_cloth_collision)
-bpy.types.register(Physic_PT_cloth_stiffness)
\ No newline at end of file
+bpy.types.register(Physic_PT_cloth_stiffness)