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 show the icon of their script type #81276

Closed
mieldepoche opened this issue Sep 3, 2023 · 1 comment
Closed

Nodes show the icon of their script type #81276

mieldepoche opened this issue Sep 3, 2023 · 1 comment
Labels

Comments

@mieldepoche
Copy link
Contributor

Godot version

4.1.1

System information

linux

Issue description

Related to #61126

when attaching a script to a node, the displayed icon is stupid (for lack of a better way to put it):
It chooses an icon matching the word after extends regardless of its validity as a type... (it picks it from the editor/icons directory it seems)

In this demo, the node is a Node2D:

simplescreenrecorder-2023-09-03_17.55.26.webm

as you can see extending the script with any class will make the node it's attached to use the class icon, without erroring about incompatibility (unless the word you put isn't actually a valid type).
An error happens only at runtime...

Steps to reproduce

  1. attach a script to a node
  2. make the script extend any class you'd like, or put a random icon name
  3. reload the scene
  4. notice the icon usage

Minimal reproduction project

any

@KoBeWi
Copy link
Member

KoBeWi commented Sep 3, 2023

Duplicate of #76983
This is fixed in 4.2

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

No branches or pull requests

3 participants