From 89614d1dee1049a08e64aead95de6fb28fa7b150 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 31 Mar 2025 12:02:44 -0400 Subject: pke: parse uuid from scene and project files --- editor/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index 159a828..af05781 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -287,7 +287,7 @@ void PkeEditor_Tick(double delta) { EntityType *existingEntity = EntityType_FindByTypeCode(entityTypeToCreate.entityTypeCode.val); if (existingEntity == nullptr) { - EntityType *newEntType = EntityType_Create(); + EntityType *newEntType = EntityType_Create(pk_uuid_zed); strncpy(newEntType->modelAssetKey, entityTypeToCreate.modelAssetKey, AssetKeyLength); newEntType->entityTypeCode = entityTypeToCreate.entityTypeCode; if (entityTypeToCreate.createInstanceCallback.name[0] != '\0') { @@ -1111,7 +1111,7 @@ void RecordImGuiCameras() { instPos.mass = 1.f; activeInst->bt.motionState->getWorldTransform(instPos.posRot); instPos.scale = activeInst->bt.rigidBody->getCollisionShape()->getLocalScaling(); - auto &cam = PkeCamera_Register(instPos); + auto &cam = PkeCamera_Register(pk_uuid_zed, instPos); cam.phys.targetInstHandle = ActiveCamera->phys.targetInstHandle; cam.type = ActiveCamera->type; cam.view = ActiveCamera->view; -- cgit v1.2.3