Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2011-02-13 14:32:47 +0300
committerJanne Karhu <jhkarh@gmail.com>2011-02-13 14:32:47 +0300
commitcc41de09a0a29c65c4db3e75766d58bb1551ed7c (patch)
tree5115a2bb0f6d47a678054c03ef3a613173d53bac /source/blender/editors/mesh
parent0955c664aa7c5fc5f0bd345c58219c40f04ab9c1 (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.c1
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);