From 3887d40e03f13ffc7941ef22bda6de13395fd285 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 21 Oct 2011 16:23:07 +0200 Subject: fixed obj exporter for matrix-less shapes --- NW4RTools/ObjExporter.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NW4RTools/ObjExporter.cs b/NW4RTools/ObjExporter.cs index 214f84a..7b1afef 100644 --- a/NW4RTools/ObjExporter.cs +++ b/NW4RTools/ObjExporter.cs @@ -118,7 +118,9 @@ namespace NW4RTools { // get the Matrix to use // todo: how to apply this?! - Matrix m = CurrentModel.Nodes[CurrentModel.MatrixIDtoNodeID[shape.MatrixID]].NodeMatrix; + if (shape.MatrixID != -1) { + Matrix m = CurrentModel.Nodes[CurrentModel.MatrixIDtoNodeID[shape.MatrixID]].NodeMatrix; + } // now parse the second DisplayList -- cgit v1.2.3