diff options
| author | Juan Linietsky | 2014-11-02 11:31:01 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-11-02 11:31:01 -0300 |
| commit | d85b67be53bac252c0a28b799d56d1b359c4ee99 (patch) | |
| tree | 5227e145e3271bfee542bdd3e4237c3378565306 /core/undo_redo.cpp | |
| parent | 738eb2c1a88d441eacc4149ce8f1c12a90267191 (diff) | |
| download | godot-d85b67be53bac252c0a28b799d56d1b359c4ee99.tar.gz godot-d85b67be53bac252c0a28b799d56d1b359c4ee99.tar.zst godot-d85b67be53bac252c0a28b799d56d1b359c4ee99.zip | |
Diffstat (limited to 'core/undo_redo.cpp')
| -rw-r--r-- | core/undo_redo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/undo_redo.cpp b/core/undo_redo.cpp index b78fd8988..2c4d9e16a 100644 --- a/core/undo_redo.cpp +++ b/core/undo_redo.cpp @@ -243,6 +243,11 @@ void UndoRedo::_process_operation_list(List<Operation>::Element *E) { case Operation::TYPE_PROPERTY: { obj->set(op.name,op.args[0]); +#ifdef TOOLS_ENABLED + Resource* res = obj->cast_to<Resource>(); + if (res) + res->set_edited(true); +#endif } break; case Operation::TYPE_REFERENCE: { //do nothing |
