[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11297] trunk/blender/source/blender/ python/api2_2x/Constraint.c: Argh...

Joshua Leung aligorith at gmail.com
Tue Jul 17 14:09:36 CEST 2007


Revision: 11297
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11297
Author:   aligorith
Date:     2007-07-17 14:09:36 +0200 (Tue, 17 Jul 2007)

Log Message:
-----------
Argh... coding while sleepy.. con->max not con->min.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Constraint.c

Modified: trunk/blender/source/blender/python/api2_2x/Constraint.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Constraint.c	2007-07-17 12:03:17 UTC (rev 11296)
+++ trunk/blender/source/blender/python/api2_2x/Constraint.c	2007-07-17 12:09:36 UTC (rev 11297)
@@ -562,11 +562,11 @@
 			return EXPP_setFloatClamped( value, &con->min, -1000.0, 1000.0 );
 	case EXPP_CONSTR_MAX:
 		if (con->type < 10)
-			return EXPP_setFloatClamped( value, &con->min, -180.0, 180.0 );
+			return EXPP_setFloatClamped( value, &con->max, -180.0, 180.0 );
 		else if (con->type < 20)
-			return EXPP_setFloatClamped( value, &con->min, 0.0001, 1000.0 );
+			return EXPP_setFloatClamped( value, &con->max, 0.0001, 1000.0 );
 		else 
-			return EXPP_setFloatClamped( value, &con->min, -1000.0, 1000.0 );
+			return EXPP_setFloatClamped( value, &con->max, -1000.0, 1000.0 );
 	case EXPP_CONSTR_KEYON:
 		return EXPP_setIValueRange( value, &con->type,
 				EXPP_CONSTR_XROT, EXPP_CONSTR_ZLOC, 'h' );





More information about the Bf-blender-cvs mailing list