From d6c2878491968c81fd4e585281c5f453afb2acb1 Mon Sep 17 00:00:00 2001 From: henrisel Date: Mon, 16 Mar 2026 12:31:43 +0200 Subject: [PATCH] simplify shape scanner code --- .../Scripts/ModeGeneration/ShapeDetection/ShapeScanner.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Assets/_PROJECT/Scripts/ModeGeneration/ShapeDetection/ShapeScanner.cs b/Assets/_PROJECT/Scripts/ModeGeneration/ShapeDetection/ShapeScanner.cs index f3945e79..64fa18ad 100644 --- a/Assets/_PROJECT/Scripts/ModeGeneration/ShapeDetection/ShapeScanner.cs +++ b/Assets/_PROJECT/Scripts/ModeGeneration/ShapeDetection/ShapeScanner.cs @@ -145,13 +145,7 @@ public class ShapeScanner : MonoBehaviour var grab = collidingObject.GetComponent(); if (grab != null && grab.isSelected) { - var interactors = new List(grab.interactorsSelecting); // the controllers currently holding it - foreach (var interactor in interactors) - { - // Transfer ownership: tell the manager to stop the selection - //interactionManager.SelectExit(interactor, grab); // Not necessary, creates errors - grab.enabled = false; - } + grab.enabled = false; } collidingObject.transform.position = Vector3.zero; Destroy(collidingObject);