AIGODLIKE / gesture_helper

29 stars 1 forks source link

Using hotkey "T" will select Transform Tool ignoring the current keymap where its disabled. #12

Open AlexanderSDiff opened 2 weeks ago

AlexanderSDiff commented 2 weeks ago

Using hotkey "T" for newly created gesture menu will switch tools to "Transform Tool". Transform tool currently did not binded to any hotkey in blender, so if i uncheck those gesture menu binded to T - transform tool would not be setted again after pressing T key.

I believe its not how it supposed to work and probably a bug in addon or blender?

xmx-emm commented 1 week ago

image Need to add keymap "Object Mode"

AlexanderSDiff commented 1 week ago

It doesnt help unfortunately. Behaviour is still the same: press and hold "T" - will open gesture pie, but short pressing of "T" will switch tool to "transform tool". I can record video if it will clarify the situation.

xmx-emm commented 1 week ago

What kind of operation do you want to achieve

T key only works if Keymap is Blender27x

xmx-emm commented 1 week ago

I need to look at the console if it's not Blender27x. image

AlexanderSDiff commented 1 week ago

Here it is. scr

Here's you can see what T key doesnt used for "Set Tool by Name" at all, gesture set to "Object Mode" but it doesnt change anything. Each time i shortly press T - i will select transform tool. scr2

Im pretty sure what T was used for transform tool in Industry Compatible keymap, which i was used as a default for making my own.

What kind of operation do you want to achieve

I want to remove such behaviour, because if i by mistake press t too shortly - it will change the current active tool. Basically it works the same way with any hotkeys which are default to original keymap which was used, but disabled in current one. I.e. my keymap are based on industry standart keymap. In this keymap Shift+RMB are enabling 3d cursor which you can drag. If i will try to use any gestures binded to Shift+RMB - the behaviour will be the same, i.e. if i press shift _ rmb and wait until gesture will appear - everything will be okay, but if those sequence of pressing shift + RMB will be too short - it will enable 3d cursor drag, even if this hotkey are disabled in keymap.

xmx-emm commented 1 day ago

image Might want to take a look here. This should happen because there should be the same trigger inside this keymap

Keymaps shouldn't be able to pass_through when disabled, I'll fix that

shift + RMB is handled separately because it needs to be compatible with cursor operations.

Sorry for the long response time as github messages aren't real time

xmx-emm commented 1 day ago

I've just pushed the fix, download it from the master branch

AlexanderSDiff commented 1 day ago

Its worked now! Thank you!