From 48af63444cf5644294dd48bd198a3156a700e68b Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Sun, 10 Nov 2019 09:55:26 -0500 Subject: [PATCH] A few more LM3 fixes --- File_Format_Library/FileFormats/NLG/LM3/LM3_DICT.cs | 4 ++-- File_Format_Library/FileFormats/NLG/LM3/LM3_Model.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/File_Format_Library/FileFormats/NLG/LM3/LM3_DICT.cs b/File_Format_Library/FileFormats/NLG/LM3/LM3_DICT.cs index af986b00..2948552e 100644 --- a/File_Format_Library/FileFormats/NLG/LM3/LM3_DICT.cs +++ b/File_Format_Library/FileFormats/NLG/LM3/LM3_DICT.cs @@ -412,7 +412,7 @@ namespace FirstPlugin.LuigisMansion3 chunkEntry.DataFile = File052Data; using (var boneReader = new FileReader(chunkEntry.FileData, true)) { - currentModel.Skeleton = new STSkeleton(); + /* currentModel.Skeleton = new STSkeleton(); DrawableContainer.Drawables.Add(currentModel.Skeleton); uint numBones = chunk.ChunkSize / 0x40; @@ -454,7 +454,7 @@ namespace FirstPlugin.LuigisMansion3 } currentModel.Skeleton.reset(); - currentModel.Skeleton.update(); + currentModel.Skeleton.update();*/ } } break; diff --git a/File_Format_Library/FileFormats/NLG/LM3/LM3_Model.cs b/File_Format_Library/FileFormats/NLG/LM3/LM3_Model.cs index a1381b81..a48463bc 100644 --- a/File_Format_Library/FileFormats/NLG/LM3/LM3_Model.cs +++ b/File_Format_Library/FileFormats/NLG/LM3/LM3_Model.cs @@ -474,8 +474,6 @@ namespace FirstPlugin.LuigisMansion3 reader.Position = 0; - return; - var meshSize = reader.BaseStream.Length / model.Meshes.Count; for (int i = 0; i < model.Meshes.Count; i++) {