[PD-cvs] pd/src kernel.c,1.1.2.80,1.1.2.81

Mathieu Bouchard matju at users.sourceforge.net
Tue Aug 7 19:21:21 CEST 2007


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17000

Modified Files:
      Tag: desiredata
	kernel.c 
Log Message:
writing of #X connect uses new indices on socket but old indices in file


Index: kernel.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v
retrieving revision 1.1.2.80
retrieving revision 1.1.2.81
diff -C2 -d -r1.1.2.80 -r1.1.2.81
*** kernel.c	3 Aug 2007 14:59:33 -0000	1.1.2.80
--- kernel.c	7 Aug 2007 17:21:19 -0000	1.1.2.81
***************
*** 606,614 ****
  void wire_free (t_wire *self) {/* nothing here */}
  
  void wire_save (t_wire *self, t_binbuf *b) {
! 	t_canvas *c = self->dix->canvas;
  	binbuf_addv(b,"ttiiii;","#X","connect",
! 		canvas_getindex(c,(t_gobj *)self->from), self->outlet,
! 		canvas_getindex(c,(t_gobj *)self->to), self->inlet);
  	appendix_save((t_gobj *)self,b);
  }
--- 606,617 ----
  void wire_free (t_wire *self) {/* nothing here */}
  
+ /* this is only used for pd_upload yet, right? so, it can use the new indices instead already */
  void wire_save (t_wire *self, t_binbuf *b) {
! //	t_canvas *c = self->dix->canvas;
  	binbuf_addv(b,"ttiiii;","#X","connect",
! //		canvas_getindex(c,self->from), self->outlet,
! //		canvas_getindex(c,self->to  ), self-> inlet);
! 		self->from->dix->index, self->outlet,
! 		self->to  ->dix->index, self-> inlet);
  	appendix_save((t_gobj *)self,b);
  }





More information about the Pd-cvs mailing list