[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43401] trunk/blender/source/blender/ blenkernel/intern/tracking.c: Remove unused code and code sued for debug

Sergey Sharybin sergey.vfx at gmail.com
Sun Jan 15 14:32:08 CET 2012


Revision: 43401
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43401
Author:   nazgul
Date:     2012-01-15 13:32:07 +0000 (Sun, 15 Jan 2012)
Log Message:
-----------
Remove unused code and code sued for debug

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/tracking.c

Modified: trunk/blender/source/blender/blenkernel/intern/tracking.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/tracking.c	2012-01-15 13:31:58 UTC (rev 43400)
+++ trunk/blender/source/blender/blenkernel/intern/tracking.c	2012-01-15 13:32:07 UTC (rev 43401)
@@ -1070,7 +1070,7 @@
 {
 	ImBuf *tmpibuf;
 	int x, y;
-	int x1, y1 /*, x2, y2 */ /* UNUSED */, w, h;
+	int x1, y1, w, h;
 	float mpos[2];
 
 	copy_v2_v2(mpos, marker->pos);
@@ -1092,11 +1092,6 @@
 	x1= x-(int)(w/2.0f);
 	y1= y-(int)(h/2.0f);
 
-#if 0 /* UNUSED */
-	x2= x+(int)(w/2.0f);
-	y2= y+(int)(h/2.0f);
-#endif
-
 	/* dimensions should be odd */
 	tmpibuf= IMB_allocImBuf(w+margin*2, h+margin*2, 32, IB_rect);
 	IMB_rectcpy(tmpibuf, ibuf, 0, 0, x1-margin, y1-margin, w+margin*2, h+margin*2);
@@ -1119,9 +1114,6 @@
 		disable_imbuf_channels(tmpibuf, track, 1 /* grayscale */);
 	}
 
-	tmpibuf->ftype= PNG;
-	IMB_saveiff(tmpibuf, "/tmp/1.png", IB_rect);
-
 	return tmpibuf;
 }
 



More information about the Bf-blender-cvs mailing list