Support compositor node trees in Blender 5.0

Since Blender 5.0 these use a different DNA field. BAT now supports
this too, and supports linked node trees as well.

See blender/blender@bd61e69be5
This commit is contained in:
Sybren A. Stüvel
2025-07-11 15:42:07 +02:00
parent 4c429e9212
commit 16c208bc8e
4 changed files with 33 additions and 2 deletions
+20
View File
@@ -506,6 +506,26 @@ class DepsTest(AbstractTracerTest):
},
)
def test_compositor_nodes(self) -> None:
"""Test compositor node trees.
Since Blender 5.0 these use a different DNA field, and can also be
linked from other files.
"""
self.assert_deps(
"compositor_nodes/compositor_nodes_blender500_workfile.blend",
{
b"LIcompositor_nodes_blender500_library.blend": Expect(
type="Library",
full_field="name[1024]",
dirname_field=None,
basename_field=None,
asset_path=b"//compositor_nodes_blender500_library.blend",
is_sequence=False,
),
},
)
def test_usage_abspath(self):
deps = [
dep