Elbeem / Fluidsim:
authorDaniel Genrich <daniel.genrich@gmx.net>
Mon, 13 Jun 2011 00:02:23 +0000 (00:02 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Mon, 13 Jun 2011 00:02:23 +0000 (00:02 +0000)
a) Also fixed an "upcomming" bug in regard of gravx,y,z now converted into an array.
b) Little typo fix

source/blender/editors/physics/physics_fluid.c

index d540485..d54d608 100644 (file)
@@ -443,7 +443,7 @@ static void fluid_init_all_channels(bContext *C, Object *UNUSED(fsDomain), Fluid
                for (fobj=fobjects->first; fobj; fobj=fobj->next) {
                        Object *ob = fobj->object;
                        FluidsimModifierData *fluidmd = (FluidsimModifierData *)modifiers_findByType(ob, eModifierType_Fluidsim);
-                       float active= (float)(fluidmd->fss->flag && OB_FLUIDSIM_ACTIVE);
+                       float active= (float)(fluidmd->fss->flag & OB_FLUIDSIM_ACTIVE);
                        float rot_d[3] = {0.f, 0.f, 0.f}, old_rot[3] = {0.f, 0.f, 0.f};
                        
                        if (ELEM(fluidmd->fss->type, OB_FLUIDSIM_DOMAIN, OB_FLUIDSIM_PARTICLE))