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

This commit is contained in:
Gaia Clary 2016-02-20 20:33:29 +01:00
parent 1b9039752a
commit edf9e8d4dc
Notes: blender-bot 2023-02-14 08:12:25 +01:00
Referenced by issue #47484, Crash on exporting collada file from menu
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}