Skip to content

Commit

Permalink
Fix KhronosGroup#956 when settings are saved inside .blend file
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Mar 4, 2020
1 parent 54fc4b1 commit 3f24551
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addons/io_scene_gltf2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,13 @@ def invoke(self, context, event):
if settings:
try:
for (k, v) in settings.items():
setattr(self, k, v)
if k == "export_selected": # Back compatibility for export_selected --> use_selected
setattr(self, "use_selected", v)
del settings[k]
settings["use_selected"] = v
print("export_selected is now renamed use_selected, and will be deleted in a few release")
else:
setattr(self, k, v)
self.will_save_settings = True

except (AttributeError, TypeError):
Expand Down

0 comments on commit 3f24551

Please sign in to comment.