浏览代码

Merge pull request #41224 from ThakeeNathees/fix-ctrl+click-not-working

Fix: ctrl + click not working on script member
George Marques 5 年之前
父节点
当前提交
adc1f95d97
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/gdscript/gdscript_editor.cpp

+ 1 - 0
modules/gdscript/gdscript_editor.cpp

@@ -2765,6 +2765,7 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
 					if (base_type.class_type->has_member(p_symbol)) {
 					if (base_type.class_type->has_member(p_symbol)) {
 						r_result.type = ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION;
 						r_result.type = ScriptLanguage::LookupResult::RESULT_SCRIPT_LOCATION;
 						r_result.location = base_type.class_type->get_member(p_symbol).get_line();
 						r_result.location = base_type.class_type->get_member(p_symbol).get_line();
+						return OK;
 					}
 					}
 					base_type = base_type.class_type->base_type;
 					base_type = base_type.class_type->base_type;
 				}
 				}