[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49177] trunk/blender/intern/cycles/render /image.cpp: add prints for texture loading (we' re running into texture limit a lot so its handy to see whats actually loading from the blend files )

Campbell Barton ideasman42 at gmail.com
Tue Jul 24 15:01:55 CEST 2012


Revision: 49177
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49177
Author:   campbellbarton
Date:     2012-07-24 13:01:55 +0000 (Tue, 24 Jul 2012)
Log Message:
-----------
add prints for texture loading (we're running into texture limit a lot so its handy to see whats actually loading from the blend files)

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/image.cpp

Modified: trunk/blender/intern/cycles/render/image.cpp
===================================================================
--- trunk/blender/intern/cycles/render/image.cpp	2012-07-24 12:38:37 UTC (rev 49176)
+++ trunk/blender/intern/cycles/render/image.cpp	2012-07-24 13:01:55 UTC (rev 49177)
@@ -235,6 +235,8 @@
 		return false;
 	}
 
+	printf("loading byte image: '%s' %dx%d\n", img->filename.c_str(), width, height);
+
 	/* read RGBA pixels */
 	uchar *pixels = (uchar*)tex_img.resize(width, height);
 	int scanlinesize = width*components*sizeof(uchar);
@@ -297,6 +299,8 @@
 		return false;
 	}
 
+	printf("loading float image: '%s' %dx%d\n", img->filename.c_str(), width, height);
+
 	/* read RGBA pixels */
 	float *pixels = (float*)tex_img.resize(width, height);
 	int scanlinesize = width*components*sizeof(float);




More information about the Bf-blender-cvs mailing list