You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Revert "Replace many uses of is_class with derives_from."
This reverts commit 78b743cf4a.
This commit is contained in:
@@ -562,7 +562,7 @@ void Object::get_property_list(List<PropertyInfo> *p_list, bool p_reversed) cons
|
||||
|
||||
_get_property_listv(p_list, p_reversed);
|
||||
|
||||
if (!derives_from<Script>()) { // can still be set, but this is for user-friendliness
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user