Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index bd2263865c8..c6bab9e47e5 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -1871,19 +1871,15 @@ static void WM_OT_save_mainfile(wmOperatorType *ot)
#include "../../collada/collada.h"
static int wm_collada_export_invoke(bContext *C, wmOperator *op, wmEvent *event)
-{
- char *path;
- /* RNA_string_set(op->ptr, "path", "/tmp/test.dae"); */
-
+{
if(!RNA_property_is_set(op->ptr, "path")) {
- path = BLI_replacestr(G.sce, ".blend", ".dae");
+ char *path = BLI_replacestr(G.sce, ".blend", ".dae");
RNA_string_set(op->ptr, "path", path);
+ MEM_freeN(path);
}
-
+
WM_event_add_fileselect(C, op);
-
- if (path) MEM_freeN(path);
-
+
return OPERATOR_RUNNING_MODAL;
}