[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60565] trunk/blender: avoid divide by zero with grid fill (when there is no selection)

Campbell Barton ideasman42 at gmail.com
Sat Oct 5 13:59:16 CEST 2013


Revision: 60565
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60565
Author:   campbellbarton
Date:     2013-10-05 11:59:15 +0000 (Sat, 05 Oct 2013)
Log Message:
-----------
avoid divide by zero with grid fill (when there is no selection)

Modified Paths:
--------------
    trunk/blender/CMakeLists.txt
    trunk/blender/source/blender/editors/mesh/editmesh_tools.c

Modified: trunk/blender/CMakeLists.txt
===================================================================
--- trunk/blender/CMakeLists.txt	2013-10-05 11:27:01 UTC (rev 60564)
+++ trunk/blender/CMakeLists.txt	2013-10-05 11:59:15 UTC (rev 60565)
@@ -2285,6 +2285,7 @@
 	info_cfg_option(WITH_X11_XF86VMODE)
 	info_cfg_option(WITH_X11_XINPUT)
 	info_cfg_option(WITH_MEM_JEMALLOC)
+	info_cfg_option(WITH_MEM_VALGRIND)
 	info_cfg_option(WITH_SYSTEM_GLEW)
 	info_cfg_option(WITH_SYSTEM_OPENJPEG)
 

Modified: trunk/blender/source/blender/editors/mesh/editmesh_tools.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_tools.c	2013-10-05 11:27:01 UTC (rev 60564)
+++ trunk/blender/source/blender/editors/mesh/editmesh_tools.c	2013-10-05 11:59:15 UTC (rev 60565)
@@ -3002,7 +3002,7 @@
 		}
 
 		offset = RNA_property_int_get(op->ptr, prop_offset);
-		offset = mod_i(offset, clamp);
+		offset = clamp ? mod_i(offset, clamp) : 0;
 
 		/* in simple cases, move selection for tags, but also support more advanced cases */
 		edbm_fill_grid_prepare(em->bm, offset, &span, calc_span);




More information about the Bf-blender-cvs mailing list