Added an operator warning for missing material & texture in response to [#26051]...
authorJanne Karhu <jhkarh@gmail.com>
Sun, 13 Feb 2011 11:32:47 +0000 (11:32 +0000)
committerJanne Karhu <jhkarh@gmail.com>
Sun, 13 Feb 2011 11:32:47 +0000 (11:32 +0000)
source/blender/editors/mesh/editmesh_mods.c

index 6488dc17fb4d7c606191a91e4596c6c7beada8dd..64bd9695ac9dcbb78561dc9b2bc97d2a6fe61b43 100644 (file)
@@ -4435,6 +4435,7 @@ static int mesh_noise_exec(bContext *C, wmOperator *op)
 
        ma= give_current_material(obedit, obedit->actcol);
        if(ma==0 || ma->mtex[0]==0 || ma->mtex[0]->tex==0) {
+               BKE_report(op->reports, RPT_WARNING, "Mesh has no material or texture assigned.");
                return OPERATOR_FINISHED;
        }
        tex= give_current_material_texture(ma);