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
1.92k stars 62 forks source link

Prevent PCam2D Limit from resetting if an invalid path is applied #303

Closed ramokz closed 1 month ago

ramokz commented 1 month ago

Project Type

2D

Feature Description

Based on #299

If one attempts to set a limit_target through code with an invalid NodePath, then the limit_target will reset even if it has an existing valid limit target.

Ideally, it should print an error to inform the user that an invalid path was set and consequently not reset the limit size. Resetting the limit should only occur if the applied limit_target value is explicitly set to null.

Use Cases

When applying a limit target but accidentally applies an invalid NodePath reference.

(Optional) Proposed Solution

No response