[Bf-blender-cvs] [edf9e8d] master: fix T47484: Added final status of exported file to Blender console

Gaia Clary noreply at git.blender.org
Sat Feb 20 20:34:14 CET 2016


Commit: edf9e8d4dc676ea0789297369d4d78be8234f4ef
Author: Gaia Clary
Date:   Sat Feb 20 20:33:29 2016 +0100
Branches: master
https://developer.blender.org/rBedf9e8d4dc676ea0789297369d4d78be8234f4ef

fix T47484: Added final status of exported file to Blender console

===================================================================

M	source/blender/collada/DocumentExporter.cpp

===================================================================

diff --git a/source/blender/collada/DocumentExporter.cpp b/source/blender/collada/DocumentExporter.cpp
index 2a76442..71c9391 100644
--- a/source/blender/collada/DocumentExporter.cpp
+++ b/source/blender/collada/DocumentExporter.cpp
@@ -188,7 +188,7 @@ void DocumentExporter::exportCurrentScene(Scene *sce)
 	COLLADABU::NativeString native_filename = make_temp_filepath(NULL, ".dae");
 	COLLADASW::StreamWriter *writer = new COLLADASW::StreamWriter(native_filename);
 
-	fprintf(stdout, "Collada export: %s\n", this->export_settings->filepath);
+	fprintf(stdout, "Collada export buffer: %s\n", native_filename.c_str());
 
 	// open <collada>
 	writer->startDocument();
@@ -330,7 +330,8 @@ void DocumentExporter::exportCurrentScene(Scene *sce)
 	delete writer;
 
 	// Finally move the created document into place
-	BLI_rename(native_filename.c_str(), this->export_settings->filepath);
+	int status = BLI_rename(native_filename.c_str(), this->export_settings->filepath);
+	fprintf(stdout, "Collada moved buffer : %s (Status: %d)\n", this->export_settings->filepath, status);
 
 }




More information about the Bf-blender-cvs mailing list