Zylann / godot_scatter_plugin

A tool to help placing lots of environment props in a scene
187 stars 29 forks source link

Error: "'!is_inside_tree()' is true. returned: Transform()" #2

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi Zylann!

Great plugin. I do, however, have a problem. Sometimes, but not always (not exactly sure why it happens), the following error appears in the output window when I use the plugin to paint objects into my scene:

Error: scene/3d/spatial.cpp:266 - Condition ' !is_inside_tree() ' is true. returned: Transform()

When I close and reopen the scene, some of the objects are gone. Other times, I might have like, let's say I have 10 rocks in my scene, but only 3 (for example) is visible in the scene tree (Scene tab).

Can you please fix those problems? It will mean so much to me. I would've done it myself if I knew how to do it.

Thanks!!

Zylann commented 4 years ago

I'm getting this too, but so far impossible to even put a breakpoint to know how it happens... Godot just logs this and no other help :s

Zylann commented 4 years ago

Actually I wrote a note a while ago, it's a Godot limitation: https://github.com/godotengine/godot/issues/30445

GammaGames commented 2 years ago

I think this is breaking the extension so I can't actually use it. Any idea when it'll be fixed? I'm on 3.4.4

Zylann commented 2 years ago

Well if you absolutely want something now we could re-implement what global_transform does in this plugin just to avoid that pedantic error, but I wish Godot devs just decided what to do about it after 2 years being reported

GammaGames commented 2 years ago

I realized that the real problem is something else. I can place objects on some static bodies but not the ground, so this issue is fine