mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-14 17:09:31 +07:00
fix disabled iso object bug
This commit is contained in:
@@ -165,13 +165,6 @@ namespace IsoTools {
|
||||
_isoRMatrix = _isoMatrix.inverse;
|
||||
}
|
||||
|
||||
void ResetAllWorlds() {
|
||||
var objects_iter = _objects.GetEnumerator();
|
||||
while ( objects_iter.MoveNext() ) {
|
||||
objects_iter.Current.ResetWorld();
|
||||
}
|
||||
}
|
||||
|
||||
void FixAllTransforms() {
|
||||
var objects_iter = _objects.GetEnumerator();
|
||||
while ( objects_iter.MoveNext() ) {
|
||||
@@ -559,13 +552,13 @@ namespace IsoTools {
|
||||
|
||||
void OnEnable() {
|
||||
_objects = new HashSet<IsoObject>(FindObjectsOfType<IsoObject>());
|
||||
_objects.RemoveWhere(iso_object => !iso_object.enabled);
|
||||
_visibles.Clear();
|
||||
_sectors.Clear();
|
||||
MarkDirty();
|
||||
}
|
||||
|
||||
void OnDisable() {
|
||||
ResetAllWorlds();
|
||||
_objects.Clear();
|
||||
_visibles.Clear();
|
||||
_sectors.Clear();
|
||||
|
||||
Reference in New Issue
Block a user