From acbb91b192da45977ed97f03f4e8dc9cf5b705af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 15 Jan 2024 11:36:48 +0100 Subject: [PATCH] Fix: Anim, replace last `arm.collections.all` with `arm.collections_all` Replace the last occurrences of `arm.collections.all` to `arm.collections_all`. This has been the API since 015555b07a0aa8fa5e0ca8692eafd2c44dca429e. --- scripts/startup/bl_operators/anim.py | 4 ++-- source/blender/makesrna/intern/rna_armature.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/startup/bl_operators/anim.py b/scripts/startup/bl_operators/anim.py index 054a88ced37..dd30b18e40e 100644 --- a/scripts/startup/bl_operators/anim.py +++ b/scripts/startup/bl_operators/anim.py @@ -560,7 +560,7 @@ class ARMATURE_OT_collection_solo_visibility(Operator): return {'CANCELLED'} # Hide everything first. - for bcoll in arm.collections.all: + for bcoll in arm.collections_all: bcoll.is_visible = False # Show the named bone collection and all its ancestors. @@ -583,7 +583,7 @@ class ARMATURE_OT_collection_show_all(Operator): def execute(self, context): arm = context.object.data - for bcoll in arm.collections.all: + for bcoll in arm.collections_all: bcoll.is_visible = True return {'FINISHED'} diff --git a/source/blender/makesrna/intern/rna_armature.cc b/source/blender/makesrna/intern/rna_armature.cc index 10a230a991c..480f4535e70 100644 --- a/source/blender/makesrna/intern/rna_armature.cc +++ b/source/blender/makesrna/intern/rna_armature.cc @@ -2381,7 +2381,7 @@ static void rna_def_bonecollection(BlenderRNA *brna) RNA_def_property_ui_text( prop, "Index", - "Index of this bone collection in the armature.collections.all array. Note that finding " + "Index of this bone collection in the armature.collections_all array. Note that finding " "this index requires a scan of all the bone collections, so do access this with care"); prop = RNA_def_property(srna, "child_number", PROP_INT, PROP_NONE);