diff options
author | Nông Văn Tình <vannongtinh@gmail.com> | 2024-02-25 08:09:05 +0700 |
---|---|---|
committer | Nông Văn Tình <vannongtinh@gmail.com> | 2024-02-25 22:08:18 +0700 |
commit | c5e6a5863db21ecbcbc6fcd006cb2aac744d39cd (patch) | |
tree | 107dd424c1ba3c47511181d8eb33f4c47865a5d6 /modules/regex/regex.cpp | |
parent | 2e7fc81315bfa8d0a15f60adff2a12b6f3104236 (diff) | |
download | redot-engine-c5e6a5863db21ecbcbc6fcd006cb2aac744d39cd.tar.gz |
Fix Script Editor saves C# files as embedded scripts
fixes: #88543
fixes: #88160
Because of the limitations of compiled programming languages like C#, when a newly created *.cs file hasn't been compiled, we don't have any information about its `Path` or `Type` in the `assemply`. This means we end up creating an invalid instance of this file whenever there's a request. Consequently, multiple instances of the script can exist. When a new instance takes over the path, it clears the `path_cache` of the previous instance, leading to undefined behavior.
Diffstat (limited to 'modules/regex/regex.cpp')
0 files changed, 0 insertions, 0 deletions