Skip to content

Commit

Permalink
Cover the rest of the missing settings to be saved
Browse files Browse the repository at this point in the history
  • Loading branch information
razor85 committed Dec 10, 2020
1 parent f691b81 commit be1187d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions blender-2.80/iqm_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -1124,10 +1124,22 @@ def __init__(self):
settings = bpy.context.scene['iqm_exporter_settings']
if 'animspec' in settings:
self.animspec = settings['animspec']
if 'usemesh' in settings:
self.usemesh = settings['usemesh']
if 'usemods' in settings:
self.usemods = settings['usemods']
if 'useskel' in settings:
self.useskel = settings['useskel']
if 'usecol' in settings:
self.usecol = settings['usecol']
if 'usescale' in settings:
self.usescale = settings['usescale']
if 'matfmt' in settings:
self.matfmt = settings['matfmt']
if 'derigify' in settings:
self.derigify = settings['derigify']
if 'boneorder' in settings:
self.boneorder = settings['boneorder']
if 'filepath' in settings:
self.properties.filepath = settings['filepath']

Expand All @@ -1148,8 +1160,14 @@ def execute(self, context):

# Save settings in scene
settings['animspec'] = self.animspec
settings['usemesh'] = self.usemesh
settings['usemods'] = self.usemods
settings['useskel'] = self.useskel
settings['usecol'] = self.usecol
settings['usescale'] = self.usescale
settings['matfmt'] = self.matfmt
settings['derigify'] = self.derigify
settings['boneorder'] = self.boneorder
settings['filepath'] = self.properties.filepath
bpy.context.window_manager.popup_menu(drawSuccessMessage,
title='Export finished',
Expand Down

0 comments on commit be1187d

Please sign in to comment.