]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix zmodel script to actually work
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Mar 2009 00:39:15 +0000 (00:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Mar 2009 00:39:15 +0000 (00:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8786 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 2f62480c3618e390638f0083713fe5dd496b4290..b5ca9c3b4036401a601aedc100cf3b0a2c6448d6 100644 (file)
@@ -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;