Skip to content
Snippets Groups Projects
Commit f9b20b0f authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixes' into 'pregmod-master'

Python script update

Closes #446

See merge request pregmodfan/fc-pregmod!3510
parents 161d086b 4c03b187
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,12 @@ for layer in layers: ...@@ -100,7 +100,12 @@ for layer in layers:
svg = svg.replace('\n','').replace('\r','') # print cannot be multi-line svg = svg.replace('\n','').replace('\r','') # print cannot be multi-line
svg = regex_space.sub('><',svg) # remove indentaion svg = regex_space.sub('><',svg) # remove indentaion
svg = svg.replace('svg:','') # svg namespace was removed svg = svg.replace('svg:','') # svg namespace was removed
svg = svg.replace('<g ','<g transform="\'+_art_transform+\'"') # internal groups are used for scaling if ("Boob" in i): # internal groups are used for scaling
svg = svg.replace('<g ','<g transform="\'+_artTransformBoob+\'"') # boob art uses the boob scaling
elif ("Belly" in i):
svg = svg.replace('<g ','<g transform="\'+_artTransformBelly+\'"') # belly art uses the belly scaling
else:
svg = svg.replace('<g ','<g transform="\'+_art_transform+\'"') # otherwise use default scaling
svg = svg.encode('utf-8') svg = svg.encode('utf-8')
# save SVG string to file # save SVG string to file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment