Use actual class names in resource type hints
This commit is contained in:
parent
80a4af1cc7
commit
f7b9703cbd
162 changed files with 377 additions and 377 deletions
|
|
@ -617,7 +617,7 @@ void Object::get_property_list(List<PropertyInfo> *p_list, bool p_reversed) cons
|
|||
_get_property_listv(p_list, p_reversed);
|
||||
|
||||
if (!is_class("Script")) { // can still be set, but this is for user-friendliness
|
||||
p_list->push_back(PropertyInfo(Variant::OBJECT, "script", PROPERTY_HINT_RESOURCE_TYPE, "Script", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NEVER_DUPLICATE));
|
||||
p_list->push_back(PropertyInfo(Variant::OBJECT, "script", PROPERTY_HINT_RESOURCE_TYPE, Script::get_class_static(), PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_NEVER_DUPLICATE));
|
||||
}
|
||||
|
||||
if (script_instance && !p_reversed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue