[Bf-blender-cvs] [92e75a54f4] fracture_modifier: Cleanup

Jens Verwiebe noreply at git.blender.org
Wed Feb 22 15:59:28 CET 2017


Commit: 92e75a54f40610d045276bf743db7f365452be24
Author: Jens Verwiebe
Date:   Wed Feb 22 15:57:41 2017 +0100
Branches: fracture_modifier
https://developer.blender.org/rB92e75a54f40610d045276bf743db7f365452be24

Cleanup

===================================================================

M	release/scripts/startup/bl_ui/properties_physics_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py
index 003ecf4af8..65359fa80e 100644
--- a/release/scripts/startup/bl_ui/properties_physics_common.py
+++ b/release/scripts/startup/bl_ui/properties_physics_common.py
@@ -78,7 +78,7 @@ class PHYSICS_PT_add(PhysicButtonsPanel, Panel):
             physics_add(self, col, context.dynamic_paint, "Dynamic Paint", 'DYNAMIC_PAINT', 'MOD_DYNAMICPAINT', True)
             physics_add(self, col, context.fracture, "Fracture", 'FRACTURE', 'MOD_EXPLODE', True)
 
-        if obj.type == 'CURVE' or obj.type == 'SURFACE' or obj.type == 'FONT':
+        if obj.type in {'CURVE', 'SURFACE', 'FONT'}:
             physics_add(self, col, context.fracture, "Fracture", 'FRACTURE', 'MOD_EXPLODE', True)
 
         col = split.column()




More information about the Bf-blender-cvs mailing list