Skip to content

Commit

Permalink
Uh... yea, this is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
RisaDev committed Nov 21, 2024
1 parent ff107b4 commit 4ee6220
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions CustomizePlus/Armatures/Services/ArmatureManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,12 @@ private void RefreshArmatures()
var armature = kvPair.Value;
//Only remove armatures which haven't been seen for a while
//But remove armatures of special actors (like examine screen) right away
if (!_objectManager.Identifiers.TryGetValue(kvPair.Value.ActorIdentifier, out var actorData) &&
if (!_objectManager.Identifiers.ContainsKey(kvPair.Value.ActorIdentifier) &&
(armature.LastSeen <= armatureExpirationDateTime || armature.ActorIdentifier.Type == IdentifierType.Special))
{
_logger.Debug($"Removing armature {armature} because {kvPair.Key.IncognitoDebug()} is gone");
RemoveArmature(armature, ArmatureChanged.DeletionReason.Gone);

if(actorData.Objects != null)
{
//Reset root translation
foreach (var obj in actorData.Objects)
ApplyRootTranslation(armature, obj, true);
}

continue;
}

Expand Down

0 comments on commit 4ee6220

Please sign in to comment.