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

Changing the node type requires a scene restart to display the new node type icon on the scene tab #79226

Closed
pablogila opened this issue Jul 9, 2023 · 9 comments

Comments

@pablogila
Copy link

pablogila commented Jul 9, 2023

Godot version

4.1.stable

System information

Windows 10, intel hd 620 integrated graphics

Issue description

Changing the type of a CharacterBody2D to a Node2D will still show the miniature of a CharacterBody2D, and the scene needs to be closed and opened again to show the Node2D miniature.

Steps to reproduce

Here are the steps I followed that lead to this bug: Create a new project, with a CharacterBody2D as a root node. Add a Sprite2D and CollisionShape2D as childs. Now create a new CharacterBody2D as a child of the first one, and move the sprite and collision nodes inside the nested CharacterBody2D node. Finally, change the type of the original parent node from CharacterBody2D to Node2D. The node icon will still indicate a CharacterBody2D node, although now it is a Node2D. The scene has to be restarted to indicate the new node type correctly.

Minimal reproduction project

N/A

@dalexeev
Copy link
Member

dalexeev commented Jul 9, 2023

Failed to reproduce:

1.mp4

@KoBeWi
Copy link
Member

KoBeWi commented Jul 9, 2023

Might be related to #78670 and fixed by #79203
Also can't reproduce though.

@venilark
Copy link

I noticed it too.

@dalexeev
Copy link
Member

I noticed it too.

Please provide Godot version and describe the steps to reproduce. Are they the same as in the first post or different?

@venilark
Copy link

I noticed it too.

Please provide Godot version and describe the steps to reproduce. Are they the same as in the first post or different?

4.1 stable
It's not happening now but when it happened I changed the parent node from Node3D to RigidBody3D. Scene was previously saved.
If I manage to reproduce it and know exactly when it happens I'll write again.

@venilark
Copy link

venilark commented Jul 12, 2023

Still don't know how to replicate it but I had an instance in a scene which was an Area3D, and without changing type or doing anything with it, it had the "Node" icon. I had to close the instance tab and the scene that had it inside and then the Area3D icon returned.

@pablogila
Copy link
Author

Okay, this is weird. I have tried to reproduce the same issue in a new project with no success. However, I noticed that this is still happening in the original test project where I first noticed this issue. Here is the zip file containing the project.

To reproduce the issue, change the root node type from 2D to CharacterBody2D. The node icon will still be Node2D.

NodeTypeIssue#79226.zip

@KoBeWi
Copy link
Member

KoBeWi commented Jul 14, 2023

Seems like duplicate of #76983
Your node has a script attached.

@pablogila
Copy link
Author

That's it! Thank you. Closing the thread now.

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

4 participants