diff --git a/tools/tesseratos/src/tesseratos/scene_editor/plugin.cpp b/tools/tesseratos/src/tesseratos/scene_editor/plugin.cpp index 9dbb79ed3d..6e391e591d 100644 --- a/tools/tesseratos/src/tesseratos/scene_editor/plugin.cpp +++ b/tools/tesseratos/src/tesseratos/scene_editor/plugin.cpp @@ -6,6 +6,8 @@ #include #include +#include +#include #include #include @@ -96,7 +98,7 @@ static void checkAssetEventSystem(cubos::core::ecs::EventReadertype(event.asset) == typeid(Scene)) + if (assets->type(event.asset).is()) { CUBOS_INFO("Opening scene {}", Debug(event.asset)); openScene(event.asset, commands, *assets, *scene); diff --git a/tools/tesseratos/src/tesseratos/voxel_palette_editor/plugin.cpp b/tools/tesseratos/src/tesseratos/voxel_palette_editor/plugin.cpp index 97db6461bd..db7bc922ab 100644 --- a/tools/tesseratos/src/tesseratos/voxel_palette_editor/plugin.cpp +++ b/tools/tesseratos/src/tesseratos/voxel_palette_editor/plugin.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -92,7 +93,7 @@ static void checkAssetEventSystem(EventReader reader, Write< { for (const auto& event : reader) { - if (assets->type(event.asset) == typeid(VoxelPalette)) + if (assets->type(event.asset).is()) { CUBOS_INFO("Opening palette asset {}", Debug(event.asset)); if (!selectedPalette->asset.isNull() && selectedPalette->modified)