From 274dc815eb35f6eb42dc2188eff0ebc447276f56 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Mon, 11 Dec 2023 12:06:38 +0100 Subject: [PATCH] Fix: update collada export code to use the new bone collections array I missed this in the previous commit, which broke building Blender. --- source/blender/io/collada/ArmatureExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/io/collada/ArmatureExporter.cpp b/source/blender/io/collada/ArmatureExporter.cpp index df8a7836d29..efd3f0f3256 100644 --- a/source/blender/io/collada/ArmatureExporter.cpp +++ b/source/blender/io/collada/ArmatureExporter.cpp @@ -39,7 +39,7 @@ void ArmatureExporter::add_bone_collections(Object *ob_arm, COLLADASW::Node &nod std::stringstream collection_stream; std::stringstream visible_stream; - LISTBASE_FOREACH (const BoneCollection *, bcoll, &armature->collections) { + for (const BoneCollection *bcoll : armature->collections_span()) { collection_stream << bcoll->name << "\n"; if (bcoll->flags & BONE_COLLECTION_VISIBLE) {