armory
armory copied to clipboard
Live Patch reloading does not update undo transforms
Description
Old object transforms are usually saved in a blend file until the blend is refreshed/closed. The previous transform can usually be restored by using Blender's Undo
function. However, currently only the Blender 3D Viewport
updates an object's transform, while the Armory Player
object's transform remains constant/outdated unlike transforms with Haxe/Logic-Nodes or transform shortcuts (G, R, S). The Live Patch option is extremely useful for quick prototyping, but so is the Undo function and currently the two elements do not mix together at all.
To Reproduce
- Tweak any transform value (W, Location, Rotation, Scale).
- Enable
Live Patch
inArmory Project
settings. - Run
Armory Player
- Transform any object
- Attempt to do
Undo
withCTRL+Z
Expected behavior
Undo
should work in the Armory Player as well as in Blender.
System
Blender: 2.93
Armory: 2022.3
OS: Windows 11 Home
Graphics card: NVIDIA GeForce RTX 3050 Ti Laptop GPU
Test File The issue can easily reproduced in any blend file.
This seems to be a current limitation of Blender's msgbus system, see https://developer.blender.org/D10960#341989 which is a comment on a potential fix for https://developer.blender.org/T72109.