-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Fix auto reload scripts on external change #49473
Fix auto reload scripts on external change #49473
Conversation
0bbc980
to
685192e
Compare
685192e
to
71d13ed
Compare
2ec56bf
to
b0c807c
Compare
So I tested this and it doesn't seem to work? I tested with a simple script
When I change value of |
@KoBeWi Without this patch, the editor actually doesn't reload the script at all and the major problem is when you add or remove export variables; you would have to close and reopen the entire scene in order to see the most current exports. This does get fixed. As I discovered and wrote in the related issue #49298, the problem is that However, like you I noticed recently that half of the time, the editor appears to first save the old value in the |
I tracked the latest bug related to this (new defaults getting overridden by old defaults) down to 4e6efd1, which introduced C++ iterators. There were several places where This patch is now once again working as expected on the latest revision. I still need a reviewer to tell me whether my solution is stupid or not though |
Thanks! |
I get a SIGSEGV in my main project after this commit.
|
Can report this breaks our project. I recommend to revert this change. We have a large project and it broke.
|
…o-reload-scripts" This reverts commit 1a8741a.
fixes #49298