quellus / GDTuber

A dynamic PNGTuber program made in Godot
MIT License
16 stars 11 forks source link

BUG: Crash when deleting a ScreenObject with a Gizmo #30

Closed quellus closed 1 month ago

quellus commented 1 month ago

Describe the bug When an object with an active gismo gets deleted, the gizmo remains activated. This causes a crash if you attempt to move the gizmo.

To Reproduce Steps to reproduce the behavior:

  1. Create a new avatar by pressing the + button in the menu
  2. Press the gizmo icon to activate the gizmo on the object
  3. Delete the object by pressing the x button
  4. The gizmo remains with no ability to hide it
  5. Attempt to click and drag the gizmo
  6. Crash

Expected behavior When an object is deleted, if there is an active gizmo on that object, it should be hidden and its targets cleared.

Environment: Not environment specific