From cc41de09a0a29c65c4db3e75766d58bb1551ed7c Mon Sep 17 00:00:00 2001 From: Janne Karhu Date: Sun, 13 Feb 2011 11:32:47 +0000 Subject: [PATCH] Added an operator warning for missing material & texture in response to [#26051] "Noise" not working. --- source/blender/editors/mesh/editmesh_mods.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c index 6488dc17fb4..64bd9695ac9 100644 --- a/source/blender/editors/mesh/editmesh_mods.c +++ b/source/blender/editors/mesh/editmesh_mods.c @@ -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);