[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11621] branches/soc-2007-mosani/source/ blender: More plugin-loading-error test code.

Aaron Moore two.a.ron at gmail.com
Thu Aug 16 09:14:42 CEST 2007


Revision: 11621
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11621
Author:   mosani
Date:     2007-08-16 09:14:42 +0200 (Thu, 16 Aug 2007)

Log Message:
-----------
More plugin-loading-error test code.

Modified Paths:
--------------
    branches/soc-2007-mosani/source/blender/blenpluginapi/intern/pluginapi.c
    branches/soc-2007-mosani/source/blender/render/render_api/source/RND_internal.c

Modified: branches/soc-2007-mosani/source/blender/blenpluginapi/intern/pluginapi.c
===================================================================
--- branches/soc-2007-mosani/source/blender/blenpluginapi/intern/pluginapi.c	2007-08-16 05:01:29 UTC (rev 11620)
+++ branches/soc-2007-mosani/source/blender/blenpluginapi/intern/pluginapi.c	2007-08-16 07:14:42 UTC (rev 11621)
@@ -1752,6 +1752,10 @@
 static void plugin_parse_all_dirs()
 {
 	/* plugin-loading-error printfs */
+	printf( "U in plugin_parse_all_dirs: \n" );
+	printf( " U.plugtexdir = %s\n", U.plugtexdir );
+	printf( " U.plugseqdir = %s\n", U.plugseqdir );
+	printf( " U.plugrendir = %s\n", U.plugrendir );
 	printf( "Parsing U.plugtexdir: always does.\n" );
 	plugin_parsedir(U.plugtexdir, 0);
 	if (strcmp(U.plugtexdir, U.plugseqdir) != 0) {
@@ -1759,6 +1763,8 @@
 		plugin_parsedir(U.plugseqdir, 0);
 	}else
 		printf( "Didn't parse U.plugseqdir: same as ..texdir\n" );
+	printf( "strcmp(U.plugtexdir, U.plugrendir): %d\n", strcmp(U.plugtexdir, U.plugrendir) );
+	printf( "strcmp(U.plugseqdir, U.plugrendir): %d\n", strcmp(U.plugtexdir, U.plugrendir) );
 	if(strcmp(U.plugtexdir, U.plugrendir) != 0 &&
 	   strcmp(U.plugseqdir, U.plugrendir) != 0 ) {
 	   	printf( "Parsing U.plugrendir: not parsed yet.\n" );

Modified: branches/soc-2007-mosani/source/blender/render/render_api/source/RND_internal.c
===================================================================
--- branches/soc-2007-mosani/source/blender/render/render_api/source/RND_internal.c	2007-08-16 05:01:29 UTC (rev 11620)
+++ branches/soc-2007-mosani/source/blender/render/render_api/source/RND_internal.c	2007-08-16 07:14:42 UTC (rev 11621)
@@ -58,8 +58,14 @@
 #else
 		strcpy( renderer_menu,
 			"Rendering Engine %t|Blender Internal %x0" );
-#endif
-		
+#endif
+
+		/* check if U is set */
+		printf( "U in RenderAPI_load_plugins: \n" );
+		printf( " U.plugtexdir = %s\n", U.plugtexdir );
+		printf( " U.plugseqdir = %s\n", U.plugseqdir );
+		printf( " U.plugrendir = %s\n", U.plugrendir );
+
 		renderers = plugin_enumerate( PLUGIN_TYPE_RENDER_OUTPUT, force_refresh );
 		/* plugin-loading-error */
 		printf( "plugin renderers: \n pointer - %p\n name - %s\n",





More information about the Bf-blender-cvs mailing list