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.
This commit is contained in:
parent
358c71cf2c
commit
a8e5ad9a56
Notes:
blender-bot
2023-02-14 04:07:50 +01:00
Referenced by issue #65490, Toggling "Linked" checkbox in redo panel makes all future Duplicate operations into Duplicate Linked
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue