diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-09-19 23:28:29 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2012-09-19 23:28:29 +0400 |
commit | f3d261d7956e0b18f2939707f6a21dadc06474f2 (patch) | |
tree | dee1022db8f63d43d5be5e63b0f23f39df0799b0 /source | |
parent | b25bea036fd8a716c9e209c97e7f27fb99c5f042 (diff) |
Collada(exporter): Added error message when export file can not be created for whichever reason
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/collada/collada.cpp | 1 | ||||
-rw-r--r-- | source/blender/editors/io/io_collada.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/collada/collada.cpp b/source/blender/collada/collada.cpp index f7e0f75ec5c..fbb18887d1b 100644 --- a/source/blender/collada/collada.cpp +++ b/source/blender/collada/collada.cpp @@ -76,6 +76,7 @@ int collada_export(Scene *sce, if (!BLI_exists(filepath)) { BLI_make_existing_file(filepath); /* makes the dir if its not there */ if (BLI_file_touch(filepath) == 0) { + fprintf(stdout, "Collada export: Can not create: %s\n", filepath); return 0; } } diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index a0ab157e6b3..0ec99325752 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -143,6 +143,7 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op) return OPERATOR_FINISHED; } else { + BKE_report(op->reports, RPT_WARNING, "Export file not created."); return OPERATOR_CANCELLED; } } |