Skip to content

Commit

Permalink
Plugins are automatically unregistered in GDExtension.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Jun 19, 2023
1 parent e99e53c commit 9009ffe
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,16 +425,7 @@ void uninitialize_voxel_module(ModuleInitializationLevel p_level) {
zylann::free_debug_resources();
VoxelGraphEditorNodePreview::unload_resources();

#ifdef ZN_GODOT_EXTENSION
EditorPlugins::remove_by_type<VoxelGraphEditorPlugin>();
EditorPlugins::remove_by_type<VoxelTerrainEditorPlugin>();
EditorPlugins::remove_by_type<VoxelInstanceLibraryEditorPlugin>();
EditorPlugins::remove_by_type<VoxelInstanceLibraryMultiMeshItemEditorPlugin>();
EditorPlugins::remove_by_type<ZN_FastNoiseLiteEditorPlugin>();
EditorPlugins::remove_by_type<magica::VoxelVoxEditorPlugin>();
EditorPlugins::remove_by_type<VoxelInstancerEditorPlugin>();
EditorPlugins::remove_by_type<VoxelMeshSDFEditorPlugin>();
#endif
// Plugins are automatically unregistered since https://github.com/godotengine/godot-cpp/pull/1138
}
#endif // TOOLS_ENABLED
}
Expand Down

0 comments on commit 9009ffe

Please sign in to comment.