]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_alias.c
Removed the gray-out behavior on the gamma settings in the color control menu when...
[xonotic/darkplaces.git] / model_alias.c
index fd5f962e7b2ce5f6931245c2d6114d35f11f3422..100311ebc20495244649fafa7f7fa2d9aef5acdb 100644 (file)
@@ -911,9 +911,7 @@ static void Mod_BuildAliasSkinFromSkinFrame(texture_t *texture, skinframe_t *ski
        memset(texture, 0, sizeof(*texture));
        texture->currentframe = texture;
        //texture->animated = false;
-       texture->numskinframes = 1;
-       texture->skinframerate = 1;
-       texture->skinframes[0] = skinframe;
+       texture->materialshaderpass = texture->shaderpasses[0] = Mod_CreateShaderPass(skinframe);
        texture->currentskinframe = skinframe;
        //texture->backgroundnumskinframes = 0;
        //texture->customblendfunc[0] = 0;
@@ -1311,6 +1309,7 @@ void Mod_IDP0_Load(dp_model_t *mod, void *buffer, void *bufferend)
                        loadmodel->skinscenes[loadmodel->numskins].loop = true;
 
                        //increase skin counts
+                       loadmodel->num_textures++;
                        loadmodel->numskins++;
                        totalskins++;