Remap Users operator doesn't work on Objects #108285
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#108285
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Blender Version
Broken: version: 4.0.0 Alpha, branch: HEAD (modified), commit date: 2023-05-25 12:53, hash:
de2c8416a038
Short description of error
The Remap Users operator doesn't seem to work on Objects.
I'd also like to take this opportunity for a teeny tiny request: Could the operator use a text-based search among the available options, instead of a regular enum drop-down?
Exact steps for others to reproduce the error
@Mets This could be correct behavior if nothing is using such object. Remap users feature will replace all occurences of ID you clicked on by another ID. So for example you can batch replace materials.
The tooltip seems quite confusing and I see no other official documentation about this, so not sure if you jst aren't sure how this feature works, or you still think if this is a bug.
I would expect the button to behave the same as the call 'ID.user_remap(other_ID)'
Which, for an object that is linked to a scene, will always do something, and result in it not being linked to that scene anymore, since the reference from all collections to the object is replaced with the other object.
Another way to look at it is that whatever ID the function is called on should end up with 0 users, aka becoming Orphan Data, only getting saved if it has the fake user flag turned on.
If by some miracle I am really misunderstanding something and the operator's early exit is intended, it should show a message explaining why the operation was cancelled, like every other operator in Blender. But as a bonus, it could also show message when it succeeds, like every well implemented operator in Blender! :3
But to answer the question, yes, I still think it's a bug. Maybe @mont29 can confirm?
Thanks for clarification.
@mont29 : Outliner code is pretty specific about this (not allowing objects) wheres the RNA function does not have this restriction. The whole thing came with
7547c6a250
. Do you recall why you made this different?Seems this was already considered for removal (see
30534deced
and8c9805fc62
)In addition, it seems quite easy to break this using it on objects @Mets ?
If I do this:
then select something afterwards, I get a crash:
So, @mont29 :
-- then we should expose it in the outliner as well? (remove the
if (idlevel > 0)
check inoutliner_id_operation_exec
)-- we should also look into the crash mentioned above
-- prevent the RNA func to act on objects also
This is essentially a mix of horrible Outliner handling of its tools, and legacy stuff that got moved around without being properly updated (Objects used to have their own remap operation, code is still even there, just not hooked anywhere anymore afaict).
Will check the crash, remapping objects is expected to work as anything else. ;)