From: havoc Date: Wed, 11 Mar 2009 00:39:15 +0000 (+0000) Subject: fix zmodel script to actually work X-Git-Tag: xonotic-v0.1.0preview~1810 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=679fa751cf64696950128250234aab5cf1b918e1;p=xonotic%2Fdarkplaces.git fix zmodel script to actually work git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8786 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_shared.c b/model_shared.c index 2f62480c..b5ca9c3b 100644 --- a/model_shared.c +++ b/model_shared.c @@ -2534,7 +2534,7 @@ static void Mod_Decompile_f(void) { dpsnprintf(outname, sizeof(outname), "%s_decompiled/ref1.smd", basename); Mod_Decompile_SMD(mod, outname, 0, 1, true); - l = dpsnprintf(zymtextbuffer + zymtextsize, sizeof(zymtextbuffer) - zymtextsize, "texturedir textures\nscale 1\norigin 0 0 0\nmesh ref1.smd\n"); + l = dpsnprintf(zymtextbuffer + zymtextsize, sizeof(zymtextbuffer) - zymtextsize, "output out.zym\nscale 1\norigin 0 0 0\nmesh ref1.smd\n"); if (l > 0) zymtextsize += l; l = dpsnprintf(dpmtextbuffer + dpmtextsize, sizeof(dpmtextbuffer) - dpmtextsize, "outputdir .\nmodel out\nscale 1\norigin 0 0 0\nscene ref1.smd\n"); if (l > 0) dpmtextsize += l;