[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32591] trunk/blender/source/blender/ python/intern/bpy_props.c: fix for exceptions in recent commit.

Campbell Barton ideasman42 at gmail.com
Tue Oct 19 11:50:43 CEST 2010


Revision: 32591
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32591
Author:   campbellbarton
Date:     2010-10-19 11:50:43 +0200 (Tue, 19 Oct 2010)

Log Message:
-----------
fix for exceptions in recent commit.

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_props.c

Modified: trunk/blender/source/blender/python/intern/bpy_props.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_props.c	2010-10-19 09:38:56 UTC (rev 32590)
+++ trunk/blender/source/blender/python/intern/bpy_props.c	2010-10-19 09:50:43 UTC (rev 32591)
@@ -176,7 +176,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "BoolProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "BoolProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 
@@ -240,7 +240,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "BoolVectorProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "BoolVectorProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -311,7 +311,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "IntProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "IntProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -375,7 +375,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "IntVectorProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "IntVectorProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -452,7 +452,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "FloatProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "FloatProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -521,7 +521,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "FloatVectorProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "FloatVectorProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -592,7 +592,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "StringProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "StringProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -699,7 +699,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "EnumProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "EnumProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -777,7 +777,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "PointerProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "PointerProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		
@@ -832,7 +832,7 @@
 			return NULL;
 
 		if(id_len >= MAX_IDPROP_NAME) {
-			PyErr_Format(PyExc_TypeError, "CollectionProperty(): %.200s too long, max length is %d", MAX_IDPROP_NAME-1, id);
+			PyErr_Format(PyExc_TypeError, "CollectionProperty(): %.200s too long, max length is %d", id, MAX_IDPROP_NAME-1);
 			return NULL;
 		}
 		





More information about the Bf-blender-cvs mailing list