godotengine / godotengine/godot

Scenes preview icon (not thumbnail image) may be wrongly set when the root node has no script

Open
#89,937 8 comments 1 reaction 0 assignees View on GitHub
bug topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.3.dev.custom_build [7d151c838]

### System information

linux

### Issue description

- may be related to (didn't investigate) https://github.com/godotengine/godot/pull/77932

| the scene (root has no script). The first child has a custom icon | the scene thumbnail (notice the icon) |
|-|-|
|![image](https://github.com/godotengine/godot/assets/71937306/b72aeafe-5bbb-4655-9d31-5882323d6756)|![image](https://github.com/godotengine/godot/assets/71937306/7121e82f-f400-43fc-8867-469157c05664)|

- if a child of a scriptless root has a custom icon, the scene thumbnail will show the child's icon as a type.
- adding an empty script to the root solves the problem.

### Steps to reproduce

- create scene with no script on the root
- add a child node with any custom icon
- save it and look at the file icon

### Minimal reproduction project (MRP)

any

Contributor guide

Open the contributing guide

Research direction

No file, test, or code entry point is named. Begin by reproducing the issue in Godot with a scriptless root and a child with a custom icon, then inspect the scene thumbnail and file-icon generation path. Done means the preview no longer uses the child’s custom icon as the scene type when the root has no script.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.