Outliner always deletes "globally" (also linked objects from an inactive scene), no option for this as in the 3D view #106025
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#106025
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
System Information
Operating system: Windows 10
Blender Version
Broken: 3.4.1, 3.5.0 (2023-03-23)
Short description of error
Deletes linked objects from an inactive scene.
If you try delete linked object from 3D viewport, it will only be removed from the current scene, as expected.
If you try delete linked object from Outliner (View Layer), objects will be removed from all scene. Although they are only expected to be removed from the current scene.
When you delete an object from Outliner, object should be deleted only from the current scene.
Or a menu should show with a choice: "Delete from current scene", "Delete from ALL scenes".
Otherwise, it may unexpected change inactive scenes, and data loss after saving blend file.
Exact steps for others to reproduce the error
Only partially true. You can delete an object from all scenes from the 3D viewport as well (using
Object
>Delete Global
)In the Outliner, this is "global" by default, true (and no option to change this really). BUT, couldnt you just use
Outliner context menu
>Unlink
instead?This will "remove" the cube from the current collection (and if it is not linked to any other collections in the current scene this basically means it is deleted from the current scene as well), AND it will still be in the other scene.
Does this solve your problem?
(I assume the "Delete Global" / "Delete Unglobal" behavior could be implemented for the outliner as well even though this sounds more like a feature request than a bug)
dev note: the difference is in
BKE_scene_collections_object_remove
(this is done when [regular "unglobal"] deleting from the 3D viewport, removing the object from all scene collections) vs.BKE_collection_object_remove
(this is done when unlinking from the Outliner)."Unlink" does not solve the problem.
For example, in such a situation, you lose data:
You have a file where there are several scenes in which there is some kind of related object. You need to remove an object from one scene. You open the file, select the desired scene, delete the object with the "Delete" key, the object is deleted, you save the file, close Blender.
If you have the mouse cursor in the 3D view window, there are no problems.
But if you accidentally have the cursor in outliner, the object will be removed from all the scenes, you may not notice it.
After saving the file, the object is removed from the file and you will lose data.
You will not even know that other scenes are broken and you have lost data.
In this situation I had to restore scenes from the backup.
Users need some kind of protection against this.
This problem can be solved in the this ways.
When you press the "X" or "Delete" keys in outliner, then:
2.1 Show menu with choice: "Delete from current scene", "Delete from ALL scenes"
2.2 Show warning message like "In other scenes, there is a linked objects. Delete objects from All scenes?" (like press "X" key in 3D viewport)
@mont29 : is this something that is "inconsistent enough" to be considered a bug?
Do you want to keep this as a TODO?
Deletes linked objects from an inactive scene.to Outliner always deletes "globally" (also linked objects from an inactive scene), no option for this as in the 3D viewTBH, I think the behavior in the Outliner is more consistent: Delete means delete, not 'unlink from current scene'. So would rather rename the 'Delete' option in the view3D to 'Unlink from scene' or so.
But this is somewhat part of the broader on-going discussion about how to handle unused data, more 'aggressive' deletion, and general consistency, see e.g. #61209.
Definitively not a bug.
OK, thx for the feedback.
So (even if not perfect), current behavior is not considered a bug, will have to close the report then.
Maybe we could also add "'unlink from current scene" to the Outliner as well at some point.
And I also propose to move hotkeys "X" and "Delete" in outliner from "Delete" operation to "Unlink" operation.
Then it will work the same way as in "3D view".