mesh_edges2curves.py - fix for duplicate points
renderwin.c - stamp info in openGL render
This commit is contained in:
parent
4ba215478f
commit
f06872d493
@ -12,7 +12,7 @@ __version__ = "1.0 2006/02/08"
|
||||
__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 @@ def mesh2polys():
|
||||
|
||||
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.
|
||||
|
@ -1284,6 +1284,7 @@ void BIF_do_ogl_render(View3D *v3d, int anim)
|
||||
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 @@ void BIF_do_ogl_render(View3D *v3d, int anim)
|
||||
|
||||
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 @@ void BIF_do_ogl_render(View3D *v3d, int anim)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user