Correct is_reference attribute in api.json for Reference class
(cherry picked from commit b5c80088ce
)
This commit is contained in:
parent
f7021e57d7
commit
8bc44c868e
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ List<ClassAPI> generate_c_api_classes() {
|
|||
{
|
||||
List<StringName> inheriters;
|
||||
ClassDB::get_inheriters_from_class("Reference", &inheriters);
|
||||
bool is_reference = !!inheriters.find(class_name);
|
||||
bool is_reference = !!inheriters.find(class_name) || class_name == "Reference";
|
||||
// @Unclear
|
||||
class_api.is_reference = !class_api.is_singleton && is_reference;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue