Skip to content

PhantomCamera3D: invalid access error in debugger #487

@laurentsenta

Description

@laurentsenta

Issue description

Hi there, thanks for maintaining this library,

Using Godot 4.4, and the latest PhantomCamera version 0.8.2.3

Setting a breakpoint near a variable containing a PhantomCamera3D and then trying to inspect the variable triggers nil errors, making it impossible for me to debug with the plugin.
I had to rewrite many getters with a check for camera_3d_resource:

func get_v_offset() -> float:
	if !camera_3d_resource:
		return 0.0
	return camera_3d_resource.v_offset

Steps to reproduce

Create a breakpoint anywhere in a piece of code that contains a PhantomCamera3D variable.
In the debugger, try to inspect the camera object,
an "Invalid access to property or key .... on a base object of type 'Nil'" is thrown

Image

(Optional) Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    3DIssues concerning 3D scenesbugSomething isn't workingphantom cameraRelated to PhantomCamera nodes

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions