Fix "is mount_event" check in gui_in_3d to work with both 4 beta and 4 rc

This commit is contained in:
Kostas Mouratidis
2023-02-26 13:10:46 +01:00
parent e03d6abbc8
commit d059806f20
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ func _make_visible(visible):
# If your plugin doesn't handle any node types, you can remove this method.
func _handles(object):
return object is preload("res://addons/main_screen/handled_by_main_screen.gd")
return is_instance_of(object, preload("res://addons/main_screen/handled_by_main_screen.gd"))
func _get_plugin_name():