Skip to content

Commit

Permalink
Attempt to fix issue importing and merging multiple models.
Browse files Browse the repository at this point in the history
Should fix #78
  • Loading branch information
dtzxporter committed Dec 13, 2024
1 parent 785a3e7 commit 92a8919
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/blender/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
bl_info = {
"name": "Cast Support",
"author": "DTZxPorter",
"version": (1, 6, 9),
"version": (1, 7, 0),
"blender": (3, 0, 0),
"location": "File > Import",
"description": "Import & Export Cast",
Expand Down
6 changes: 6 additions & 0 deletions plugins/blender/import_cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,12 @@ def importModelNode(self, model, path, selectedObject):
if self.import_constraints:
importSkeletonConstraintNode(self, model.Skeleton(), poses)

# If we merged this model, select the target armature again.
if self.import_merge:
if selectedObject and selectedObject.type == 'ARMATURE':
bpy.context.view_layer.objects.active = selectedObject
bpy.ops.object.mode_set(mode='OBJECT')


def importRotCurveNode(node, nodeName, fcurves, poseBones, path, startFrame, overrides):
smallestFrame = sys.maxsize
Expand Down
2 changes: 1 addition & 1 deletion plugins/maya/castplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

# Shared version number
version = "1.69"
version = "1.70"


def utilityAbout():
Expand Down

0 comments on commit 92a8919

Please sign in to comment.