[Bf-blender-cvs] [0afe4e81cbb] master: Fix name of UI emboss RNA enum item

Hans Goudey noreply at git.blender.org
Mon Jun 28 16:51:54 CEST 2021


Commit: 0afe4e81cbb2a0f8f26a2a5c2e5cb5e6c876f20e
Author: Hans Goudey
Date:   Mon Jun 28 09:51:39 2021 -0500
Branches: master
https://developer.blender.org/rB0afe4e81cbb2a0f8f26a2a5c2e5cb5e6c876f20e

Fix name of UI emboss RNA enum item

This was a stupid mistake in my original commit that added this item.
While this is an API breakage, the name is simply wrong, and it is only
6 months old, and slightly niche.

Differential Revision: https://developer.blender.org/D11701

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

M	release/scripts/startup/bl_ui/properties_data_mesh.py
M	source/blender/makesrna/intern/rna_ui.c

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

diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py
index b0e466d3e51..c6a0f0b1d05 100644
--- a/release/scripts/startup/bl_ui/properties_data_mesh.py
+++ b/release/scripts/startup/bl_ui/properties_data_mesh.py
@@ -117,7 +117,7 @@ class MESH_UL_shape_keys(UIList):
             split = layout.split(factor=0.66, align=False)
             split.prop(key_block, "name", text="", emboss=False, icon_value=icon)
             row = split.row(align=True)
-            row.emboss = 'UI_EMBOSS_NONE_OR_STATUS'
+            row.emboss = 'NONE_OR_STATUS'
             if key_block.mute or (obj.mode == 'EDIT' and not (obj.use_shape_key_edit_mode and obj.type == 'MESH')):
                 row.active = False
             if not item.id_data.use_relative:
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c
index 8f596ec6a5c..acf580e3ddf 100644
--- a/source/blender/makesrna/intern/rna_ui.c
+++ b/source/blender/makesrna/intern/rna_ui.c
@@ -1231,7 +1231,7 @@ static void rna_def_ui_layout(BlenderRNA *brna)
       {UI_EMBOSS_PULLDOWN, "PULLDOWN_MENU", 0, "Pulldown Menu", "Draw pulldown menu style"},
       {UI_EMBOSS_RADIAL, "RADIAL_MENU", 0, "Radial Menu", "Draw radial menu style"},
       {UI_EMBOSS_NONE_OR_STATUS,
-       "UI_EMBOSS_NONE_OR_STATUS",
+       "NONE_OR_STATUS",
        0,
        "None or Status",
        "Draw with no emboss unless the button has a coloring status like an animation state"},



More information about the Bf-blender-cvs mailing list