From 7b43a9b51d9df0bc0e18102415f877772031f440 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Mon, 7 Apr 2025 14:12:28 -0400 Subject: pke: save and load camera target in scenes --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index 24dc1bf..4a97d56 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1381,7 +1381,7 @@ void UpdateCamera() { UBO.view = glm::mat4_cast(gRot); } else if (bool(ActiveCamera->view == PKE_CAMERA_VIEW_TARGET)) { glm::vec3 gTargetPos{0.f, 0.f, 0.f}; - targetInst = ECS_GetInstance(ActiveCamera->phys.targetInstHandle); + targetInst = ECS_GetInstance(ActiveCamera->phys.target_inst_handle); if (targetInst != nullptr && targetInst != CAFE_BABE(CompInstance)) { btTransform targetTrfm; targetInst->bt.motionState->getWorldTransform(targetTrfm); -- cgit v1.2.3