Skip to content

Commit

Permalink
Fix for issue#188
Browse files Browse the repository at this point in the history
  • Loading branch information
sercero committed Feb 6, 2024
1 parent b9d361e commit 5cbd8b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion io_ogre/ogre/skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 5cbd8b5

Please sign in to comment.