Skip to content
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

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

Comments

@Kakiroi
Copy link

Kakiroi commented Oct 13, 2024

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

@HolonProduction
Copy link
Member

Bisected to 9853a69 (#78656) CC @Repiteo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Unassessed
Status: For team assessment
Development

No branches or pull requests

3 participants