Skip to content

Commit

Permalink
Couple more quick fixes...
Browse files Browse the repository at this point in the history
Import shouldn't throw errors now.
  • Loading branch information
Jim-Kroovy committed Apr 13, 2021
1 parent e6ff8b4 commit 75c6e14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__pycache__/
resources/
#GNU-GPL-3.0.txt
#CC-BY-4.0.txt
GNU-GPL-3.0.txt
CC-BY-4.0.txt
2 changes: 1 addition & 1 deletion _functions_.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ def run_import(iport):
# apply all the transforms we want to apply...
bpy.ops.object.transform_apply(location=iport.apply_location, rotation=iport.apply_rotation, scale=iport.apply_scale)
# then re-apply parenting...
for child, parent in parenting:
for child, parent in parenting.items():
child.parent = parent

#------------------------------------------------------------------------------------------------------------------------------------------------------#
Expand Down
2 changes: 1 addition & 1 deletion _operators_.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class JK_OT_MMT_Import_FBX(bpy.types.Operator):
def execute(self, context):
# get everything we need to reference...
prefs = bpy.context.preferences.addons["MrMannequinsTools"].preferences
iport = prefs.Import_props[prefs.import_active] if prefs.import_active in prefs.import_props else prefs.import_default
iport = prefs.import_props[prefs.import_active] if prefs.import_active in prefs.import_props else prefs.import_default
_functions_.run_import(iport)
return {'FINISHED'} # {'CANCELLED'}
# bpy.ops.ed.undo()
Expand Down

0 comments on commit 75c6e14

Please sign in to comment.