Page MenuHome

Copying and pasting a single object with a scene driven value node will duplicate all objects in the scene
Closed, ArchivedPublic

Description

System Information
Operating system: macOS, Windows 10
Graphics card: N/A

Blender Version
Broken: Tested all of the versions I have available:
2.92.0
3.0.0 Beta
3.1.0 Alpha

Short description of error
If you use a shader "Value" node in a material, and that value is given a driver with a variable pointing to the Scene, copying and pasting an object which uses that material will cause all objects in the scene to be duplicated.

Exact steps for others to reproduce the error
Open the attached blend file, select the "Plane" object (which uses the material with the scene driven value), copy it, and paste it. Notice that Suzanne is also pasted.

Event Timeline

Can confirm the same problem with Append and Link - whole scene is included when importing an object with such material.

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from Developers.Nov 22 2021, 12:08 PM

Hm, not sure about expected behavior here.
But can confirm (even if the driver is set to a specific scene property like scene's unit_settings.scale_length).
So ideally, scene objects are not necessary in such a scenario (but like I said: unsure if blender can be fine-grained enough to detect dependencies properly [and if it should] here).

Maybe @Bastien Montagne (mont29) could comment? [not even sure what to tag here? Core ?]

Bastien Montagne (mont29) closed this task as Archived.Nov 22 2021, 3:15 PM

This driver is creating a dependency to the scene ID, which is therefore brought back (together with all of its objects) into the copy/paste buffer...

This is working as expected currently, no bug here.