Upload files to 'studio'

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2020-12-25 14:28:23 +00:00
parent d8f8eb96b7
commit e4276b6f44

View file

@ -1099,6 +1099,12 @@ def layer(win):
stf = datetime.datetime.now()
###################################################################
# The undo history is quite a new adition so the limit setting might
# not exists. So let's make it if so.
if "Undo_Limit" not in win.settings:
win.settings["Undo_Limit"] = 32
settings.write("Undo_Limit", 32)
# Save story. I'm going to do it the same way as in the old Blender-Organizer
if win.url == "story_editor":
savenow = False
@ -1114,11 +1120,6 @@ def layer(win):
if savenow:
# The undo history is quite a new adition so the limit setting might
# not exists. So let's make it if so.
if "Undo_Limit" not in win.settings:
win.settings["Undo_Limit"] = 32
settings.write("Undo_Limit", 32)
# Now let's run the history record.
story.undo_record(win)