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:
authorThomas Dinges <blender@dingto.org>2011-11-10 23:10:23 +0400
committerThomas Dinges <blender@dingto.org>2011-11-10 23:10:23 +0400
commit9e3deee808e127e3700a91d6547c22716f7d7ccd (patch)
tree1067c0b6881334f430c50cda3589f0e648a1dc39 /release/scripts/startup/bl_ui/properties_physics_softbody.py
parentc8cb79a11f41bde65c762a334d48ce4bf854dd47 (diff)
2.6 Physics UI Files:
* Remove redundant check for md, this is already done in the super class poll.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_softbody.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_softbody.py27
1 files changed, 12 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_softbody.py b/release/scripts/startup/bl_ui/properties_physics_softbody.py
index b9f8910fa59..ea4180c891f 100644
--- a/release/scripts/startup/bl_ui/properties_physics_softbody.py
+++ b/release/scripts/startup/bl_ui/properties_physics_softbody.py
@@ -39,8 +39,6 @@ class PhysicButtonsPanel():
def poll(cls, context):
ob = context.object
rd = context.scene.render
-# return (ob and ob.type == 'MESH') and (not rd.use_game_engine)
-# i really hate touching things i do not understand completely .. but i think this should read (bjornmose)
return (ob and (ob.type == 'MESH' or ob.type == 'LATTICE'or ob.type == 'CURVE')) and (not rd.use_game_engine) and (context.soft_body)
@@ -53,22 +51,21 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel, Panel):
md = context.soft_body
ob = context.object
- if md:
- softbody = md.settings
+ softbody = md.settings
- # General
- split = layout.split()
- split.enabled = softbody_panel_enabled(md)
+ # General
+ split = layout.split()
+ split.enabled = softbody_panel_enabled(md)
- col = split.column()
- col.label(text="Object:")
- col.prop(softbody, "friction")
- col.prop(softbody, "mass")
- col.prop_search(softbody, "vertex_group_mass", ob, "vertex_groups", text="Mass:")
+ col = split.column()
+ col.label(text="Object:")
+ col.prop(softbody, "friction")
+ col.prop(softbody, "mass")
+ col.prop_search(softbody, "vertex_group_mass", ob, "vertex_groups", text="Mass:")
- col = split.column()
- col.label(text="Simulation:")
- col.prop(softbody, "speed")
+ col = split.column()
+ col.label(text="Simulation:")
+ col.prop(softbody, "speed")
class PHYSICS_PT_softbody_cache(PhysicButtonsPanel, Panel):