diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-11 21:36:29 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-11 21:36:29 -0300 |
commit | bcb184766fd0cbd5d98ee84e8bd51c252dda01f0 (patch) | |
tree | bb7de0c04f37130b86ca231af3296c94c7144f75 | |
parent | bc0ef64bedbfe5a2f091d518aafbf40f7d4c8f3a (diff) |
-shadergraph now saved when on external file and modified, fixes #1832
-rw-r--r-- | core/undo_redo.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/undo_redo.cpp b/core/undo_redo.cpp index f266595772..5e7df3be7e 100644 --- a/core/undo_redo.cpp +++ b/core/undo_redo.cpp @@ -234,11 +234,17 @@ void UndoRedo::_process_operation_list(List<Operation>::Element *E) { ERR_FAIL_COND(!obj); } + switch(op.type) { case Operation::TYPE_METHOD: { - obj->call(op.name,VARIANT_ARGS_FROM_ARRAY(op.args)); + obj->call(op.name,VARIANT_ARGS_FROM_ARRAY(op.args)); +#ifdef TOOLS_ENABLED + Resource* res = obj->cast_to<Resource>(); + if (res) + res->set_edited(true); +#endif } break; case Operation::TYPE_PROPERTY: { |