Industry Compat keymap: Fix Polybuild tool not working with this keymap

I ended up simply removing the gizmo entries here - they seem to be no longer needed.
This commit is contained in:
William Reynish
2020-01-05 16:54:08 +01:00
parent 8df339438a
commit ebe177aead

View File

@@ -114,26 +114,6 @@ def _template_items_animation():
]
# Gizmos
def _template_items_gizmo_tweak_value():
return [
("gizmogroup.gizmo_tweak", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
]
def _template_items_gizmo_tweak_value_click_drag():
return [
("gizmogroup.gizmo_tweak", {"type": 'LEFTMOUSE', "value": 'CLICK'}, None),
("gizmogroup.gizmo_tweak", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
]
def _template_items_gizmo_tweak_value_drag():
return [
("gizmogroup.gizmo_tweak", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
]
# Tool System Templates
@@ -3573,52 +3553,6 @@ def km_transform_modal_map(_params):
return keymap
# ------------------------------------------------------------------------------
# Gizmos
# Fallback for gizmos that don't have custom a custom key-map.
def km_generic_gizmo(_params):
keymap = (
"Generic Gizmo",
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
{"items": _template_items_gizmo_tweak_value()},
)
return keymap
def km_generic_gizmo_drag(_params):
keymap = (
"Generic Gizmo Drag",
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
{"items": _template_items_gizmo_tweak_value_drag()},
)
return keymap
def km_generic_gizmo_click_drag(_params):
keymap = (
"Generic Gizmo Click Drag",
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
{"items": _template_items_gizmo_tweak_value_click_drag()},
)
return keymap
def km_generic_gizmo_maybe_drag(params):
keymap = (
"Generic Gizmo Maybe Drag",
{"space_type": 'EMPTY', "region_type": 'WINDOW'},
{"items":
_template_items_gizmo_tweak_value_drag()
},
)
return keymap
# ------------------------------------------------------------------------------
# Full Configuration
@@ -3707,10 +3641,4 @@ def generate_keymaps(params=None):
km_eyedropper_colorramp_pointsampling_map(params),
km_transform_modal_map(params),
# Gizmos.
km_generic_gizmo(params),
km_generic_gizmo_drag(params),
km_generic_gizmo_maybe_drag(params),
km_generic_gizmo_click_drag(params),
]