You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Referencing other custom class from inner class will generate same custom class script as a built in script, and replace other custom class nodes' scripts with that built in script.
#98141
Open
Kakiroi opened this issue
Oct 13, 2024
· 1 comment
Reproducible in : Godot v4.4.dev3
Not reproducible in : Godot_v4.3 stable
System information
Godot v4.4.dev3 - Windows 10.0.22631 - Single-window, 2 monitors - Vulkan (Forward+) - dedicated GeForce RTX 2070 SUPER
Issue description
Just reference other custom class at any point in inner class (var b:B, b = b as B) will generate the same script as the custom class as a built in script. Then Godot will replace the original script with the built in script in the scene.
Steps to reproduce
In the MRP, remove inner class in Node A. When you save, it will generate built in script that replaces Node B's script.
Tested versions
Reproducible in : Godot v4.4.dev3
Not reproducible in : Godot_v4.3 stable
System information
Godot v4.4.dev3 - Windows 10.0.22631 - Single-window, 2 monitors - Vulkan (Forward+) - dedicated GeForce RTX 2070 SUPER
Issue description
Just reference other custom class at any point in inner class (var b:B, b = b as B) will generate the same script as the custom class as a built in script. Then Godot will replace the original script with the built in script in the scene.
Steps to reproduce
In the MRP, remove inner class in Node A. When you save, it will generate built in script that replaces Node B's script.
Minimal reproduction project (MRP)
errorscriptgeneration.zip
The text was updated successfully, but these errors were encountered: