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

Adding/removing base class export does not properly update inspector for inherited scripts #82998

Closed
atirut-w opened this issue Oct 8, 2023 · 1 comment · Fixed by #83123
Closed

Comments

@atirut-w
Copy link
Contributor

atirut-w commented Oct 8, 2023

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 27.20.21034.37) - AMD Ryzen 7 5700X 8-Core Processor (16 Threads)

Issue description

When you have a script inheriting a script, adding or removing exports to/from the base script does not cause the inspector to update, leaving in stale values or not showing new values. Adding or removing exports from/to the inherited script works fine.

Before

image

After

image

Steps to reproduce

Base class

class_name BaseClass
extends Node3D


@export var base_a := 1
@export var base_b := 2

Inherited script (attach it to a node)

extends BaseClass


@export var not_inherited := 1234

You can trigger the issue by adding or removing exports from/to the base class.

Minimal reproduction project

Inheritence.zip

@atirut-w
Copy link
Contributor Author

atirut-w commented Oct 9, 2023

Huh, it's weird how this has not been triaged yet. Seems to be happening to other issues, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants