Skip to content

Commit c5afc1c

Browse files
manaporkunclaude
andcommitted
fix: clean up _transformHashSet in RemoveHandle to allow handle re-creation
RemoveHandle did not remove transforms from _transformHashSet, causing subsequent CreateHandle calls for the same transform to fail silently with "already has a handle" warning. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d63bff0 commit c5afc1c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Packages/com.orkunmanap.runtime-transform-handles/Runtime/Scripts/TransformHandleManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ public void RemoveHandle(Handle handle)
280280
_handleGroupMap.Remove(handle);
281281
handle.Disable();
282282

283+
foreach (var target in group.Transforms)
284+
{
285+
_transformHashSet.Remove(target);
286+
}
287+
283288
var groupGhost = group.GroupGhost;
284289
if (groupGhost != null)
285290
{

0 commit comments

Comments
 (0)