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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-06 07:37:35 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-06 13:19:05 +0300
commita8e5ad9a565e058748a3a7de98f863fc81f0e863 (patch)
tree0e95367cf29dcaea9610b269c551b853b702a2f9 /source/blender/editors/object
parent358c71cf2c499139acd7a9105c6666bc9259a795 (diff)
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.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c12
1 files changed, 7 insertions, 5 deletions
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);