Skip to content

Commit bfe2107

Browse files
committed
Warn about target offset being unsupported in blender.
1 parent b84c895 commit bfe2107

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/blender/import_cast.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,13 @@ def importSkeletonIKNode(self, skeleton, poses):
545545
if handle.UseTargetRotation():
546546
ik.use_rotation = True
547547

548+
targetOffset = handle.TargetOffset()
549+
550+
if targetOffset is not None:
551+
# Warn until we figure out how to emulate this effectively.
552+
self.report({"WARNING"},
553+
"Unable to setup \"%s\" fully due to blender not supporting target offsets." % ik.name)
554+
548555
if poleVectorBone is not None:
549556
poleVector = poses[poleVectorBone.Name()]
550557

0 commit comments

Comments
 (0)