apply built-in scripts when running the game, closes #4987

This commit is contained in:
Juan Linietsky 2016-06-11 21:59:35 -03:00
parent ceeb5453a8
commit 482b21a5a4
1 changed files with 4 additions and 1 deletions

View File

@ -2147,9 +2147,12 @@ void ScriptEditor::save_all_scripts() {
continue;
Ref<Script> script = ste->get_edited_script();
if (script.is_valid())
ste->apply_code();
if (script->get_path()!="" && script->get_path().find("local://")==-1 &&script->get_path().find("::")==-1) {
//external script, save it
ste->apply_code();
editor->save_resource(script);
//ResourceSaver::save(script->get_path(),script);
}