diff options
Diffstat (limited to 'editor/editor.cpp')
| -rw-r--r-- | editor/editor.cpp | 4 |
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; |
