GPv3: Transform operators (translate, rotate, scale, opacity, radius) #111836
@ -7273,6 +7273,16 @@ def km_3d_view_tool_shear(params):
|
|||||||
]},
|
]},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def km_3d_view_tool_bend(params):
|
||||||
|
return (
|
||||||
|
"3D View Tool: Bend",
|
||||||
|
{"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
|
||||||
|
{"items": [
|
||||||
|
# No need for `tool_modifier` since this takes all input.
|
||||||
|
("transform.bend", params.tool_maybe_tweak_event,
|
||||||
|
{"properties": [("release_confirm", True)]}),
|
||||||
|
]},
|
||||||
|
)
|
||||||
|
|
||||||
def km_3d_view_tool_measure(params):
|
def km_3d_view_tool_measure(params):
|
||||||
return (
|
return (
|
||||||
@ -8575,6 +8585,7 @@ def generate_keymaps(params=None):
|
|||||||
km_3d_view_tool_rotate(params),
|
km_3d_view_tool_rotate(params),
|
||||||
km_3d_view_tool_scale(params),
|
km_3d_view_tool_scale(params),
|
||||||
km_3d_view_tool_shear(params),
|
km_3d_view_tool_shear(params),
|
||||||
|
km_3d_view_tool_bend(params),
|
||||||
km_3d_view_tool_measure(params),
|
km_3d_view_tool_measure(params),
|
||||||
km_3d_view_tool_interactive_add(params),
|
km_3d_view_tool_interactive_add(params),
|
||||||
km_3d_view_tool_pose_breakdowner(params),
|
km_3d_view_tool_pose_breakdowner(params),
|
||||||
|
@ -373,7 +373,7 @@ class _defs_transform:
|
|||||||
label="Bend",
|
label="Bend",
|
||||||
icon="ops.gpencil.edit_bend",
|
icon="ops.gpencil.edit_bend",
|
||||||
widget=None,
|
widget=None,
|
||||||
keymap=(),
|
keymap="3D View Tool: Bend",
|
||||||
)
|
)
|
||||||
|
|
||||||
@ToolDef.from_fn
|
@ToolDef.from_fn
|
||||||
|
Loading…
Reference in New Issue
Block a user