Fix error on plugin reload.

This commit is contained in:
Relintai 2021-12-30 01:23:54 +01:00
parent 4ef5881ad4
commit ae56bf8b56

View File

@ -273,7 +273,7 @@ func set_axis_z(on : bool) -> void:
func _notification(what):
if what == NOTIFICATION_PREDELETE:
if get_plugin():
if self != null && get_plugin():
get_plugin().unregister_gizmo(self)
#todo if selection type changed recalc handles aswell