Commit: 2b847d1e6508b1b2da68f5e224305c62e0acf603
Author: Jorge Bernal
Date:   Fri Feb 13 00:05:16 2015 +0100
Branches: master
https://developer.blender.org/rB2b847d1e6508b1b2da68f5e224305c62e0acf603

BGE: Remove translation and rotation constrains subpanel from dynamics type

The translation and rotation locks subpanel was not used by dynamic physics 
type to avoid inestability in the application of forces and/or torques. 
Therefore it is better to remove it from UI (for dynamics) to avoid 
misunderstandings.

Reviewers: moguri, dfelinto, campbellbarton

Reviewed By: campbellbarton

Subscribers: panzergame

Differential Revision: https://developer.blender.org/D1090

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_game.py 
b/release/scripts/startup/bl_ui/properties_game.py
index 4cb6929..3daf938 100644
--- a/release/scripts/startup/bl_ui/properties_game.py
+++ b/release/scripts/startup/bl_ui/properties_game.py
@@ -100,6 +100,7 @@ class PHYSICS_PT_game_physics(PhysicsButtonsPanel, Panel):
             sub.prop(game, "damping", text="Translation", slider=True)
             sub.prop(game, "rotation_damping", text="Rotation", slider=True)
 
+        if physics_type == 'RIGID_BODY':
             layout.separator()
 
             split = layout.split()

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to