diff --git a/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_debug.x86_64.so b/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_debug.x86_64.so index 7243ed5..d8631db 100644 Binary files a/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_debug.x86_64.so and b/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_debug.x86_64.so differ diff --git a/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_release.x86_64.so b/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_release.x86_64.so index 50b11ff..3dc8f39 100644 Binary files a/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_release.x86_64.so and b/addons/PathMesh3D/bin/libpath_mesh_3d.linux.template_release.x86_64.so differ diff --git a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.dll b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.dll index d3ad5a0..ab2f339 100644 Binary files a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.dll and b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.dll differ diff --git a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.exp b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.exp index be3492b..2efb6fd 100644 Binary files a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.exp and b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.exp differ diff --git a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.lib b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.lib index 8963981..158481c 100644 Binary files a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.lib and b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_debug.x86_64.lib differ diff --git a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.dll b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.dll index 6b41c11..c1e2003 100644 Binary files a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.dll and b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.dll differ diff --git a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.exp b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.exp index a3b3ebd..96956d8 100644 Binary files a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.exp and b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.exp differ diff --git a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.lib b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.lib index f90f1e6..a0cda88 100644 Binary files a/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.lib and b/addons/PathMesh3D/bin/path_mesh_3d.windows.template_release.x86_64.lib differ diff --git a/addons/PathMesh3D/plugin.cfg b/addons/PathMesh3D/plugin.cfg index 20270b4..cbee0ca 100644 --- a/addons/PathMesh3D/plugin.cfg +++ b/addons/PathMesh3D/plugin.cfg @@ -3,5 +3,5 @@ name="PathMesh3D" description="A fast set of 3D mesh extrusion and tiling nodes implemented as a C++ GDExtension." author="iiMidknightii" -version="1.3.0" +version="1.3.1" script="plugin.gd" diff --git a/addons/PathMesh3D/plugin.gd b/addons/PathMesh3D/plugin.gd index 502e379..12c8029 100644 --- a/addons/PathMesh3D/plugin.gd +++ b/addons/PathMesh3D/plugin.gd @@ -29,24 +29,24 @@ func _exit_tree() -> void: func _handles(object: Object) -> bool: - return object is PathMesh3D or object is PathExtrude3D or object is PathScene3D + return is_instance_valid(object) and (object is PathMesh3D or object is PathExtrude3D or object is PathScene3D) func _edit(object: Object) -> void: - if object is PathMesh3D or object is PathExtrude3D and _mesh_editor_button: + if is_instance_valid(object) and (object is PathMesh3D or object is PathExtrude3D) and _mesh_editor_button: _path_object = object _mesh_editor_button.path_mesh = object _mesh_editor_button.ur = get_undo_redo() - elif object is PathScene3D and _scene_editor_button: + elif is_instance_valid(object) and object is PathScene3D and _scene_editor_button: _path_object = object _scene_editor_button.path_scene = object _scene_editor_button.ur = get_undo_redo() func _make_visible(visible: bool) -> void: - if _path_object is PathMesh3D or _path_object is PathExtrude3D and visible: + if is_instance_valid(_path_object) and (_path_object is PathMesh3D or _path_object is PathExtrude3D) and visible: _mesh_editor_button.visible = visible - elif _path_object is PathScene3D and visible: + elif is_instance_valid(_path_object) and _path_object is PathScene3D and visible: _scene_editor_button.visible = visible elif not visible: _mesh_editor_button.visible = visible