feat: add NotifyPropertiesUpdated to Object and trigger on Transform changes for UI synchronization
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user