From 61f29b55bcde3ff76ea966b4c5741caa36be0c23 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Tue, 15 Mar 2022 21:20:52 +0900 Subject: [PATCH] refactor --- .../Migration/MigrationVrmFirstPersonAndLookAt.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Assets/VRM10/Runtime/Migration/MigrationVrmFirstPersonAndLookAt.cs b/Assets/VRM10/Runtime/Migration/MigrationVrmFirstPersonAndLookAt.cs index d7d294f8e..61cf83d86 100644 --- a/Assets/VRM10/Runtime/Migration/MigrationVrmFirstPersonAndLookAt.cs +++ b/Assets/VRM10/Runtime/Migration/MigrationVrmFirstPersonAndLookAt.cs @@ -21,14 +21,12 @@ namespace UniVRM10 OutputScale = yRangeNode.GetSingle(), }; } - else + + return new LookAtRangeMap { - return new LookAtRangeMap - { - InputMaxValue = defaultXRange, - OutputScale = defaultYRange, - }; - } + InputMaxValue = defaultXRange, + OutputScale = defaultYRange, + }; } private static LookAtType MigrateLookAtType(JsonNode vrm0, string key)