Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use arbitrary theme editor icons for scripts with the same name
The existing theme editor icon could be unintentionally set for any global class with matching name (`Group` icon, `Group` class_name etc), which would only show up in the "Create Dialog" context, but not the scene tree dock. This change prevents this behavior, and ensures that the icon can be actually overidden by explicit icon path in `class_name`, if there's any custom icon to begin with. The correct built-in type's icon is fetched for child classes if there are no custom icons detected throughout base classes as well, so it isn't left empty for those cases. (cherry picked from commit c177308)
- Loading branch information