diff --git a/plugins/blender/__init__.py b/plugins/blender/__init__.py index 82485c7..2a2f517 100644 --- a/plugins/blender/__init__.py +++ b/plugins/blender/__init__.py @@ -11,7 +11,7 @@ bl_info = { "name": "Cast Support", "author": "DTZxPorter", - "version": (1, 2, 9), + "version": (1, 3, 0), "blender": (3, 0, 0), "location": "File > Import", "description": "Import & Export Cast", diff --git a/plugins/blender/import_cast.py b/plugins/blender/import_cast.py index b8e5e35..86f0800 100644 --- a/plugins/blender/import_cast.py +++ b/plugins/blender/import_cast.py @@ -431,7 +431,7 @@ def importRotCurveNode(node, nodeName, fcurves, poseBones, path, startFrame): smallestFrame = min(frame, smallestFrame) largestFrame = max(frame, largestFrame) - if mode == "absolute" or bone.parent is not None: + if mode == "absolute" and bone.parent is not None: bone.matrix_basis.identity() bone.matrix = (bone.parent.matrix.to_3x3() @ rotation).to_4x4() @@ -439,6 +439,8 @@ def importRotCurveNode(node, nodeName, fcurves, poseBones, path, startFrame): track.keyframe_points.insert( frame, value=bone.rotation_quaternion[axis], options={'FAST'}) elif mode == "relative" or bone.parent is None: + rotation = rotation.to_quaternion() + for axis, track in enumerate(tracks): track.keyframe_points.insert( frame, value=rotation[axis], options={'FAST'}) diff --git a/plugins/maya/castplugin.py b/plugins/maya/castplugin.py index acaa938..f874ec0 100644 --- a/plugins/maya/castplugin.py +++ b/plugins/maya/castplugin.py @@ -32,7 +32,7 @@ } # Shared version number -version = "1.29" +version = "1.30" def utilityAbout():