string args were given in wrong order.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 19 Dec 2008 05:09:17 +0000 (05:09 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 19 Dec 2008 05:09:17 +0000 (05:09 +0000)
source/blender/python/epy_doc_gen.py

index 4ce43f87c5e90705b0acbd36be74a1cbdd2d9915..6ed3dc0950b231b4324da9f86dae33cc1d328e1e 100644 (file)
@@ -95,7 +95,7 @@ def rna2epy(target_path):
                                        out.write('\t@type %s: %s%s%s\n' %  (rna_prop_identifier, rna_prop_type,  array_str, readonly_str))
                                elif rna_prop_type == 'int' or rna_prop_type == 'float':
                                        out.write('\t@ivar %s: %s\n' %  (rna_prop_identifier, rna_desc))
-                                       out.write('\t@type %s: %s%s%s in [%s, %s]\n' %  (rna_prop_identifier, rna_prop_type, array_str, range_str(rna_prop.hard_min), range_str(rna_prop.hard_max), readonly_str ))
+                                       out.write('\t@type %s: %s%s%s in [%s, %s]\n' %  (rna_prop_identifier, rna_prop_type, array_str, readonly_str, range_str(rna_prop.hard_min), range_str(rna_prop.hard_max) ))
                                elif rna_prop_type == 'string':
                                        out.write('\t@ivar %s: %s (maximum length of %s)\n' %  (rna_prop_identifier, rna_desc, rna_prop.max_length))
                                        out.write('\t@type %s: %s%s%s\n' %  (rna_prop_identifier, rna_prop_type, array_str, readonly_str))