Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/ui/buttons_physic_cloth.py')
-rw-r--r--release/ui/buttons_physic_cloth.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/release/ui/buttons_physic_cloth.py b/release/ui/buttons_physic_cloth.py
index efa796df5b0..bd65392ad63 100644
--- a/release/ui/buttons_physic_cloth.py
+++ b/release/ui/buttons_physic_cloth.py
@@ -15,8 +15,7 @@ class Physic_PT_cloth(PhysicButtonsPanel):
def draw(self, context):
layout = self.layout
- md = context.cloth
- cloth = md.settings
+ cloth = context.cloth.settings
split = layout.split()
@@ -51,16 +50,14 @@ class Physic_PT_cloth_collision(PhysicButtonsPanel):
def draw_header(self, context):
layout = self.layout
- md = context.cloth
- cloth = md.collision_settings
+ cloth = context.cloth.collision_settings
layout.itemR(cloth, "enable_collision", text="")
def draw(self, context):
layout = self.layout
+ cloth = context.cloth.collision_settings
- md = context.cloth
- cloth = md.collision_settings
layout.active = cloth.enable_collision
col = layout.column_flow()
@@ -82,16 +79,14 @@ class Physic_PT_cloth_stiffness(PhysicButtonsPanel):
def draw_header(self, context):
layout = self.layout
- md = context.cloth
- cloth = md.settings
+ cloth = context.cloth.settings
layout.itemR(cloth, "stiffness_scaling", text="")
def draw(self, context):
layout = self.layout
+ cloth = context.cloth.settings
- md = context.cloth
- cloth = md.settings
layout.active = cloth.stiffness_scaling
split = layout.split()
@@ -108,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)