diff --git a/source/blender/editors/include/UI_interface_c.hh b/source/blender/editors/include/UI_interface_c.hh index dca66acdee3..0467f5b4183 100644 --- a/source/blender/editors/include/UI_interface_c.hh +++ b/source/blender/editors/include/UI_interface_c.hh @@ -3072,7 +3072,11 @@ uiPropertySplitWrapper uiItemPropertySplitWrapperCreate(uiLayout *parent_layout) void uiItemL(uiLayout *layout, const char *name, int icon); /* label */ uiBut *uiItemL_ex(uiLayout *layout, const char *name, int icon, bool highlight, bool redalert); /** - * Helper to add a label and creates a property split layout if needed. + * Helper to add a label using a property split layout if needed. After calling this the + * active layout will be the one to place the labeled items in. An additional layout may be + * returned to place decorator buttons in. + * + * \return the layout to place decorators in, if #UI_ITEM_PROP_SEP is enabled. Otherwise null. */ uiLayout *uiItemL_respect_property_split(uiLayout *layout, const char *text, int icon); /** diff --git a/source/blender/editors/interface/interface_layout.cc b/source/blender/editors/interface/interface_layout.cc index 5299cff37cc..2b708b7f0e7 100644 --- a/source/blender/editors/interface/interface_layout.cc +++ b/source/blender/editors/interface/interface_layout.cc @@ -3360,7 +3360,7 @@ uiLayout *uiItemL_respect_property_split(uiLayout *layout, const char *text, int } uiItemL_(layout, text, icon); - return layout; + return nullptr; } void uiItemLDrag(uiLayout *layout, PointerRNA *ptr, const char *name, int icon)