Bugfix #4488
authorTon Roosendaal <ton@blender.org>
Tue, 27 Jun 2006 10:51:35 +0000 (10:51 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 27 Jun 2006 10:51:35 +0000 (10:51 +0000)
On file load, a Curve deformation was not initialized when it
wasn't in a visible layer.

source/blender/blenkernel/intern/lattice.c

index 29325138c152a11d8efa8f53d1e66bf10dd707db..81f7eb7a0eb10a5eb11d9cf1a04da94d1f54cb77 100644 (file)
@@ -519,9 +519,9 @@ static void calc_curve_deform(Object *par, float *co, short axis, CurveDeform *c
                cent[2]= 0.0;
                index= 2;
        }
-       /* to be sure */
+       /* to be sure, mostly after file load */
        if(cu->path==NULL) {
-               calc_curvepath(par);
+               makeDispListCurveTypes(par, 0);
                if(cu->path==NULL) return;      // happens on append...
        }
        /* options */