You can copy-paste a collection instance into its source collection (creating recursion) #91128

Closed
opened 2021-09-02 15:55:36 +02:00 by Philipp Oeser · 9 comments
Member

System Information
Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-29 21:39, hash: b42354672e
Worked: never

Short description of error
You can copy-paste a collection instance into its source collection (creating recursion)

Exact steps for others to reproduce the error
copy_paste_instance_to_source_collection.blend

  • open file
  • {key Ctrl C}
  • {key Ctrl V}
  • this will put the instance in its source collection (creating recursion -- which should be avoided)

Dragging and dropping is already prevented in the Outliner.
There is a check in collection_object_add here https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/collection.c$1074
But that fails to detect equality if instance comes from the pastebuffer.

**System Information** Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-08-29 21:39, hash: `b42354672e` Worked: never **Short description of error** You can copy-paste a collection instance into its source collection (creating recursion) **Exact steps for others to reproduce the error** [copy_paste_instance_to_source_collection.blend](https://archive.blender.org/developer/F10363287/copy_paste_instance_to_source_collection.blend) - open file - {key Ctrl C} - {key Ctrl V} - this will put the instance in its source collection (creating recursion -- which should be avoided) Dragging and dropping is already prevented in the Outliner. There is a check in `collection_object_add` here https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/collection.c$1074 But that fails to detect equality if instance comes from the pastebuffer.
Author
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

Am not sure I am following here... AFAIK copy/paste of IDs in 3DView uses temp blend file + append, so it's not pasting the same ID, but a new one (as you can see from the names, Collection.001)...

Am not sure I am following here... AFAIK copy/paste of IDs in 3DView uses temp blend file + append, so it's not pasting the same ID, but a new one (as you can see from the names, `Collection.001`)...
Author
Member

Yeah, but you still shouldnt be allowed to put the new ID into its source collection.
Same thing can be done just coping [no copy-paste] the instance (so you get the name Collection.001 also), try drag-dropping that into the collection --> is forbidden.

Yeah, but you still shouldnt be allowed to put the new ID into its source collection. Same thing can be done just coping [no copy-paste] the instance (so you get the name `Collection.001` also), try drag-dropping that into the collection --> is forbidden.
Author
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Author
Member

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'
Author
Member

Ah sorry (not my day today), you are right, this is not the same as duplicating the instance.
And yes, this is not recursion.

Ah sorry (not my day today), you are right, this is not the same as duplicating the instance. And yes, this is not recursion.
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
2 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#91128
No description provided.