From ad6cccf058d0296a8741a6583d12967366a31705 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 17 Jun 2020 15:02:04 +0200 Subject: Refactor duplicate of data-blocks. Main change from user side, besides that all pointers should now be properly remapped to new IDs, is that linked objects are no longer preserved when doing a full copy of scenes. Will open a task to check whether we actually still want that behavior (and re-code it in a more correct way then). This is the main part of work done here, it aims at uniformizing and sanitizing that 'deep copy' process for supported IDs (currently scenes, collections and objects). Note that there will be more follow up commits after that one, but this should be the most risky and changing one. --- tests/python/bl_pyapi_idprop_datablock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/python/bl_pyapi_idprop_datablock.py') diff --git a/tests/python/bl_pyapi_idprop_datablock.py b/tests/python/bl_pyapi_idprop_datablock.py index 44fec6a9043..ca52c1b01fe 100644 --- a/tests/python/bl_pyapi_idprop_datablock.py +++ b/tests/python/bl_pyapi_idprop_datablock.py @@ -157,10 +157,10 @@ def check_linked_scene_copying(): extern_sce = get_scene("lib.blend", "Scene_lib") # check node's props - # we made full copy from linked scene, so pointers must equal each other + # must point to own scene camera abort_if_false(intern_sce.node_tree.nodes['Render Layers']["prop"] and - intern_sce.node_tree.nodes['Render Layers']["prop"] == - extern_sce.node_tree.nodes['Render Layers']["prop"]) + not (intern_sce.node_tree.nodes['Render Layers']["prop"] == + extern_sce.node_tree.nodes['Render Layers']["prop"])) def check_scene_copying(): -- cgit v1.2.3