summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-03-31 12:02:44 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-03-31 12:02:44 -0400
commit89614d1dee1049a08e64aead95de6fb28fa7b150 (patch)
tree77e59a92c370154d7b7d859506e570a1fffd66c3 /editor
parent119c83096a81c5aef45a0dbef029bd2e49d2e977 (diff)
pke: parse uuid from scene and project files
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp4
1 files changed, 2 insertions, 2 deletions
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;