Commit 95b0a00d by Thakee Nathees

Fix: Ctrl + Click not working for subclasses

parent 92394120
......@@ -3089,6 +3089,14 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment