mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #126155: Misleading UILayout.template_palette docs
Remove unused `color` argument.
Docs said:
color (bool) – Display the colors as colors or values (optional)
The argument was introduced in megacommit f745564e4e, where it was
already marked as unused.
Pull Request: https://projects.blender.org/blender/blender/pulls/158788
This commit is contained in:
parent
f1b1446af0
commit
79a60b4816
3 changed files with 2 additions and 6 deletions
|
|
@ -2561,7 +2561,7 @@ void template_color_picker(Layout *layout,
|
|||
bool lock,
|
||||
bool lock_luminosity,
|
||||
bool cubic);
|
||||
void template_palette(Layout *layout, PointerRNA *ptr, StringRefNull propname, bool colors);
|
||||
void template_palette(Layout *layout, PointerRNA *ptr, StringRefNull propname);
|
||||
void template_crypto_picker(Layout *layout, PointerRNA *ptr, StringRefNull propname, int icon);
|
||||
/**
|
||||
* TODO: for now, grouping of layers is determined by dividing up the length of
|
||||
|
|
|
|||
|
|
@ -229,10 +229,7 @@ static void template_palette_menu(bContext * /*C*/, Layout *layout, void * /*but
|
|||
RNA_enum_set(&op_ptr, "type", 4);
|
||||
}
|
||||
|
||||
void template_palette(Layout *layout,
|
||||
PointerRNA *ptr,
|
||||
const StringRefNull propname,
|
||||
bool /*colors*/)
|
||||
void template_palette(Layout *layout, PointerRNA *ptr, const StringRefNull propname)
|
||||
{
|
||||
PropertyRNA *prop = RNA_struct_find_property(ptr, propname.c_str());
|
||||
Button *but = nullptr;
|
||||
|
|
|
|||
|
|
@ -2187,7 +2187,6 @@ void RNA_api_ui_layout(StructRNA *srna)
|
|||
func = RNA_def_function(srna, "template_palette", "template_palette");
|
||||
RNA_def_function_ui_description(func, "Item. A palette used to pick colors.");
|
||||
api_ui_item_rna_common(func);
|
||||
RNA_def_boolean(func, "color", false, "", "Display the colors as colors or values");
|
||||
|
||||
func = RNA_def_function(srna, "template_image_layers", "uiTemplateImageLayers");
|
||||
RNA_def_function_flag(func, FUNC_USE_CONTEXT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue