Merging r41246 through r41535 from trunk into soc-2011-tomato
[blender.git] / source / creator / creator.c
index 2204ab8..3b00b08 100644 (file)
 #include "binreloc.h"
 #endif
 
+#ifdef WITH_LIBMV
+#include "libmv-capi.h"
+#endif
+
 // from buildinfo.c
 #ifdef BUILD_DATE
 extern char build_date[];
@@ -350,6 +354,10 @@ static int debug_mode(int UNUSED(argc), const char **UNUSED(argv), void *data)
        printf("Build: %s %s %s %s\n", build_date, build_time, build_platform, build_type);
 #endif // WITH_BUILDINFO
 
+#ifdef WITH_LIBMV
+       libmv_startDebugLogging();
+#endif
+
        BLI_argsPrint(data);
        return 0;
 }
@@ -1129,6 +1137,10 @@ int main(int argc, const char **argv)
        br_init( NULL );
 #endif
 
+#ifdef WITH_LIBMV
+       libmv_initLogging(argv[0]);
+#endif
+
        setCallbacks();
 #ifdef __APPLE__
                /* patch to ignore argument finder gives us (pid?) */