Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_ops.c
| Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_move", | ||||
| "Duplicate selected objects and move them", | "Duplicate selected objects and move them", | ||||
| OPTYPE_UNDO | OPTYPE_REGISTER); | OPTYPE_UNDO | OPTYPE_REGISTER); | ||||
| if (ot) { | if (ot) { | ||||
| WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | ||||
| otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate"); | otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate"); | ||||
| RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false); | RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false); | ||||
| } | } | ||||
| ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_rotate", | |||||
| "Duplicate Objects and Rotate", | |||||
| "Duplicate selected objects and rotate them", | |||||
| OPTYPE_UNDO | OPTYPE_REGISTER); | |||||
| if (ot) { | |||||
| WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | |||||
| otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_rotate"); | |||||
| RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false); | |||||
| } | |||||
| ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_trackball", | |||||
| "Duplicate Objects and Rotate (Trackball)", | |||||
| "Duplicate selected objects and rotate them", | |||||
| OPTYPE_UNDO | OPTYPE_REGISTER); | |||||
| if (ot) { | |||||
| WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | |||||
| otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_trackball"); | |||||
| RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false); | |||||
| } | |||||
| ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_resize", | |||||
| "Duplicate Objects and Scale", | |||||
| "Duplicate selected objects and scale them", | |||||
| OPTYPE_UNDO | OPTYPE_REGISTER); | |||||
| if (ot) { | |||||
| WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | |||||
| otmacro = WM_operatortype_macro_define(ot, "TRANSFORM_OT_resize"); | |||||
| RNA_boolean_set(otmacro->ptr, "use_proportional_edit", false); | |||||
| } | |||||
| /* grr, should be able to pass options on... */ | /* grr, should be able to pass options on... */ | ||||
| ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", | ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_move_linked", | ||||
| "Duplicate Linked", | "Duplicate Linked", | ||||
| "Duplicate selected objects and move them", | "Duplicate selected objects and move them", | ||||
| OPTYPE_UNDO | OPTYPE_REGISTER); | OPTYPE_UNDO | OPTYPE_REGISTER); | ||||
| if (ot) { | if (ot) { | ||||
| otmacro = WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | otmacro = WM_operatortype_macro_define(ot, "OBJECT_OT_duplicate"); | ||||
| RNA_boolean_set(otmacro->ptr, "linked", true); | RNA_boolean_set(otmacro->ptr, "linked", true); | ||||
| Show All 23 Lines | |||||