mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 17:00:44 +08:00
Fixed bug which happens if you slice without ever touching the start/end code.
This commit is contained in:
parent
a7c566e946
commit
e22694bfda
@ -190,11 +190,13 @@ def loadGlobalProfileFromString(options):
|
||||
options = zlib.decompress(options)
|
||||
(profileOpts, alt) = options.split('\f', 1)
|
||||
for option in profileOpts.split('\b'):
|
||||
(key, value) = option.split('=', 1)
|
||||
globalProfileParser.set('profile', key, value)
|
||||
if len(option) > 0:
|
||||
(key, value) = option.split('=', 1)
|
||||
globalProfileParser.set('profile', key, value)
|
||||
for option in alt.split('\b'):
|
||||
(key, value) = option.split('=', 1)
|
||||
globalProfileParser.set('alterations', key, value)
|
||||
if len(option) > 0:
|
||||
(key, value) = option.split('=', 1)
|
||||
globalProfileParser.set('alterations', key, value)
|
||||
|
||||
def getGlobalProfileString():
|
||||
global globalProfileParser
|
||||
|
Loading…
x
Reference in New Issue
Block a user