TexFace to Material Settings big patch
[blender.git] / source / blender / editors / mesh / editmesh_mods.c
index b256eeac4bcb1bd6a82c137d7a9ff8309d003c84..8c035ca46fdd3ed6a3ddf61c882fddb24466942b 100644 (file)
@@ -1473,10 +1473,8 @@ static void EM_mesh_copy_face(EditMesh *em, wmOperator *op, short type)
                                tf = CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
                                if (tf_act->tpage) {
                                        tf->tpage = tf_act->tpage;
-                                       tf->mode |= TF_TEX;
                                } else {
                                        tf->tpage = NULL;
-                                       tf->mode &= ~TF_TEX;
                                }
                                tf->tile= tf_act->tile;
                                change = 1;
@@ -1656,10 +1654,8 @@ void EM_mesh_copy_face_layer(EditMesh *em, wmOperator *op, short type)
                                tf = CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
                                if (tf_from->tpage) {
                                        tf->tpage = tf_from->tpage;
-                                       tf->mode |= TF_TEX;
                                } else {
                                        tf->tpage = NULL;
-                                       tf->mode &= ~TF_TEX;
                                }
                                tf->tile= tf_from->tile;
                                change = 1;