[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60644] trunk/blender/source/blender/ windowmanager/intern/wm_operators.c: fix [#37011] "Save Copy" option misfunction
Dalai Felinto
dfelinto at gmail.com
Wed Oct 9 21:29:50 CEST 2013
Revision: 60644
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60644
Author: dfelinto
Date: 2013-10-09 19:29:50 +0000 (Wed, 09 Oct 2013)
Log Message:
-----------
fix [#37011] "Save Copy" option misfunction
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_operators.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c 2013-10-09 18:48:32 UTC (rev 60643)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c 2013-10-09 19:29:50 UTC (rev 60644)
@@ -2540,6 +2540,8 @@
static void WM_OT_save_as_mainfile(wmOperatorType *ot)
{
+ PropertyRNA *prop;
+
ot->name = "Save As Blender File";
ot->idname = "WM_OT_save_as_mainfile";
ot->description = "Save the current file in the desired location";
@@ -2554,8 +2556,9 @@
RNA_def_boolean(ot->srna, "compress", 0, "Compress", "Write compressed .blend file");
RNA_def_boolean(ot->srna, "relative_remap", 1, "Remap Relative",
"Remap relative paths when saving in a different directory");
- RNA_def_boolean(ot->srna, "copy", 0, "Save Copy",
+ prop = RNA_def_boolean(ot->srna, "copy", 0, "Save Copy",
"Save a copy of the actual working state but does not make saved file active");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
#ifdef USE_BMESH_SAVE_AS_COMPAT
RNA_def_boolean(ot->srna, "use_mesh_compat", 0, "Legacy Mesh Format",
"Save using legacy mesh format (no ngons) - WARNING: only saves tris and quads, other ngons will "
More information about the Bf-blender-cvs
mailing list