-> More Bmesh Custom Data stuff
[blender.git] / source / blender / blenkernel / intern / modifier.c
index 6185e249b5aeed3317347380e27aab8c1873f3ca..efc250fdc0d089fce9754f1b98ee46aadfc253f9 100644 (file)
@@ -2736,6 +2736,7 @@ static DerivedMesh *bevelModifier_applyModifier(
 {
        DerivedMesh *result;
        BME_Mesh *bm;
+
        /*bDeformGroup *def;*/
        int /*i,*/ options, defgrp_index = -1;
        BevelModifierData *bmd = (BevelModifierData*) md;
@@ -2754,8 +2755,7 @@ static DerivedMesh *bevelModifier_applyModifier(
                //~ }
        //~ }
 
-       bm = BME_make_mesh(512,512,2048,512);
-       bm = BME_derivedmesh_to_bmesh(derivedData, bm);
+       bm = BME_derivedmesh_to_bmesh(derivedData);
        BME_bevel(bm,bmd->value,bmd->res,options,defgrp_index,bmd->bevel_angle,NULL);
        result = BME_bmesh_to_derivedmesh(bm,derivedData);
        BME_free_mesh(bm);