[Bf-blender-cvs] [a8e5ad9a565] master: Fix T65490: linked property in object duplicate should not persist
Brecht Van Lommel
noreply at git.blender.org
Thu Jun 6 12:23:04 CEST 2019
Commit: a8e5ad9a565e058748a3a7de98f863fc81f0e863
Author: Brecht Van Lommel
Date: Thu Jun 6 06:37:35 2019 +0200
Branches: master
https://developer.blender.org/rBa8e5ad9a565e058748a3a7de98f863fc81f0e863
Fix T65490: linked property in object duplicate should not persist
These things are somewhat arbitrary, but since there are separate shortcuts
and menu entries this seems the more expected behavior.
===================================================================
M source/blender/editors/object/object_add.c
===================================================================
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index dc2a353bd86..5e5537992e4 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -2566,11 +2566,13 @@ void OBJECT_OT_duplicate(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
/* to give to transform */
- RNA_def_boolean(ot->srna,
- "linked",
- 0,
- "Linked",
- "Duplicate object but not object data, linking to the original data");
+ prop = RNA_def_boolean(ot->srna,
+ "linked",
+ 0,
+ "Linked",
+ "Duplicate object but not object data, linking to the original data");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+
prop = RNA_def_enum(
ot->srna, "mode", rna_enum_transform_mode_types, TFM_TRANSLATION, "Mode", "");
RNA_def_property_flag(prop, PROP_HIDDEN);
More information about the Bf-blender-cvs
mailing list