You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix: Ctrl + Click not working for subclasses
(cherry picked from commit 95b0a00d2c)
This commit is contained in:
committed by
Rémi Verschelde
parent
fc92f83c30
commit
438f1a8238
@@ -3117,6 +3117,14 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < base_type.class_type->subclasses.size(); i++) {
|
||||||
|
if (base_type.class_type->subclasses[i]->name == p_symbol) {
|
||||||
|
r_result.type = ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION;
|
||||||
|
r_result.location = base_type.class_type->subclasses[i]->line;
|
||||||
|
return OK;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
base_type = base_type.class_type->base_type;
|
base_type = base_type.class_type->base_type;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user