瀏覽代碼

more bugfixes

Juan Linietsky 10 年之前
父節點
當前提交
c940212b89
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/gdscript/gd_script.cpp

+ 2 - 0
modules/gdscript/gd_script.cpp

@@ -2034,7 +2034,9 @@ Error GDScript::load_source_code(const String& p_path) {
 	}
 	}
 
 
 	source=s;
 	source=s;
+#ifdef TOOLS_ENABLED
 	source_changed_cache=true;
 	source_changed_cache=true;
+#endif
 	//print_line("LSC :"+get_path());
 	//print_line("LSC :"+get_path());
 	path=p_path;
 	path=p_path;
 	return OK;
 	return OK;