diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-05-15 23:49:02 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-05-15 23:49:47 +0400 |
commit | 56aa4eadcc3f439e79c71753299f462a83015533 (patch) | |
tree | 1ba287380d77190821d916b768088fd181d706fc /source/blender | |
parent | caed2394e222d8f7ae32d15be47ca848da7fef69 (diff) |
Fix T39684, warn when entering sculpt mode with an object with non-
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index c9101fff6e5..ee4dfcf7c4e 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -65,6 +65,7 @@ #include "BKE_modifier.h" #include "BKE_multires.h" #include "BKE_paint.h" +#include "BKE_report.h" #include "BKE_node.h" #include "BKE_object.h" #include "BKE_subsurf.h" @@ -5041,6 +5042,13 @@ static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op) BKE_sculpt_mask_layers_ensure(ob, mmd); } + if (!(fabsf(ob->size[0] - ob->size[1]) < 1e-4f && fabsf(ob->size[1] - ob->size[2]) < 1e-4f)) + BKE_report(op->reports, RPT_INFO, + "Object has non-uniform scale, sculpting may be unpredictable"); + else if (is_negative_m4(ob->obmat)) + BKE_report(op->reports, RPT_INFO, + "Object has negative scale, sculpting may be unpredictable"); + BKE_paint_init(&ts->sculpt->paint, PAINT_CURSOR_SCULPT); paint_cursor_start(C, sculpt_poll_view3d); |