[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12746] trunk/blender: mesh_edges2curves. py - fix for duplicate points

Campbell Barton ideasman42 at gmail.com
Sat Dec 1 20:19:56 CET 2007


Revision: 12746
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12746
Author:   campbellbarton
Date:     2007-12-01 20:19:49 +0100 (Sat, 01 Dec 2007)

Log Message:
-----------
mesh_edges2curves.py - fix for duplicate points
renderwin.c - stamp info in openGL render

Modified Paths:
--------------
    trunk/blender/release/scripts/mesh_edges2curves.py
    trunk/blender/source/blender/src/renderwin.c

Modified: trunk/blender/release/scripts/mesh_edges2curves.py
===================================================================
--- trunk/blender/release/scripts/mesh_edges2curves.py	2007-12-01 17:55:16 UTC (rev 12745)
+++ trunk/blender/release/scripts/mesh_edges2curves.py	2007-12-01 19:19:49 UTC (rev 12746)
@@ -12,7 +12,7 @@
 __bpydoc__ = """\
 Edges to Curves
 
-This script converts open and closed edge loops into polylines
+This script converts open and closed edge loops into curve polylines
 
 Supported:<br>
 	 Polylines where each vert has no more then 2 edges attached to it.
@@ -129,6 +129,7 @@
 		
 		v= poly[vIdx]
 		cu.appendNurb([v.co.x, v.co.y, v.co.z, w, t])
+		vIdx += 1
 		cu[i].type= 0 # Poly Line
 		
 		# Close the polyline if its closed.

Modified: trunk/blender/source/blender/src/renderwin.c
===================================================================
--- trunk/blender/source/blender/src/renderwin.c	2007-12-01 17:55:16 UTC (rev 12745)
+++ trunk/blender/source/blender/src/renderwin.c	2007-12-01 19:19:49 UTC (rev 12746)
@@ -1284,6 +1284,7 @@
 				break;
 			drawview3d_render(v3d, winx, winy);
 			glReadPixels(0, 0, winx, winy, GL_RGBA, GL_UNSIGNED_BYTE, rr->rect32);
+			BKE_stamp_buf((unsigned char *)rr->rect32, rr->rectf, rr->rectx, rr->recty);
 			window_swap_buffers(render_win->win);
 			
 			if(BKE_imtype_is_movie(G.scene->r.imtype)) {
@@ -1297,7 +1298,7 @@
 				
 				BKE_makepicstring(name, G.scene->r.pic, G.scene->r.cfra, G.scene->r.imtype);
 
-				ibuf->rect= (unsigned int *)rr->rect32;    
+				ibuf->rect= (unsigned int *)rr->rect32;
 				ok= BKE_write_ibuf(ibuf, name, G.scene->r.imtype, G.scene->r.subimtype, G.scene->r.quality);
 				
 				if(ok==0) {
@@ -1323,6 +1324,7 @@
 	else {
 		drawview3d_render(v3d, winx, winy);
 		glReadPixels(0, 0, winx, winy, GL_RGBA, GL_UNSIGNED_BYTE, rr->rect32);
+		BKE_stamp_buf((unsigned char *)rr->rect32, rr->rectf, rr->rectx, rr->recty);
 		window_swap_buffers(render_win->win);
 	}
 	





More information about the Bf-blender-cvs mailing list