own error in recent knife-project changes.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 16 Mar 2013 16:10:27 +0000 (16:10 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 16 Mar 2013 16:10:27 +0000 (16:10 +0000)
source/blender/editors/mesh/editmesh_knife_project.c

index d5291602080bb70a52393f729c35ab21aec7b46f..c581ce5a2e84bada6954efa876645aa170d8ffb1 100644 (file)
@@ -70,6 +70,9 @@ static LinkNode *knifeproject_poly_from_object(ARegion *ar, Scene *scene, Object
                dm = CDDM_from_curve(ob);
                dm_needsFree = true;
        }
+       else {
+               dm = NULL;
+       }
 
        if (dm) {
                ListBase nurbslist = {NULL, NULL};