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:
authorCampbell Barton <ideasman42@gmail.com>2012-03-24 02:31:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-24 02:31:14 +0400
commit5d68b3204de26e099f64781fb6e633f018a10370 (patch)
tree6549a6108e5d70fda2306acc85360249997802d8
parent88d0918fe2280965d451f68824e173fb2a577c4d (diff)
fix for error with saving files after double clicking, the 'need_active' setting was getting saved which caused save to fail when not caused by double click afterwards.
-rw-r--r--source/blender/editors/space_file/file_ops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 2233016a0ec..a15037430c2 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -766,6 +766,8 @@ int file_exec(bContext *C, wmOperator *exec_op)
void FILE_OT_execute(struct wmOperatorType *ot)
{
+ PropertyRNA *prop;
+
/* identifiers */
ot->name = "Execute File Window";
ot->description = "Execute selected file";
@@ -775,7 +777,9 @@ void FILE_OT_execute(struct wmOperatorType *ot)
ot->exec = file_exec;
ot->poll = file_operator_poll;
- RNA_def_boolean(ot->srna, "need_active", 0, "Need Active", "Only execute if there's an active selected file in the file list");
+ prop = RNA_def_boolean(ot->srna, "need_active", 0, "Need Active",
+ "Only execute if there's an active selected file in the file list");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}