From bcb184766fd0cbd5d98ee84e8bd51c252dda01f0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 11 May 2015 21:36:29 -0300 Subject: [PATCH] -shadergraph now saved when on external file and modified, fixes #1832 --- core/undo_redo.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/undo_redo.cpp b/core/undo_redo.cpp index f2665957728..5e7df3be7e6 100644 --- a/core/undo_redo.cpp +++ b/core/undo_redo.cpp @@ -234,11 +234,17 @@ void UndoRedo::_process_operation_list(List::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(); + if (res) + res->set_edited(true); +#endif } break; case Operation::TYPE_PROPERTY: {