Fix for bug #11002: particle ipo clump did not allow negative values
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 8 May 2008 08:41:56 +0000 (08:41 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 8 May 2008 08:41:56 +0000 (08:41 +0000)
like the button in the user interface.

source/blender/blenkernel/intern/ipo.c

index 0b9f7615bfa821c1d8d8bb391b54a510bd6e11a1..321d4f1d37e0b23d53c66446a4ff5e7f2dc49706 100644 (file)
@@ -1917,6 +1917,9 @@ void set_icu_vars(IpoCurve *icu)
                        icu->ymin= 0.0;
                        break;
                case PART_CLUMP:
+                       icu->ymin= -1.0;
+                       icu->ymax= 1.0;
+                       break;
                case PART_DRAG:
                case PART_DAMP:
                case PART_LENGTH:
@@ -1926,6 +1929,7 @@ void set_icu_vars(IpoCurve *icu)
                case PART_KINK_SHAPE:
                        icu->ymin= -0.999;
                        icu->ymax= 0.999;
+                       break;
                }
        }
        else if(icu->blocktype==ID_CO) {