diff --git a/Editor.Integrations/Odin/OdinFieldDrawer.cs b/Editor.Integrations/Odin/OdinFieldDrawer.cs index ac271e6..83e2321 100644 --- a/Editor.Integrations/Odin/OdinFieldDrawer.cs +++ b/Editor.Integrations/Odin/OdinFieldDrawer.cs @@ -53,7 +53,6 @@ namespace TriInspector.Editor.Integrations.Odin base.Initialize(); _propertyTree = new TriPropertyTreeForOdin(ValueEntry); - _propertyTree.Initialize(); } public void Dispose() diff --git a/Editor.Integrations/Odin/OdinFieldValidator.cs b/Editor.Integrations/Odin/OdinFieldValidator.cs index 2358934..ea7ee81 100644 --- a/Editor.Integrations/Odin/OdinFieldValidator.cs +++ b/Editor.Integrations/Odin/OdinFieldValidator.cs @@ -51,7 +51,6 @@ namespace TriInspector.Editor.Integrations.Odin protected override void Initialize() { _propertyTree = new TriPropertyTreeForOdin(ValueEntry); - _propertyTree.Initialize(); } public void Dispose() diff --git a/Editor.Integrations/Odin/OdinObjectDrawer.cs b/Editor.Integrations/Odin/OdinObjectDrawer.cs index c21d18d..2594c71 100644 --- a/Editor.Integrations/Odin/OdinObjectDrawer.cs +++ b/Editor.Integrations/Odin/OdinObjectDrawer.cs @@ -44,7 +44,6 @@ namespace TriInspector.Editor.Integrations.Odin var serializedObject = Property.Tree.UnitySerializedObject; _propertyTree = new TriPropertyTreeForSerializedObject(serializedObject); - _propertyTree.Initialize(); } public void Dispose() diff --git a/Editor.Integrations/Odin/OdinObjectValidator.cs b/Editor.Integrations/Odin/OdinObjectValidator.cs index 9b1d67c..20e0a59 100644 --- a/Editor.Integrations/Odin/OdinObjectValidator.cs +++ b/Editor.Integrations/Odin/OdinObjectValidator.cs @@ -40,7 +40,6 @@ namespace TriInspector.Editor.Integrations.Odin { _serializedObject = new SerializedObject(ValueEntry.SmartValue); _propertyTree = new TriPropertyTreeForSerializedObject(_serializedObject); - _propertyTree.Initialize(); } public void Dispose() diff --git a/Editor/TriEditor.cs b/Editor/TriEditor.cs index d0dafc1..989d08e 100644 --- a/Editor/TriEditor.cs +++ b/Editor/TriEditor.cs @@ -33,7 +33,6 @@ namespace TriInspector } _inspector = new TriPropertyTreeForSerializedObject(serializedObject); - _inspector.Initialize(); } serializedObject.UpdateIfRequiredOrScript(); diff --git a/Editor/TriPropertyTree.cs b/Editor/TriPropertyTree.cs index b924eb0..981aa23 100644 --- a/Editor/TriPropertyTree.cs +++ b/Editor/TriPropertyTree.cs @@ -17,14 +17,8 @@ namespace TriInspector public int TargetsCount { get; protected set; } public bool TargetIsPersistent { get; protected set; } - public bool ValidationRequired { get; private set; } - public bool RepaintRequired { get; private set; } - - public void Initialize() - { - Update(); - RunValidation(); - } + public bool ValidationRequired { get; private set; } = true; + public bool RepaintRequired { get; private set; } = true; public virtual void Dispose() {