Why an object can change to a PackedScene without being change ?

Godot Version

Godot 4.4

Question

Hi ! Here a part of my code, I want to understand something.

image

I want to understand why my object “show_block” change from a “Cube_Yellow” to a “PackedScene” without any changes. Is this normal ? I made a mistake ?

A Cube_Yellow is :

I am making a map editor for my game. I do not want that the block that is following the cursor has the same collision_mask as the blocks already put on the grid. Some block of my game are compose from others, that is why I made this function to find every CSGBox3D and change their collision_mask.

Thanks for your time !

What is blocktest?

1 Like

You’ve got two different variables block_test and blocktest. The first one appears to hold the node, and the second one appears to hold the packed scene.

1 Like