Skip to content

Commit

Permalink
Merge pull request AlwarrenSidh#34 from VurtualRuler98/linked_objects
Browse files Browse the repository at this point in the history
Fix linked objects throwing an error
  • Loading branch information
AlwarrenSidh authored Jul 1, 2021
2 parents de520bd + 2067a17 commit 06f09fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ArmaToolbox/MDLexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ def exportObjectListAsMDL(myself, filePtr, applyModifiers, mergeSameLOD, objects
objects = sorted(objects, key=lodKey)

# Make sure the object is in OBJECT mode, otherwise some of the functions might fail
bpy.ops.object.mode_set(mode='OBJECT')
if (bpy.context.object.mode!='OBJECT'):
bpy.ops.object.mode_set(mode='OBJECT')

# Write file header
writeSignature(filePtr, 'MLOD')
Expand Down

0 comments on commit 06f09fa

Please sign in to comment.