Skip to content

Commit fec2de6

Browse files
committed
Fixed small issue with a nullcheck coming back from the dashboard
1 parent 96d5b72 commit fec2de6

File tree

1 file changed

+1
-1
lines changed
  • Assets/SteamVR/InteractionSystem/Core/Scripts

1 file changed

+1
-1
lines changed

Assets/SteamVR/InteractionSystem/Core/Scripts/Hand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public void AttachObject(GameObject objectToAttach, GrabTypes grabbedWithType, A
559559
attachedObject.skeletonLockRotation = Quaternion.Inverse(attachedObject.attachedObject.transform.rotation) * skeleton.transform.rotation;
560560
}
561561

562-
if (attachedObject.interactable.attachEaseIn)
562+
if (attachedObject.interactable != null && attachedObject.interactable.attachEaseIn)
563563
{
564564
attachedObject.attachedObject.transform.position = attachedObject.easeSourcePosition;
565565
attachedObject.attachedObject.transform.rotation = attachedObject.easeSourceRotation;

0 commit comments

Comments
 (0)