Merge branch 'blender-v4.1-release'
This commit is contained in:
commit
c1c3a4e45d
|
@ -1119,9 +1119,11 @@ void RNA_api_ui_layout(StructRNA *srna)
|
|||
api_ui_item_common_heading(func);
|
||||
|
||||
func = RNA_def_function(srna, "panel", "rna_uiLayoutPanel");
|
||||
RNA_def_function_ui_description(func,
|
||||
"Creates a collapsable panel. Whether it is open or closed is "
|
||||
"stored in the region using the given idname");
|
||||
RNA_def_function_ui_description(
|
||||
func,
|
||||
"Creates a collapsable panel. Whether it is open or closed is stored in the region using "
|
||||
"the given idname. This can only be used when the panel has the full width of the panel "
|
||||
"region available to it. So it can't be used in e.g. in a box or columns");
|
||||
RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS);
|
||||
parm = RNA_def_string(func, "idname", nullptr, 0, "", "Identifier of the panel");
|
||||
RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED);
|
||||
|
@ -1145,7 +1147,8 @@ void RNA_api_ui_layout(StructRNA *srna)
|
|||
"Similar to `.panel(...)` but instead of storing whether it is open or closed in the "
|
||||
"region, it is stored in the provided boolean property. This should be used when multiple "
|
||||
"instances of the same panel can exist. For example one for every item in a collection "
|
||||
"property or list");
|
||||
"property or list. This can only be used when the panel has the full width of the panel "
|
||||
"region available to it. So it can't be used in e.g. in a box or columns");
|
||||
RNA_def_function_flag(func, FUNC_USE_CONTEXT | FUNC_USE_REPORTS);
|
||||
parm = RNA_def_pointer(
|
||||
func, "data", "AnyType", "", "Data from which to take the open-state property");
|
||||
|
|
Loading…
Reference in New Issue