From 5cbd8b55cb91a97b15ffc160e1deb69595c93f26 Mon Sep 17 00:00:00 2001 From: sercero Date: Tue, 6 Feb 2024 12:17:32 -0300 Subject: [PATCH] Fix for issue#188 --- io_ogre/ogre/skeleton.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/io_ogre/ogre/skeleton.py b/io_ogre/ogre/skeleton.py index 036984d..ba7cd08 100644 --- a/io_ogre/ogre/skeleton.py +++ b/io_ogre/ogre/skeleton.py @@ -324,7 +324,12 @@ def findArmature( ob ): arm = ob.find_armature() # if this armature has no animation, if not arm.animation_data: - # search for another armature that is a proxy for it + # The old proxy system has been deprecated in Blender 3.0, and fully removed in Blender 3.2. + # https://docs.blender.org/manual/en/3.2/files/linked_libraries/library_proxies.html + if ((bpy.app.version[0] >= 3 and bpy.app.version[1] >= 2) or (bpy.app.version[0] >= 4)): + return arm + + # Search for another armature that is a proxy for it for ob2 in bpy.data.objects: if ob2.type == 'ARMATURE' and ob2.proxy == arm: logger.info( "- Proxy armature %s found" % ob2.name )