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

Custom node icon is oversized in inspector #75845

Closed
DricomDragon opened this issue Apr 9, 2023 · 1 comment
Closed

Custom node icon is oversized in inspector #75845

DricomDragon opened this issue Apr 9, 2023 · 1 comment
Labels

Comments

@DricomDragon
Copy link

Godot version

4.0.2.stable

System information

Ubuntu 20.04.6 LTS (i3wm), OpenGL API 4.6 (Core Profile) Mesa 21.2.6 - Compatibility - Using Device: Intel - Mesa Intel(R) UHD Graphics 620 (KBL GT2)

Issue description

When using a custom SVG icon for a Node that's exporting a variable, the custom icon is not scaled properly in the editor inspector.

@icon("res://icon.svg")
class_name CustomNode
extends Node2D
@export var exp_var: String = "Hello"

editor-oversized-custom-icon-inspect

Does not depend on rendering backend (reproduced with Forward+ and Compatibility).

Steps to reproduce

  1. Create a script exporting a custom SVG icon and exporting at least one variable
  2. Restart the editor to apply custom icon
  3. Open the inspector on a instantiated custom node
  4. Look at the icon in the inspector

Minimal reproduction project

BugReport_EditorOversizedCustomIcon.zip

@KoBeWi
Copy link
Member

KoBeWi commented Apr 9, 2023

Duplicate of #57286
The issue is fixed in 4.1-dev, but the fix might be cherry-picked to 4.0.3.

@KoBeWi KoBeWi closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2023
@KoBeWi KoBeWi added the archived label Apr 9, 2023
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

2 participants