import_obj - name imported objects/mesh data

weightpaint_clean - report how many verts removed from groups
save_theme - no need to do type(''), just use type(vat) == str
This commit is contained in:
2007-01-13 03:07:04 +00:00
parent 29c99ee306
commit c6a57fb4b0
3 changed files with 46 additions and 19 deletions

View File

@@ -75,7 +75,6 @@ theme = Theme.Get()[0] # get current theme
default_fname = Blender.Get("scriptsdir")
default_fname = Blender.sys.join(default_fname, theme.name + '_theme.py')
default_fname = default_fname.replace(' ','_')
type_str = type('')
def write_theme(filename):
"Write the current theme as a bpython script"
@@ -125,7 +124,7 @@ theme = Theme.New('%s')
for var in vars:
v = "%s.%s" % (tsp, var)
exec("value = %s" % v)
if type(value) == type_str:
if type(value) == str:
fout.write("%s = '%s'\n" % (v, value))
else:
fout.write("%s = %s\n" % (v, value))