forked from bartvdbraak/blender
Tools: disable fallback drag action for transform
Based on animator feedback, accidentally not clicking on the manipulator handle had unpredictable behavior. This functionality will be moved into the manipulator and made optional (add an invisible fallback manipulator).
This commit is contained in:
parent
20880d8744
commit
b01392e9ac
@ -131,36 +131,39 @@ class _defs_transform:
|
||||
def translate():
|
||||
return dict(
|
||||
text="Move",
|
||||
cursor='SCROLL_XY',
|
||||
# cursor='SCROLL_XY',
|
||||
icon="ops.transform.translate",
|
||||
widget="TRANSFORM_WGT_manipulator",
|
||||
keymap=(
|
||||
("transform.translate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
|
||||
),
|
||||
# TODO, implement as optional fallback manipulator
|
||||
# keymap=(
|
||||
# ("transform.translate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
|
||||
# ),
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
def rotate():
|
||||
return dict(
|
||||
text="Rotate",
|
||||
cursor='SCROLL_XY',
|
||||
# cursor='SCROLL_XY',
|
||||
icon="ops.transform.rotate",
|
||||
widget="TRANSFORM_WGT_manipulator",
|
||||
keymap=(
|
||||
("transform.rotate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
|
||||
),
|
||||
# TODO, implement as optional fallback manipulator
|
||||
# keymap=(
|
||||
# ("transform.rotate", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
|
||||
# ),
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
def scale():
|
||||
return dict(
|
||||
text="Scale",
|
||||
cursor='SCROLL_XY',
|
||||
# cursor='SCROLL_XY',
|
||||
icon="ops.transform.resize",
|
||||
widget="TRANSFORM_WGT_manipulator",
|
||||
keymap=(
|
||||
("transform.resize", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
|
||||
),
|
||||
# TODO, implement as optional fallback manipulator
|
||||
# keymap=(
|
||||
# ("transform.resize", dict(release_confirm=True), dict(type='EVT_TWEAK_A', value='ANY')),
|
||||
# ),
|
||||
)
|
||||
|
||||
@ToolDef.from_fn
|
||||
|
Loading…
Reference in New Issue
Block a user