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

Maniphest Tasks: T71182

Differential Revision: https://developer.blender.org/D6150
This commit is contained in:
Philipp Oeser 2019-10-29 10:21:04 +01:00
parent ff7be96322
commit 068c6a6f15
Notes: blender-bot 2023-02-14 03:34:17 +01:00
Referenced by issue #71182, Object Parenting - 'Without Inverse' option missing in menu and operator popup
1 changed files with 7 additions and 0 deletions

View File

@ -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")