]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/model.c
new argument -celshader, for cel shading without changing the .map file
[xonotic/netradiant.git] / tools / quake3 / q3map2 / model.c
index 9847f6649338358489fe6ba231ac770029da68e1..82bf307baa79506a674fd3459a040b58079f1626 100644 (file)
@@ -729,7 +729,7 @@ void AddTriangleModels( entity_t *e )
                        celShader = ShaderInfoForShader( shader );
                }
                else
-                       celShader = NULL;
+                       celShader = *globalCelShader ? ShaderInfoForShader(globalCelShader) : NULL;
                
                /* get lightmap scale */
                lightmapScale = FloatForKey( e2, "_lightmapscale" );