mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Fix for serialized properties changing fields with reference types doesn't mark object as dirty
This commit is contained in:
parent
6a5af4e687
commit
57e726cc4f
@ -36,7 +36,7 @@ namespace TriInspector.Drawers
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
propertyValue.SmartValue = value;
|
||||
propertyValue.SetValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ namespace TriInspector.Drawers
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
_propertyValue.SmartValue = value;
|
||||
_propertyValue.SetValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -33,5 +33,11 @@ namespace TriInspector
|
||||
Property.SetValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
[PublicAPI]
|
||||
public void SetValue(T value)
|
||||
{
|
||||
Property.SetValue(value);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user