Revert "Rename operator 'Join Shapes' to 'Transfer Mix'."
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 1 Jul 2019 14:51:00 +0000 (16:51 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 1 Jul 2019 14:53:41 +0000 (16:53 +0200)
This reverts commit 741967079c393a9eb6babd60c92a716fafa5d3e9.
We are in UI and API freeze, and this changes both.

release/scripts/startup/bl_operators/object.py
release/scripts/startup/bl_ui/properties_data_mesh.py
source/blender/editors/object/object_add.c
source/blender/editors/object/object_intern.h
source/blender/editors/object/object_ops.c

index 3c8fb1a42746e3a7159da9786b91f3a6386f26b6..481b101eaeed8f5963a0f913a9bc98200bcdd995 100644 (file)
@@ -312,9 +312,10 @@ class SubdivisionSet(Operator):
 
 
 class ShapeTransfer(Operator):
-    """Copy the active shape key of another selected object to this one"""
+    """Copy another selected objects active shape to this one by """ \
+        """applying the relative offsets"""
 
-    bl_idname = "object.shape_key_transfer_active"
+    bl_idname = "object.shape_key_transfer"
     bl_label = "Transfer Shape Key"
     bl_options = {'REGISTER', 'UNDO'}
 
index 5be0a5dba3751ac80ab94f342cb2562daaeae94e..e4fd09bb5ffd7cb917ecb25b0c73afcefc1e030f 100644 (file)
@@ -67,8 +67,8 @@ class MESH_MT_shape_key_context_menu(Menu):
         layout.operator("object.shape_key_mirror", icon='ARROW_LEFTRIGHT').use_topology = False
         layout.operator("object.shape_key_mirror", text="Mirror Shape Key (Topology)").use_topology = True
         layout.separator()
-        layout.operator("object.shape_key_transfer_mix")
-        layout.operator("object.shape_key_transfer_active")
+        layout.operator("object.join_shapes")
+        layout.operator("object.shape_key_transfer")
         layout.separator()
         layout.operator("object.shape_key_remove", icon='X', text="Delete All Shape Keys").all = True
         layout.separator()
index 468efc0c9d9ae169322bfb794707d4c329d0d26d..0fdb1cec16fcde6e5d2ea83167be7d81aa1d2ca5 100644 (file)
@@ -2782,10 +2782,10 @@ void OBJECT_OT_join(wmOperatorType *ot)
 /** \} */
 
 /* -------------------------------------------------------------------- */
-/** \name Transfer Mix Operator for Shape Keys
+/** \name Join as Shape Key Operator
  * \{ */
 
-static bool shape_key_transfer_mix_poll(bContext *C)
+static bool join_shapes_poll(bContext *C)
 {
   Object *ob = CTX_data_active_object(C);
 
@@ -2802,12 +2802,12 @@ static bool shape_key_transfer_mix_poll(bContext *C)
   }
 }
 
-static int shape_key_transfer_mix_exec(bContext *C, wmOperator *op)
+static int join_shapes_exec(bContext *C, wmOperator *op)
 {
   Object *ob = CTX_data_active_object(C);
 
   if (ob->mode & OB_MODE_EDIT) {
-    BKE_report(op->reports, RPT_ERROR, "Shape Keys cannot be transfered in edit mode");
+    BKE_report(op->reports, RPT_ERROR, "This data does not support joining in edit mode");
     return OPERATOR_CANCELLED;
   }
   else if (BKE_object_obdata_is_libdata(ob)) {
@@ -2822,16 +2822,16 @@ static int shape_key_transfer_mix_exec(bContext *C, wmOperator *op)
   return OPERATOR_CANCELLED;
 }
 
-void OBJECT_OT_shape_key_transfer_mix(wmOperatorType *ot)
+void OBJECT_OT_join_shapes(wmOperatorType *ot)
 {
   /* identifiers */
-  ot->name = "Transfer Mix";
-  ot->description = "Copy the current resulting shape of another selected object to this one";
-  ot->idname = "OBJECT_OT_shape_key_transfer_mix";
+  ot->name = "Join as Shapes";
+  ot->description = "Merge selected objects to shapes of active object";
+  ot->idname = "OBJECT_OT_join_shapes";
 
   /* api callbacks */
-  ot->exec = shape_key_transfer_mix_exec;
-  ot->poll = shape_key_transfer_mix_poll;
+  ot->exec = join_shapes_exec;
+  ot->poll = join_shapes_poll;
 
   /* flags */
   ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
index f97a9c1b5b8ea46b790d7ee94839f79c8bb2aabd..b93500520937194b1180095cb278aba492f4e133 100644 (file)
@@ -117,7 +117,7 @@ void OBJECT_OT_duplicates_make_real(struct wmOperatorType *ot);
 void OBJECT_OT_duplicate(struct wmOperatorType *ot);
 void OBJECT_OT_delete(struct wmOperatorType *ot);
 void OBJECT_OT_join(struct wmOperatorType *ot);
-void OBJECT_OT_shape_key_transfer_mix(struct wmOperatorType *ot);
+void OBJECT_OT_join_shapes(struct wmOperatorType *ot);
 void OBJECT_OT_convert(struct wmOperatorType *ot);
 
 /* object_hook.c */
index 217a2e5a54d824c4d939c3ab4b785ccdb2eb71cb..b653c7fa70c22f839210de72ff8c00b5729ad2ca 100644 (file)
@@ -117,7 +117,7 @@ void ED_operatortypes_object(void)
   WM_operatortype_append(OBJECT_OT_duplicates_make_real);
   WM_operatortype_append(OBJECT_OT_duplicate);
   WM_operatortype_append(OBJECT_OT_join);
-  WM_operatortype_append(OBJECT_OT_shape_key_transfer_mix);
+  WM_operatortype_append(OBJECT_OT_join_shapes);
   WM_operatortype_append(OBJECT_OT_convert);
 
   WM_operatortype_append(OBJECT_OT_modifier_add);