MapStudioProject / Track-Studio

A powerful MK8 map editor for creating and editing track models, objects, paths and animations.
MIT License
80 stars 13 forks source link

Translate `G` shortcut resets position/rotation when used without re-selecting object #7

Open Scutlet opened 2 years ago

Scutlet commented 2 years ago

Using the G shortcut to translate an object causes the last transformation that was performed (a translation, rotation, or scaling) to be undone. This does not occur when the object is re-selected before using the G shortcut, or when using the arrows in the viewport to translate instead.

The same problem occurs when using the T shortcut to scale, but not when using the R shortcut to rotate. There are no issues if translating/scaling is not performed along a specific axis

Video Example Input: `G Y click` `G X click` `G Y click` https://user-images.githubusercontent.com/103026559/168279848-12be731a-9732-4ab2-8b19-7812d44e83ce.mp4