Fix #143439: Explicit Properties for Knife Tool
This adds "use_occlude_geometry=True" and "only_selected=False" to the keymap entry for K, mesh.knife_tool, even though these are the default values for this operator. This fixes the complaint. And these same props are set for "Knife Topology Tool" on the VIEW3D_MT_edit_mesh menu so that it displays the shortcut correctly (#139393 remains corrected). Pull Request: https://projects.blender.org/blender/blender/pulls/143673
This commit is contained in:
committed by
Harley Acheson
parent
0cce8536dc
commit
1ecd193488
@@ -5405,7 +5405,8 @@ def km_edit_mesh(params):
|
||||
("mesh.dissolve_mode", {"type": 'X', "value": 'PRESS', "ctrl": True}, None),
|
||||
("mesh.dissolve_mode", {"type": 'DEL', "value": 'PRESS', "ctrl": True}, None),
|
||||
op_tool_optional(
|
||||
("mesh.knife_tool", {"type": 'K', "value": 'PRESS'}, None),
|
||||
("mesh.knife_tool", {"type": 'K', "value": 'PRESS'},
|
||||
{"properties": [("use_occlude_geometry", True), ("only_selected", False)]}),
|
||||
(op_tool_cycle, "builtin.knife"), params),
|
||||
("mesh.knife_tool", {"type": 'K', "value": 'PRESS', "shift": True},
|
||||
{"properties": [("use_occlude_geometry", False), ("only_selected", True)]}),
|
||||
|
||||
@@ -4453,7 +4453,9 @@ class VIEW3D_MT_edit_mesh(Menu):
|
||||
|
||||
layout.operator("mesh.bisect")
|
||||
layout.operator("mesh.knife_project")
|
||||
layout.operator("mesh.knife_tool")
|
||||
props = layout.operator("mesh.knife_tool")
|
||||
props.use_occlude_geometry = True
|
||||
props.only_selected = False
|
||||
|
||||
if with_bullet:
|
||||
layout.operator("mesh.convex_hull")
|
||||
|
||||
Reference in New Issue
Block a user