From 4ae10cbf8d1c6bff62050bfb4a48e6bf93b68e32 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 10 Apr 2009 13:56:55 +0000 Subject: [PATCH] add alias _shadeangle to _smoothnormals git-svn-id: svn://svn.icculus.org/netradiant/trunk@315 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/q3map2/surface_meta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/surface_meta.c b/tools/quake3/q3map2/surface_meta.c index 16ee85c..727d5a0 100644 --- a/tools/quake3/q3map2/surface_meta.c +++ b/tools/quake3/q3map2/surface_meta.c @@ -1028,7 +1028,9 @@ void SmoothMetaTriangles( void ) for( i = 0, tri = &metaTriangles[ i ]; i < numMetaTriangles; i++, tri++ ) { /* vortex: try get smoothing from entity key */ - shadeAngle = FloatForKey(&entities[tri->entityNum], "_smoothnormals"); + shadeAngle = FloatForKey(&entities[tri->entityNum], "_shadeangle"); + if (shadeAngle <= 0.0f) + shadeAngle = FloatForKey(&entities[tri->entityNum], "_smoothnormals"); if (shadeAngle <= 0.0f) shadeAngle = FloatForKey(&entities[tri->entityNum], "_sn"); if (shadeAngle <= 0.0f) -- 2.39.2