diff --git a/scripts/startup/bl_ui/generic_ui_list.py b/scripts/startup/bl_ui/generic_ui_list.py index 76de60204af..83ece19a473 100644 --- a/scripts/startup/bl_ui/generic_ui_list.py +++ b/scripts/startup/bl_ui/generic_ui_list.py @@ -31,7 +31,7 @@ def draw_ui_list( context, class_name="UI_UL_list", *, - unique_id="", + unique_id, list_path, active_index_path, insertion_operators=True, @@ -48,7 +48,7 @@ def draw_ui_list( :type context: :class:`Context` :arg class_name: Name of the UIList class to draw. The default is the UIList class that ships with Blender. :type class_name: str - :arg unique_id: Optional identifier, in case wanting to draw multiple unique copies of a list. + :arg unique_id: Unique identifier to differentiate this from other UI lists. :type unique_id: str :arg list_path: Data path of the list relative to context, eg. "object.vertex_groups". :type list_path: str diff --git a/scripts/templates_py/ui_list_generic.py b/scripts/templates_py/ui_list_generic.py index d33075ddd65..4113a99d681 100644 --- a/scripts/templates_py/ui_list_generic.py +++ b/scripts/templates_py/ui_list_generic.py @@ -18,8 +18,9 @@ class MyPanel(bpy.types.Panel): draw_ui_list( layout, context, - list_context_path="scene.my_list", - active_index_context_path="scene.my_list_active_index" + list_path="scene.my_list", + active_index_path="scene.my_list_active_index", + unique_id="my_list_id", )