TexFace to Material Settings big patch
[blender.git] / source / blender / editors / uvedit / uvedit_ops.c
index 9a21305457c57a96c8c01ef6fb6e192757c30807..cd1c5594822d7887c6dd1987d238e63a4bd6d535 100644 (file)
@@ -125,14 +125,12 @@ void ED_uvedit_assign_image(Scene *scene, Object *obedit, Image *ima, Image *pre
                if(uvedit_face_visible(scene, previma, efa, tf)) {
                        if(ima) {
                                tf->tpage= ima;
                if(uvedit_face_visible(scene, previma, efa, tf)) {
                        if(ima) {
                                tf->tpage= ima;
-                               tf->mode |= TF_TEX;
                                
                                if(ima->id.us==0) id_us_plus(&ima->id);
                                else id_lib_extern(&ima->id);
                        }
                        else {
                                tf->tpage= NULL;
                                
                                if(ima->id.us==0) id_us_plus(&ima->id);
                                else id_lib_extern(&ima->id);
                        }
                        else {
                                tf->tpage= NULL;
-                               tf->mode &= ~TF_TEX;
                        }
 
                        update = 1;
                        }
 
                        update = 1;