diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-02-13 14:32:47 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-02-13 14:32:47 +0300 |
commit | cc41de09a0a29c65c4db3e75766d58bb1551ed7c (patch) | |
tree | 5115a2bb0f6d47a678054c03ef3a613173d53bac /source/blender/editors/mesh | |
parent | 0955c664aa7c5fc5f0bd345c58219c40f04ab9c1 (diff) |
Added an operator warning for missing material & texture in response to [#26051] "Noise" not working.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_mods.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |