armory icon indicating copy to clipboard operation
armory copied to clipboard

Live Patch reloading does not update undo transforms

Open rpaladin opened this issue 2 years ago • 1 comments

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

  1. Tweak any transform value (W, Location, Rotation, Scale).
  2. Enable Live Patch in Armory Project settings.
  3. Run Armory Player
  4. Transform any object
  5. Attempt to do Undo with CTRL+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.

rpaladin avatar Mar 24 '22 23:03 rpaladin

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.

MoritzBrueckner avatar Mar 25 '22 00:03 MoritzBrueckner