fix for uninitialized variables in uv stretch drawing,
[#8428] 'Editmesh_active' theme colour not accessible via Python bugfix problem where saving a theme would raise and error when ~/.blender didnt exist. bugfix for file selector staying open (introduced with own undo resistant scripts)
This commit is contained in:
@@ -73,7 +73,11 @@ theme = Theme.Get()[0] # get current theme
|
||||
|
||||
# default filename: theme's name + '_theme.py' in user's scripts dir:
|
||||
default_fname = Blender.Get("scriptsdir")
|
||||
default_fname = Blender.sys.join(default_fname, theme.name + '_theme.py')
|
||||
if (default_fname):
|
||||
default_fname = Blender.sys.join(default_fname, theme.name + '_theme.py')
|
||||
else:
|
||||
default_fname = theme.name + '_theme.py'
|
||||
|
||||
default_fname = default_fname.replace(' ','_')
|
||||
|
||||
def write_theme(filename):
|
||||
|
||||
Reference in New Issue
Block a user