- new property attribute - default_array, which returns a variable size array useful to get the defaults for operator & function arrays.

- updated python api to check for array types rather then the length since a variable length array can be 1 or 0 length.
- python docgen added .0 to the end of floats which messed up values like 1e-05
This commit is contained in:
2009-09-15 10:01:20 +00:00
parent 223bc8aee1
commit 689b77ba9d
6 changed files with 125 additions and 39 deletions

View File

@@ -225,7 +225,7 @@ def write_func(rna, ident, out, func_type):
elif rna_prop_type=='float':
if length==0:
val_str= '%g' % val
if '.' not in val_str:
if '.' not in val_str and '-' not in val_str: # value could be 1e-05
val_str += '.0'
else:
# array