feat: add NotifyPropertiesUpdated to Object and trigger on Transform changes for UI synchronization

This commit is contained in:
AndreaRigoni
2026-03-31 17:05:17 +00:00
parent f3274f346b
commit 34f834d370
3 changed files with 11 additions and 0 deletions

View File

@@ -98,6 +98,11 @@ PropertyBase* Object::GetProperty(const std::string& name) const {
return nullptr;
}
void Object::NotifyPropertiesUpdated() {
for (auto* p : d->m_Properties) p->Updated();
for (auto* p : d->m_DynamicProperties) p->Updated();
}
// In Object.h, the template serialize needs to be updated to call property serialization.
// However, since Object::serialize is a template in the header, we might need a helper here.