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:
Campbell Barton
2008-03-09 07:35:12 +00:00
parent a339bca9a1
commit d9da14d8a7
4 changed files with 26 additions and 15 deletions

View File

@@ -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):