Todo item: linked curve objects behaves incorrect with modifiers
[blender-staging.git] / source / blender / blenkernel / intern / cdderivedmesh.c
index 8030a3655ad4768fc3b943beea05c3c1c142d185..efdfdbc986ff7ff021d92e776500ba2c5e93e157 100644 (file)
@@ -1644,7 +1644,7 @@ DerivedMesh *CDDM_from_editmesh(EditMesh *em, Mesh *UNUSED(me))
 
 DerivedMesh *CDDM_from_curve(Object *ob)
 {
-       return CDDM_from_curve_customDB(ob, &((Curve *)ob->data)->disp);
+       return CDDM_from_curve_customDB(ob, &ob->disp);
 }
 
 DerivedMesh *CDDM_from_curve_customDB(Object *ob, ListBase *dispbase)