diff --git a/src/Core/Resource/Script/Property/IProperty.cpp b/src/Core/Resource/Script/Property/IProperty.cpp index 8976d068..50f49067 100644 --- a/src/Core/Resource/Script/Property/IProperty.cpp +++ b/src/Core/Resource/Script/Property/IProperty.cpp @@ -387,10 +387,7 @@ void IProperty::MarkDirty() void IProperty::ClearDirtyFlag() { - if (!mpScriptTemplate) - { - RootParent()->mFlags &= ~EPropertyFlag::IsDirty; - } + RootParent()->mFlags &= ~EPropertyFlag::IsDirty; } bool IProperty::ConvertType(EPropertyType NewType, IProperty* pNewArchetype /*= nullptr*/)