Revision: 30043 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30043 Author: mindrones Date: 2010-07-06 15:56:50 +0200 (Tue, 06 Jul 2010)
Log Message: ----------- == rna cleanup == small fixes adnm tentative new keywords those discussed by campbell and brecht are still there, but commented with these keywords I'm happy how booleans went, committing to discuss with cambpell Modified Paths: -------------- trunk/blender/source/blender/makesrna/rna_cleanup/rna_cleaner.py Modified: trunk/blender/source/blender/makesrna/rna_cleanup/rna_cleaner.py =================================================================== --- trunk/blender/source/blender/makesrna/rna_cleanup/rna_cleaner.py 2010-07-06 13:49:47 UTC (rev 30042) +++ trunk/blender/source/blender/makesrna/rna_cleanup/rna_cleaner.py 2010-07-06 13:56:50 UTC (rev 30043) @@ -238,15 +238,18 @@ else: indent = ' ' rna += indent + '("%s", "%s", "%s", "%s", "%s"),\n' % tuple(props[2:5] + props[6:]) # py - if props[0] == 'NOTE': indent = '# ' - else: indent = ' ' blanks = [' '* (x[0]-x[1]) for x in zip(props_length_max,list(map(len,props)))] props = ['"%s"%s'%(x[0],x[1]) for x in zip(props,blanks)] py += indent + '(%s, %s, %s, %s, %s, %s, %s, %s),\n' % tuple(props) + f_txt.write(txt) f_py.write("rna_api = [\n%s]\n" % py) f_rna.write("rna_api = [\n%s]\n" % rna) + f_txt.close() + f_py.close() + f_rna.close() + print ('\nSaved %s, %s and %s.\n' % (font_bold(f_txt.name), font_bold(f_py.name), font_bold(f_rna.name) ) ) @@ -257,8 +260,10 @@ sort_choices = ['note','changed','class','from','to','kw'] default_sort_choice = sort_choices[0] - kw_prefixes = ['invert','is','lock','show','show_only','use','use_only'] - kw = ['hide','select','layer','state'] + #kw_prefixes = ['invert','is','lock','show','show_only','use','use_only'] + #kw = ['hide','select','layer','state'] + kw_prefixes = ['has','invert','is','lock','layers','show','show_only','states','use','use_only'] + kw = ['layers','states','value'] input_filename, sort_priority = check_commandline() props_list,props_length_max = get_props(input_filename) _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs