[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16874] branches/nurbs/blender/intern/ nurbana/intern/NURBS_Generate.cpp: Fix for Isolines crash when isores > curve res.

Emmanuel Stone emmanuel.stone at gmail.com
Thu Oct 2 02:48:32 CEST 2008


Revision: 16874
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16874
Author:   eman
Date:     2008-10-02 02:48:31 +0200 (Thu, 02 Oct 2008)

Log Message:
-----------
Fix for Isolines crash when isores > curve res. Reported by Daniel Salazar, thanks!

Modified Paths:
--------------
    branches/nurbs/blender/intern/nurbana/intern/NURBS_Generate.cpp

Modified: branches/nurbs/blender/intern/nurbana/intern/NURBS_Generate.cpp
===================================================================
--- branches/nurbs/blender/intern/nurbana/intern/NURBS_Generate.cpp	2008-10-02 00:22:28 UTC (rev 16873)
+++ branches/nurbs/blender/intern/nurbana/intern/NURBS_Generate.cpp	2008-10-02 00:48:31 UTC (rev 16874)
@@ -55,7 +55,6 @@
 	extraPntsU = 0;
 	extraPntsV = 0;
 
-
 	if(CyclicU)
 		extraPntsU = OrderU - 1;
 	if(CyclicV)
@@ -221,8 +220,10 @@
 			}
 		}
 		// Set the contents of the 'oldBuffer' for the next pass
-		for(i = 0; i < (TessU+1)*(TessV+1)*dim; i++) {
-			obj -> _OldBuffer[i] = TssPts[i];
+		if(Update) {
+			for(i = 0; i < (TessU+1)*(TessV+1)*dim; i++) {
+				obj -> _OldBuffer[i] = TssPts[i];
+			}
 		}
 	} else {  // Incremental Surface Calculations
 		if(dim == 4)





More information about the Bf-blender-cvs mailing list