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

"class_name" field of property list item is wrong for use defined classes and for at least CanvasItem.material #25432

Closed
DerRidda opened this issue Jan 28, 2019 · 2 comments · Fixed by #81079

Comments

@DerRidda
Copy link

Godot version:
Godot 3.1 beta 3

OS/device including version:
Linux 64bit ( Solus )

Issue description:
The property list returned by Object.get_property_list() includes a field called class_name for each entry. Said field never has the correct class name for any property that has a user defined class set as it's static type. Only the class_name of the last build-in base class is used.
Might be related to #21789

Further more, the class name field for the property material of the class CanvasItem has the string "ShaderMaterial,CanvasItemMaterial" whereas the actual class should simply be Material according to the docs. Possible that other classes might have similar behaviour.

In any case, class_name should be atomic and never a list.

Steps to reproduce:
Check get_property_list() Method on class that has members with user defined classes and CanvasItem.

@eranimo
Copy link

eranimo commented Aug 23, 2023

This is still a problem in 4.1. get_property_list returns an empty string in class_name for properties with types of custom classes

@Calinou
Copy link
Member

Calinou commented Aug 23, 2023

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.

5 participants