[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18210] branches/soc-2008-nicholasbishop/ source/blender/blenkernel/intern/multires.c: Handle the (extremely unlikely ) case that the max multires levels is exceeded

Nicholas Bishop nicholasbishop at gmail.com
Thu Jan 1 04:40:04 CET 2009


Revision: 18210
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18210
Author:   nicholasbishop
Date:     2009-01-01 04:40:02 +0100 (Thu, 01 Jan 2009)

Log Message:
-----------
Handle the (extremely unlikely) case that the max multires levels is exceeded

Modified Paths:
--------------
    branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/multires.c

Modified: branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/multires.c
===================================================================
--- branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/multires.c	2009-01-01 03:25:46 UTC (rev 18209)
+++ branches/soc-2008-nicholasbishop/source/blender/blenkernel/intern/multires.c	2009-01-01 03:40:02 UTC (rev 18210)
@@ -471,10 +471,10 @@
 	if(distance == 0)
 		return;
 
-	if(mmd->totlvl == multires_max_levels) {
-		// TODO
-		return;
-	}
+	if(mmd->totlvl > multires_max_levels)
+		mmd->totlvl = multires_max_levels;
+	if(mmd->lvl > multires_max_levels)
+		mmd->lvl = multires_max_levels;
 
 	multires_force_update(ob);
 





More information about the Bf-blender-cvs mailing list