Remove redundant Initialize method

This commit is contained in:
VladV 2022-05-29 14:07:15 +03:00
parent 2b389d9323
commit 9e7bc4cf56
6 changed files with 2 additions and 13 deletions

View File

@ -53,7 +53,6 @@ namespace TriInspector.Editor.Integrations.Odin
base.Initialize();
_propertyTree = new TriPropertyTreeForOdin<T>(ValueEntry);
_propertyTree.Initialize();
}
public void Dispose()

View File

@ -51,7 +51,6 @@ namespace TriInspector.Editor.Integrations.Odin
protected override void Initialize()
{
_propertyTree = new TriPropertyTreeForOdin<T>(ValueEntry);
_propertyTree.Initialize();
}
public void Dispose()

View File

@ -44,7 +44,6 @@ namespace TriInspector.Editor.Integrations.Odin
var serializedObject = Property.Tree.UnitySerializedObject;
_propertyTree = new TriPropertyTreeForSerializedObject(serializedObject);
_propertyTree.Initialize();
}
public void Dispose()

View File

@ -40,7 +40,6 @@ namespace TriInspector.Editor.Integrations.Odin
{
_serializedObject = new SerializedObject(ValueEntry.SmartValue);
_propertyTree = new TriPropertyTreeForSerializedObject(_serializedObject);
_propertyTree.Initialize();
}
public void Dispose()

View File

@ -33,7 +33,6 @@ namespace TriInspector
}
_inspector = new TriPropertyTreeForSerializedObject(serializedObject);
_inspector.Initialize();
}
serializedObject.UpdateIfRequiredOrScript();

View File

@ -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()
{