HungryProton / scatter

Godot engine addon to randomly fill an area with props or other scenes
MIT License
2.08k stars 94 forks source link

Godot 4.2.1 - On reload of project, all ProtonScatter nodes change to disabled #196

Closed mattboy115 closed 4 months ago

mattboy115 commented 5 months ago

I have been learning the ins and outs of Scatter and I really like it but there is a problem with being able to save and quit my project. Because when I return all the ProtonScatter nodes have changed their "enabled" attribute to false. The only thing I can think of to get by this in some way is to use code to change all those nodes to enable on ready, though code. But that would only work when the game plays. That doesn't help the problems in the editor. I've heard a couple other people have this same issue.

fidojones commented 4 months ago

I solved disabling the "enabled" variable in file src/scatter.gd in the funtion _exit_tree like this:

func _exit_tree():

enabled = false

HungryProton commented 4 months ago

Oh good catch, that was not supposed to be part of the commit, I'll push a fix