Hello, I hope someone can help me to tell me what is wrong with this piece of code:
node.add_child(p1)
p1.path_node = path.get_path()
p1.mode = CSGPolygon3D.MODE_PATH```
This is the error message I get and I tried a lot:
E 0:00:01:0378 get_node_or_null: Can't use get_node() with absolute paths from outside the active scene tree.
<C++ Error> Condition "!data.inside_tree && p_path.is_absolute()" is true. Returning: nullptr
<C++ Source> scene/main/node.cpp:1575 @ get_node_or_null()
The error specifically occurs due to this line "p1.path_node = path.get_path()"
when I print(path.get_path()) the error doesn't happen.
When I replace the path with "..", the error does happen.
When I replace the path with "asdfhjhke", the error does not happen.
Is this a godot 4 issue maybe? I would be glad to get any help.