GPv3: Transform operators (translate, rotate, scale, opacity, radius) #111836

Merged
Falk David merged 23 commits from casey-bianco-davis/blender:GPv3-transform into main 2023-10-21 15:12:57 +02:00
2 changed files with 12 additions and 1 deletions
Showing only changes of commit b0b3b75b34 - Show all commits

View File

@ -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):
return (
@ -8575,6 +8585,7 @@ def generate_keymaps(params=None):
km_3d_view_tool_rotate(params),
km_3d_view_tool_scale(params),
km_3d_view_tool_shear(params),
km_3d_view_tool_bend(params),
km_3d_view_tool_measure(params),
km_3d_view_tool_interactive_add(params),
km_3d_view_tool_pose_breakdowner(params),

View File

@ -373,7 +373,7 @@ class _defs_transform:
label="Bend",
icon="ops.gpencil.edit_bend",
widget=None,
keymap=(),
keymap="3D View Tool: Bend",
)
@ToolDef.from_fn