Fix for bug #17712: fluid button activation crash.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 29 Sep 2008 22:07:13 +0000 (22:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 29 Sep 2008 22:07:13 +0000 (22:07 +0000)
source/blender/src/buttons_object.c

index 92b0a673c24c2336e65cd95834b94b652672cefa..8ba56b84305ce95a7ac60baaf5e0ff39a7114fd1 100644 (file)
@@ -5017,7 +5017,8 @@ static void object_panel_fluidsim(Object *ob)
        const int separateHeight = 2;
        const int objHeight = 20;
        FluidsimModifierData *fluidmd = (FluidsimModifierData *)modifiers_findByType(ob, eModifierType_Fluidsim);
-       int libdata = 0, val = 0;
+       int libdata = 0;
+       static int val = 0;
        uiBut *but=NULL;
        
        block= uiNewBlock(&curarea->uiblocks, "object_fluidsim", UI_EMBOSS, UI_HELV, curarea->win);