Skip to content

Commit ae96eb7

Browse files
committed
fix: editor script ext issues
1 parent 09c0bf3 commit ae96eb7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

editor/editor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
148148
gptDateTime = pl_get_api_latest(ptApiRegistry, plDateTimeI);
149149
gptCompress = pl_get_api_latest(ptApiRegistry, plCompressI);
150150
gptMaterial = pl_get_api_latest(ptApiRegistry, plMaterialI);
151+
gptScript = pl_get_api_latest(ptApiRegistry, plScriptI);
151152

152153
// this path is taken only during first load, so we
153154
// allocate app memory here
@@ -250,6 +251,7 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
250251
gptCamera->register_ecs_system();
251252
gptMesh->register_ecs_system();
252253
gptPhysics->register_ecs_system();
254+
gptMaterial->register_ecs_system();
253255
gptEcs->finalize();
254256
ptAppData->ptCompLibrary = gptEcs->get_default_library();
255257

@@ -943,6 +945,7 @@ pl__show_editor_window(plAppData* ptAppData)
943945
ptAppData->ptView = nullptr;
944946
ptAppData->ptSecondaryView = nullptr;
945947
ptAppData->ptScene = nullptr;
948+
ptAppData->bSecondaryViewActive = false;
946949
}
947950
}
948951
else

0 commit comments

Comments
 (0)