leberechtreinhold / dba3_tts

A module for playing De Bellis Antiquitatis 3 on Tabletop Simulator
https://steamcommunity.com/sharedfiles/filedetails/?id=2105272640
MIT License
3 stars 2 forks source link

TZ does not follow rotated bases #36

Open marcpawl opened 11 months ago

marcpawl commented 11 months ago

Turn on TZ select base but do not pick it up. rotate, (q key) The TZ does not follow the base.

First seen in Triumph, but reproduced in DBA.

marcpawl commented 11 months ago

https://github.com/ArkeinGuardia/Triumph_TTS/issues/186

leberechtreinhold commented 11 months ago

Well spotted, applies to DBA2 as well. The reason is that objects have the onObjectPickUp event where we re-draw all gizmos when picking it up, as well as the main_loop where we periodically re-redraw if there's a picked object. However, we are not listening to onObjectRotate, which either by setting it to be a picked base (and therefore letting mainloop do it) or just callig draw_all_gizmos on the event could fix the issue. I will fix it for both mods this week.