Skip to content

Commit 69df8e6

Browse files
fix: Gutter icons in the editor for trait scripts
Credit @Ward727a - Fixed a bug when 2 functions (one from trait, and one from other scipt) was one the same line: The gutter icon for virtual function wasn't shown. - Did a little optimization on the "get_function_names_recursively" function (using Vector and not HashMap) this allow us to gain ~10% in time when running (HashMap average ~= 9.8µs / Vector average ~= 8.8µs).
2 parents ed49262 + 207ed6d commit 69df8e6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

modules/gdscript/gdscript_editor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ bool GDScriptLanguage::validate(const String &p_script, const String &p_path, Li
198198
get_function_names_recursively(cl, "", funcs);
199199

200200
for (const String &E : funcs) {
201-
r_functions->push_back(E);
202201
}
203202
}
204203

0 commit comments

Comments
 (0)