Skip to content

Shared UIList base class for the two camera list variants #160

Description

@Weisl

`CAMERA_UL_cameras_popup` and `CAMERA_UL_cameras_scene` in `uilist.py` duplicate their filter/sort property declarations and `draw_filter`/`filter_items` almost verbatim — only `draw_item` meaningfully differs. They already share the filtering/sorting logic via the `filter_list()` helper, but the property declarations and boilerplate methods are copy-pasted.

Not user-facing on its own, but factoring this into a shared base/mixin class would make a future third list surface (e.g. a multi-camera compare/contact-sheet view) cheap to add instead of a third copy-paste.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions