From ac1f64b5593f742fe34017dd07077a6c0da71956 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 28 Jul 2015 03:20:18 +0200 Subject: [PATCH] Fix StencilProperty front face mixup (Fixes #2802) --- components/nifosg/nifloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index b5439afee..6824c0afd 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -1159,11 +1159,11 @@ namespace NifOsg osg::FrontFace* frontFace = new osg::FrontFace; switch (stencilprop->data.drawMode) { - case 1: + case 2: frontFace->setMode(osg::FrontFace::CLOCKWISE); break; case 0: - case 2: + case 1: default: frontFace->setMode(osg::FrontFace::COUNTER_CLOCKWISE); break;