Upload files to 'studio'
This commit is contained in:
parent
d8f8eb96b7
commit
e4276b6f44
1 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue