[Bf-blender-cvs] [4a8f6f59db0] asset-metadata: Follow up to previous commit, rename asset operator in Outliner

Julian Eisel noreply at git.blender.org
Fri Aug 28 17:02:46 CEST 2020


Commit: 4a8f6f59db08380dfa594b9472c9882c249f53f4
Author: Julian Eisel
Date:   Fri Aug 28 17:02:06 2020 +0200
Branches: asset-metadata
https://developer.blender.org/rB4a8f6f59db08380dfa594b9472c9882c249f53f4

Follow up to previous commit, rename asset operator in Outliner

Forgot to rename it in the Outliner as well ("Create Asset"->"Make
Asset").

===================================================================

M	source/blender/editors/space_outliner/outliner_tools.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index b6f1a79f1e9..b8453a0c327 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1687,7 +1687,7 @@ typedef enum eOutlinerIdOpTypes {
   OUTLINER_IDOP_INVALID = 0,
 
   OUTLINER_IDOP_UNLINK,
-  OUTLINER_IDOP_CREATE_ASSET,
+  OUTLINER_IDOP_MAKE_ASSET,
   OUTLINER_IDOP_LOCAL,
   OUTLINER_IDOP_OVERRIDE_LIBRARY_CREATE,
   OUTLINER_IDOP_OVERRIDE_LIBRARY_CREATE_HIERARCHY,
@@ -1712,7 +1712,7 @@ typedef enum eOutlinerIdOpTypes {
 /* TODO: implement support for changing the ID-block used. */
 static const EnumPropertyItem prop_id_op_types[] = {
     {OUTLINER_IDOP_UNLINK, "UNLINK", 0, "Unlink", ""},
-    {OUTLINER_IDOP_CREATE_ASSET, "CREATE_ASSET", 0, "Create Asset", ""},
+    {OUTLINER_IDOP_MAKE_ASSET, "MAKE_ASSET", 0, "Make Asset", ""},
     {OUTLINER_IDOP_LOCAL, "LOCAL", 0, "Make Local", ""},
     {OUTLINER_IDOP_SINGLE, "SINGLE", 0, "Make Single User", ""},
     {OUTLINER_IDOP_DELETE, "DELETE", ICON_X, "Delete", ""},
@@ -1915,7 +1915,7 @@ static int outliner_id_operation_exec(bContext *C, wmOperator *op)
       }
       break;
     }
-    case OUTLINER_IDOP_CREATE_ASSET: {
+    case OUTLINER_IDOP_MAKE_ASSET: {
       outliner_do_libdata_operation(
           C, op->reports, scene, space_outliner, &space_outliner->tree, id_make_asset_cb, NULL);
       ED_undo_push(C, "Made Asset");



More information about the Bf-blender-cvs mailing list