[Bf-blender-cvs] [068c6a6f151] blender-v2.81-release: Fix T71182: Object Parenting - 'Without Inverse' option missing in menu

Philipp Oeser noreply at git.blender.org
Wed Oct 30 14:18:04 CET 2019


Commit: 068c6a6f1516bc7d25da7f33dff3181e323b432e
Author: Philipp Oeser
Date:   Tue Oct 29 10:21:04 2019 +0100
Branches: blender-v2.81-release
https://developer.blender.org/rB068c6a6f1516bc7d25da7f33dff3181e323b432e

Fix T71182: Object Parenting - 'Without Inverse' option missing in menu

Maniphest Tasks: T71182

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

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index eab1abd279a..bfad70dcb49 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2536,11 +2536,18 @@ class VIEW3D_MT_object_parent(Menu):
 
     def draw(self, _context):
         layout = self.layout
+        operator_context_default = layout.operator_context
 
         layout.operator_enum("object.parent_set", "type")
 
         layout.separator()
 
+        layout.operator_context = 'EXEC_DEFAULT'
+        layout.operator("object.parent_no_inverse_set")
+        layout.operator_context = operator_context_default
+
+        layout.separator()
+
         layout.operator_enum("object.parent_clear", "type")



More information about the Bf-blender-cvs mailing list