]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
add alias _shadeangle to _smoothnormals
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 10 Apr 2009 13:56:55 +0000 (13:56 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Fri, 10 Apr 2009 13:56:55 +0000 (13:56 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@315 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/surface_meta.c

index 16ee85cf1615548ed36437b733a067f4966a5a23..727d5a0fbd1aaa6def1512681a8cfe5b71294493 100644 (file)
@@ -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)