UI: Rewrite Move to Collection menu #110667
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#110667
Loading…
Reference in New Issue
No description provided.
Delete Branch "guishe/blender:move-to-collection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The code with which the
move_to_collection
operator menu is created issimplified.
There are several user-visible changes (see #110667 (comment)):
Each sub menu will first draw the
collection
to which it belongs, thenthe button to create a
new child collection
, and finally thechilds collections
.Before the button to create a
new child collection
was first and second thebutton for the
collection
itself, this way is hard to recognize that the sub menubelongs to the
collection
.Every collection will have a submenu, in order to be able to select the
collection or create a new collection from it.
The
collection_index
parameter is replaced by thecollection
parameter, this simplifies the use of the operator since it is easier to access
a collection by its name rather than by an index that is not very clear how to
get outside the apy, now the apy allows to move/link any object to any collection in the
current file.
Added a operator paramether
scene
, that uses the scene master collection to move the objects.On the developer side, the static pointer
master_collection_menu
is removed,this variable points to dynamic allocated memory, which is not always freed.
Without this change, when exiting, blender can report the use memory that was
not freed. Removing this variable reduces the chances of taking this leak as
mismanaged memory elsewhere.
Visible changes:
dd7ad44d69
to12781e066b
hi, IMHO i want to mention that "new collection" must be close to the flesh, because we want to create new collection and we often have many collections in the list so it's hard to go every time to it, i prefer to have it the second below the scene collection then the existed collections ....
a question, especially GPencil, we create many new layers so having 'new layer' in bottom is a bad choice... so maybe the same here? and will this going to affect GPencil layers?
@hamza-el-barmaki I moved in this pr New Collection as the second option in menus, I see it reasonable, but it would be better if someone from ui says something about it. And for GPencil new layers, would be another pr
Checkout
From your project repository, check out a new branch and test the changes.