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

Nodes with scripts do not update their icon when the type changes #80733

Closed
jotson opened this issue Aug 17, 2023 · 4 comments
Closed

Nodes with scripts do not update their icon when the type changes #80733

jotson opened this issue Aug 17, 2023 · 4 comments

Comments

@jotson
Copy link
Contributor

jotson commented Aug 17, 2023

Godot version

4.1.1.stable

System information

Ubuntu Linux 22.04, Nvidia

Issue description

When a node has a script, and you change the type of the node, the node icon does not change to reflect the new type.

The node icon seems to be based on the base type that the script is extending (e.g. extends Node2D)

But even in that case, changing the extends line also does not change the icon until the scene is closed and reopened

I expected the icon to change when I change the type

Screencast.2023-08-17.12-15-55.mp4

Steps to reproduce

  1. Create a node
  2. Add a script
  3. Change the type of the node

Minimal reproduction project

None

@Sauermann
Copy link
Contributor

related to #79979

@hsandt
Copy link
Contributor

hsandt commented Aug 20, 2023

Reproduced it today, I also tried to change the type written after extends to the new type before and after the Change Type, to no avail. Also had to restart editor.

Could not repro on 4.0, reproduced on 4.1. Possible regression from 4.0.

@ershn
Copy link
Contributor

ershn commented Nov 5, 2023

I can't reproduce the bug as in the video above on 4.1.3 (had experienced it before on 4.1.1).
So this bug was likely fixed by #81336 which was cherry-picked for 4.1.2.

I think it's safe to close this issue.

@YuriSizov
Copy link
Contributor

Indeed, this is a duplicate of #76983, fixed by #79203.

@YuriSizov YuriSizov added this to the 4.2 milestone Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants