prop_with_search - move new args to kw-only for readibility

This commit is contained in:
Andrej730
2025-08-06 16:59:51 +05:00
parent d7d592de6f
commit ce154cc8d2
+2 -2
View File
@@ -360,9 +360,9 @@ def prop_with_search(
prop_name: str, prop_name: str,
should_click_ok: bool = False, should_click_ok: bool = False,
original_operator_path: Optional[str] = None, original_operator_path: Optional[str] = None,
*,
enable_relating_type_suggestions: bool = True, enable_relating_type_suggestions: bool = True,
search_threshold: int = 10, search_threshold: int = 10,
*,
button_kwargs: Union[dict[str, Any], None] = None, button_kwargs: Union[dict[str, Any], None] = None,
**kwargs: Any, **kwargs: Any,
) -> bpy.types.UILayout: ) -> bpy.types.UILayout:
@@ -374,7 +374,7 @@ def prop_with_search(
:arg button_kwargs: kwargs to pass to ``UILayout.operator()``. :arg button_kwargs: kwargs to pass to ``UILayout.operator()``.
:arg kwargs: kwargs to pass to ``UILayout.prop()``. :arg kwargs: kwargs to pass to ``UILayout.prop()``.
:arg enable_relating_type_suggestions: Enable additional suggestions for relating type properties. :arg enable_relating_type_suggestions: Enable additional suggestions for relating type properties.
:arg search_threshold: Minimum number of enum items required to show search button. Default is 10. :arg search_threshold: Minimum number of enum items required to show search button.
:return: Added row. :return: Added row.
""" """
# kwargs are layout.prop arguments (text, icon, etc.) # kwargs are layout.prop arguments (text, icon, etc.)