com.artromskiy.deltaecs.unity 0.0.46 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/Editor/HierarchyNodeHandler.cs +5 -5
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -525,15 +525,15 @@ namespace Delta.ECS.Unity.Editor
|
|
|
525
525
|
bool changed = false;
|
|
526
526
|
runtimeWorld.World.ForEachEntity(in query, entity =>
|
|
527
527
|
{
|
|
528
|
-
if (runtimeWorld.TryGetStableId(entity
|
|
528
|
+
if (runtimeWorld.TryGetStableId(entity, out _) || runtimeWorld.TryGetView(entity, out _))
|
|
529
529
|
{
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
var key = new EntityKey(runtimeWorld, entity
|
|
533
|
+
var key = new EntityKey(runtimeWorld, entity);
|
|
534
534
|
_activeEntityKeys.Add(key);
|
|
535
535
|
string name = $"ECS Entity {entity.Index}:{entity.Generation}";
|
|
536
|
-
var reference = new NodeReference(authoring, null, runtimeWorld, entity
|
|
536
|
+
var reference = new NodeReference(authoring, null, runtimeWorld, entity);
|
|
537
537
|
if (_entityNodes.TryGetValue(key, out EntityNode entityNode))
|
|
538
538
|
{
|
|
539
539
|
if (entityNode.Reference.RuntimeWorld != reference.RuntimeWorld
|
|
@@ -942,8 +942,8 @@ namespace Delta.ECS.Unity.Editor
|
|
|
942
942
|
|
|
943
943
|
public override bool Equals(object obj) => obj is EntityKey other && Equals(other);
|
|
944
944
|
public override int GetHashCode() => _runtimeWorld != null
|
|
945
|
-
?
|
|
946
|
-
:
|
|
945
|
+
? (_runtimeWorld.GetHashCode() * 397) ^ _runtimeEntity.GetHashCode()
|
|
946
|
+
: (_authoringId.GetHashCode() * 397) ^ StringComparer.Ordinal.GetHashCode(_stableId ?? string.Empty);
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
|
package/README.md
CHANGED