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:
authorCampbell Barton <ideasman42@gmail.com>2018-04-24 21:46:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-24 21:46:18 +0300
commit1a8b24e1b1d3d4cdd28e56edd97aee631b44a907 (patch)
tree30327e72a2e2bf24e6e8542f7048de3ecf32bd8b /release/scripts
parentf3692c6ab973d85e48ac374533d46ab343dce3ec (diff)
UI: move rigid body physics to menu
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py28
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py27
2 files changed, 28 insertions, 27 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index ffa0cafbe8b..f1ed2f00a01 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1455,6 +1455,7 @@ class VIEW3D_MT_object(Menu):
layout.separator()
layout.menu("VIEW3D_MT_object_animation")
+ layout.menu("VIEW3D_MT_object_rigid_body")
layout.separator()
@@ -1481,6 +1482,32 @@ class VIEW3D_MT_object_animation(Menu):
layout.operator("nla.bake", text="Bake Action...")
+class VIEW3D_MT_object_rigid_body(Menu):
+ bl_label = "Rigid Body"
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.operator("rigidbody.objects_add", text="Add Active").type = 'ACTIVE'
+ layout.operator("rigidbody.objects_add", text="Add Passive").type = 'PASSIVE'
+
+ layout.separator()
+
+ layout.operator("rigidbody.objects_remove", text="Remove")
+
+ layout.separator()
+
+ layout.operator("rigidbody.shape_change", text="Change Shape")
+ layout.operator("rigidbody.mass_calculate", text="Calculate Mass")
+ layout.operator("rigidbody.object_settings_copy", text="Copy from Active")
+ layout.operator("object.visual_transform_apply", text="Apply Transformation")
+ layout.operator("rigidbody.bake_to_keyframes", text="Bake To Keyframes")
+
+ layout.separator()
+
+ layout.operator("rigidbody.connect", text="Connect")
+
+
class VIEW3D_MT_object_clear(Menu):
bl_label = "Clear"
@@ -3848,6 +3875,7 @@ classes = (
VIEW3D_MT_object_relations,
VIEW3D_MT_object,
VIEW3D_MT_object_animation,
+ VIEW3D_MT_object_rigid_body,
VIEW3D_MT_object_clear,
VIEW3D_MT_object_specials,
VIEW3D_MT_object_apply,
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 91d55303914..effb6c3e940 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -108,32 +108,6 @@ class VIEW3D_PT_tools_object(View3DPanel, Panel):
row.operator("object.datalayout_transfer", text="Data Layout")
-class VIEW3D_PT_tools_rigid_body(View3DPanel, Panel):
- bl_category = "Physics"
- bl_context = "objectmode"
- bl_label = "Rigid Body Tools"
-
- def draw(self, context):
- layout = self.layout
-
- col = layout.column(align=True)
- col.label(text="Add/Remove:")
- row = col.row(align=True)
- row.operator("rigidbody.objects_add", text="Add Active").type = 'ACTIVE'
- row.operator("rigidbody.objects_add", text="Add Passive").type = 'PASSIVE'
- row = col.row(align=True)
- row.operator("rigidbody.objects_remove", text="Remove")
-
- col = layout.column(align=True)
- col.label(text="Object Tools:")
- col.operator("rigidbody.shape_change", text="Change Shape")
- col.operator("rigidbody.mass_calculate", text="Calculate Mass")
- col.operator("rigidbody.object_settings_copy", text="Copy from Active")
- col.operator("object.visual_transform_apply", text="Apply Transformation")
- col.operator("rigidbody.bake_to_keyframes", text="Bake To Keyframes")
- col.label(text="Constraints:")
- col.operator("rigidbody.connect", text="Connect")
-
# ********** default tools for editmode_mesh ****************
@@ -1661,7 +1635,6 @@ class VIEW3D_PT_tools_history(View3DPanel, Panel):
classes = (
VIEW3D_PT_tools_object,
- VIEW3D_PT_tools_rigid_body,
VIEW3D_PT_tools_meshedit,
VIEW3D_PT_tools_shading,
VIEW3D_PT_tools_uvs,