From a14e230f5ce681072c1717c09cb8aa9df8a829cc Mon Sep 17 00:00:00 2001 From: Donavin Draws <51259260+DonavinDraws@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:56:00 -0600 Subject: [PATCH] middle pipe fix the drain pipe refs need to be specified for it to work now, not just be present ('cuz middle pipes have it, but don't use it) --- Fushigi/ui/widgets/LevelViewport.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fushigi/ui/widgets/LevelViewport.cs b/Fushigi/ui/widgets/LevelViewport.cs index eeb847bb..3d5f0508 100644 --- a/Fushigi/ui/widgets/LevelViewport.cs +++ b/Fushigi/ui/widgets/LevelViewport.cs @@ -313,7 +313,8 @@ private void RenderActor(CourseActor actor, ModelInfo modelInfo) var model = render.Models[modelName]; //switch for drawing models with different methods easier - if(actor.mActorPack.DrainPipeRef != null){ + if(actor.mActorPack.DrainPipeRef != null && actor.mActorPack.DrainPipeRef.ModelKeyTop != null && + actor.mActorPack.DrainPipeRef.ModelKeyMiddle != null){ var drainRef = actor.mActorPack.DrainPipeRef; var calc = actor.mActorPack.ShapeParams.mCalc; var KeyMats = new Dictionary{