Skip to content

Commit d2a4232

Browse files
committed
Make sure patch gets marked dirty if inspector properties change
1 parent 30773a7 commit d2a4232

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Source/Objects/ObjectBase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ ObjectBase::ObjectBase(pd::WeakReference obj, Object* parent)
189189
if (auto obj = _this->ptr.get<t_gobj>()) {
190190
auto* canvas = _this->cnv->patch.getRawPointer();
191191
pd::Interface::undoApply(canvas, obj.get());
192+
canvas_dirty(canvas, 1);
192193
}
193194
};
194195
}

Source/Pd/Instance.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ void Instance::initialisePd(String& pdlua_version)
406406
patch->updateUndoRedoState(SmallString(undoName->s_name), SmallString(redoName->s_name));
407407
}
408408
}
409+
for(auto* editor : pd->getEditors())
410+
editor->triggerAsyncUpdate();
409411
});
410412
break;
411413
}
@@ -422,6 +424,8 @@ void Instance::initialisePd(String& pdlua_version)
422424
patch->updateTitle(SmallString(title->s_name), isDirty);
423425
}
424426
}
427+
for(auto* editor : pd->getEditors())
428+
editor->triggerAsyncUpdate();
425429
});
426430
break;
427431
}

0 commit comments

Comments
 (0)