[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45116] trunk/blender/source/blender/ editors/space_file/file_ops.c: 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 .
Campbell Barton
ideasman42 at gmail.com
Fri Mar 23 23:31:28 CET 2012
Revision: 45116
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45116
Author: campbellbarton
Date: 2012-03-23 22:31:14 +0000 (Fri, 23 Mar 2012)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_file/file_ops.c
Modified: trunk/blender/source/blender/editors/space_file/file_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_file/file_ops.c 2012-03-23 21:25:07 UTC (rev 45115)
+++ trunk/blender/source/blender/editors/space_file/file_ops.c 2012-03-23 22:31:14 UTC (rev 45116)
@@ -766,6 +766,8 @@
void FILE_OT_execute(struct wmOperatorType *ot)
{
+ PropertyRNA *prop;
+
/* identifiers */
ot->name = "Execute File Window";
ot->description = "Execute selected file";
@@ -775,7 +777,9 @@
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);
}
More information about the Bf-blender-cvs
mailing list