ramokz / phantom-camera

👻🎥 Control the movement and dynamically tween 2D & 3D cameras. Built for Godot 4. Inspired by Cinemachine.
https://phantom-camera.dev/
MIT License
2.17k stars 71 forks source link

PC Host error: "Nonexistent function 'get_global_transform' in base 'Nil'.` #317

Closed Matt-Murch closed 4 months ago

Matt-Murch commented 4 months ago

Issue description

Having a Phantom Camera Host in any scene causes constant error to be output: res://addons/phantom_camera/scripts/phantom_camera_host/phantom_camera_host.gd:252 - Invalid call. Nonexistent function 'get_global_transform' in base 'Nil'.

I've tried with and without a phantom camera in the scene and it has the same result.

Steps to reproduce

Add phantom camera to project Add a camera 3D to scene Add a Phantom Camera Host as a child of the camera 3D

or

Add phantom camera to project Add a Phantom Camera Host to scene

(Optional) Minimal reproduction project

PCHErrorReproduction.zip

cryoboltinteractive commented 4 months ago

Facing the same issue, Seems like an issue contained into the Host only. Hot Fix in host script image

ramokz commented 4 months ago

Thanks for the report and the reproduction project! I can see what you mean.

Normally, I would release a hotfix for this; however, this should already be fixed in the 0.7.2 branch as part of wider internal changes, and seeing this only spams errors and doesn't break anything, I'm inclined to leave it be for now.

Expecting to release 0.7.2 within the next week or so.

image

Matt-Murch commented 4 months ago

Awesome, looking forward to the 0.7.2 release! Thanks for looking into it