From e962fd89af865d6e01522e9752f5fbd855ce128a Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 5 Mar 2011 05:25:14 +0100 Subject: partially working obj importer. still untested in-game --- NW4RTools/Models/OpenGL/GLModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NW4RTools/Models/OpenGL') diff --git a/NW4RTools/Models/OpenGL/GLModel.cs b/NW4RTools/Models/OpenGL/GLModel.cs index 8ca3f31..072ea00 100644 --- a/NW4RTools/Models/OpenGL/GLModel.cs +++ b/NW4RTools/Models/OpenGL/GLModel.cs @@ -257,7 +257,7 @@ namespace NW4RTools.Models.OpenGL { break; if ((cmd & (int)GXCommand.DrawPrimitiveMask) != 0) { - PrimitiveType prim = (PrimitiveType)((cmd >> 3) & 7); + PrimitiveType prim = (PrimitiveType)((cmd >> (byte)GXCommand.PrimitiveShiftAmount) & 7); int vtxCount = dl.ReadUInt16(); if ((cmd & 7) != 0) -- cgit v1.2.3