From c94691ff2595cc010e0f30d477406deea5976d6a Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 16 Feb 2022 12:47:10 +0900 Subject: [PATCH] switch throw --- Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs index 8494e1bb8..fbe63b10d 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/GltfData.cs @@ -259,6 +259,9 @@ namespace UniGLTF } break; } + + default: + throw new ArgumentOutOfRangeException(); } } return result; @@ -321,6 +324,9 @@ namespace UniGLTF } break; } + + default: + throw new ArgumentOutOfRangeException(); } } return result;