-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in tool scripts aren't reloaded unless the scene is reloaded #15406
Comments
Does closing and reopening the scene makes it work? |
Can't reproduce on latest master 50b9755 |
Oh yeah, it does. |
I tried and its the same in the latest master. When I make change to the script, saving the scene also works. Guess this is not really a major problem. |
Is the script built-in? |
I saved the script, and now changes takes effects everytime I save the scene. |
Ah figured. I noticed it still happened in 3.0 and came to see if there was any related issue (in other words I can reproduce this). I'm pretty sure I reported it happening with builtin scripts way back, but I can't remember if anything came out of it. |
Just wanted to mention I also seem to have this bug (v 3.0), that is I can also reproduce it. |
Noticed a related issue: vars exported in tool mode, for example: |
^ Seems to only happen when saving script in external text editor? Saving in Godot editor and then reloading scene fixes the issue. |
Seems related to #17044 |
I could reproduce it on the master branch, and it only happens with builtin scripts (embedded in the scene file). If you save your tool script as .gd file, it gets properly reloaded on the fly. |
Yeah I'd very much like it to reload builtin scripts. At times your logic is just 10 lines long and it's not worth it to pollute the file layout any further with more tiny files (having an extra file for every image is already overkill and uncomfortable). |
After an hour of head scratching, I found this issue. Hope this is going to be fixed soon. I'm developing a pretty complex plugin so built-in scripts are important to me. But this bug makes the development painful. |
Godot version:
Godot 3.0
OS/device including version:
Windows 10
Issue description:
I just want to report an issue with tool mode. Tool mode only updates my object in the editor when I make changes to my exported variable, after I restart the editor. Basically tool mode doesn't unless the editor is restarted.
Steps to reproduce:
Ex:
tool
extends Panel
export (int) var orientation = 0 setget orientation_set
func orientation_set(new_value):
orientation = new_value
set('rect_rotation', orientation)
// So everytime I make changes to the orientation_set() function, I have to restart the editor. Not a major problem but its a hassle closing and opening godot.
Minimal reproduction project:
ToolBug.zip
The text was updated successfully, but these errors were encountered: