Known Issue - Not A Bug: Re-doing the Purge of unused linked data does not delete again the affected linked data #117303

Open
opened 2024-01-18 21:21:29 +01:00 by Bastien Montagne · 1 comment

System Information
Operating system: N/A
Graphics card: N/A

Blender Version
Broken: current main
Worked: ???

Short description of error

Undoing and redoing a 'Purge unused data' operation properly re-delete the affected unused local IDs, but not the linked ones.

Exact steps for others to reproduce the error
Using linked_data_purge.blend:

  1. Unlink the Collection from the scene.
  2. Disable the 'fake user' status of the unlinked collection in the Orphaned view of the Outliner.
  3. Purge all data recursively. Both the local collection and the linked one are deleted, with all of their contents (objects, obdata, etc.).
  4. Undo, all deleted IDs are restored.
  5. Redo, affected local IDs are deleted again, but the linked ones remain present.
**System Information** Operating system: N/A Graphics card: N/A **Blender Version** Broken: current `main` Worked: ??? **Short description of error** Undoing and redoing a 'Purge unused data' operation properly re-delete the affected unused local IDs, but not the linked ones. **Exact steps for others to reproduce the error** Using [linked_data_purge.blend](/attachments/356e52ff-95f1-40ec-aa2a-2df86ebab214): 1. Unlink the `Collection` from the scene. 2. Disable the 'fake user' status of the unlinked collection in the `Orphaned` view of the Outliner. 3. Purge all data recursively. Both the local collection and the linked one are deleted, with all of their contents (objects, obdata, etc.). 4. Undo, all deleted IDs are restored. 5. Redo, affected local IDs are deleted again, but the linked ones remain present.
Bastien Montagne added the
Interest
Undo
Type
Bug
Status
Confirmed
Priority
Normal
Module
Core
labels 2024-01-18 21:21:30 +01:00
Bastien Montagne added
Type
Known Issue
and removed
Type
Bug
labels 2024-03-01 15:09:52 +01:00
Author
Owner

Note: This is actually the expected behavior. This comes from the fact that on global undo/redo, linked data is mostly ignored. Missing linked data will be reloaded if possible, but no linked data will ever be removed by an undo or redo operation.

While not idea, this is done for efficiency reasons, and not an issue for the vast majority of cases, so not really worth improving for this specific case. Best solution is simply to re-run recursive purge of unused data then.

Note: This is actually the expected behavior. This comes from the fact that on global undo/redo, linked data is mostly ignored. Missing linked data will be reloaded if possible, but no linked data will ever be removed by an undo or redo operation. While not idea, this is done for efficiency reasons, and not an issue for the vast majority of cases, so not really worth improving for this specific case. Best solution is simply to re-run recursive purge of unused data then.
Bastien Montagne added
Priority
Low
and removed
Priority
Normal
labels 2024-03-01 15:12:47 +01:00
Bastien Montagne changed title from Re-doing the Purge of unused linked data does not delete again the affected linked data to Known Issue - Not A Bug: Re-doing the Purge of unused linked data does not delete again the affected linked data 2024-03-01 15:13:05 +01:00
Sign in to join this conversation.
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
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#117303
No description provided.