summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NW4RTools/ObjExporter.cs4
1 files changed, 3 insertions, 1 deletions
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