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

Exporting a PackedScene in a custom Resource makes its custom icon to dissappear from the FileSystem #92942

Closed
z4gon opened this issue Jun 9, 2024 · 0 comments · Fixed by #94854

Comments

@z4gon
Copy link

z4gon commented Jun 9, 2024

Tested versions

  • Reproducible in: 4.3.beta1.official [a4f2ea9]

System information

macOS Sonoma 14.1.1 - OpenGL API 4.1 Metal - 88 - Compatibility - Using Device: Apple - Apple M1 Pro

Issue description

Given a custom Resource like this:

@icon("res://icon.svg")

class_name MyResource
extends Resource

@export var my_value: int = 100
@export var my_scene: PackedScene 

Setting the value for my_scene in the Inspector like this:
Screenshot 2024-06-09 at 11 14 58 AM

Makes the custom icon to dissappear in the FileSystem:
Screenshot 2024-06-09 at 11 14 52 AM

Steps to reproduce

  1. create an empty project
  2. create a script extending Resource, give it class_name MyResource and an @icon("res://icon.svg")
  3. make the resource export a PackedScene
  4. create a my_resource_1.tres resource with the script MyResource
  5. create a my_scene.tscn file, with a Sprite2D using an image different than the one used for @icon in the resource (I used this image)
  6. reference this scene in my_resource_1.tres, save
  7. observe the custom icon dissappearing from the FileSystem for my_resource_1.tres

Minimal reproduction project (MRP)

N/A

@z4gon z4gon changed the title Exporting a PackedScene in a custom Resource makes the custom icon to now show in the FileSystem Exporting a PackedScene in a custom Resource makes the custom icon to dissappear from the FileSystem Jun 9, 2024
@z4gon z4gon changed the title Exporting a PackedScene in a custom Resource makes the custom icon to dissappear from the FileSystem Exporting a PackedScene in a custom Resource makes its custom icon to dissappear from the FileSystem Jun 9, 2024
@akien-mga akien-mga added this to the 4.4 milestone Aug 16, 2024
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.

3 participants