fix [#35555] Collada: export destroys mesh in some cases
add arguments to calculate normals when converting to bmesh: BM_mesh_bm_from_me, DM_to_bmesh This gives some speedup to undo (which didnt need to re-calculate vertex normals), and array modifier which doesnt need to calculate face normals at all
This commit is contained in:
@@ -45,7 +45,7 @@ void bmo_mesh_to_bmesh_exec(BMesh *bm, BMOperator *op)
|
||||
Mesh *me = BMO_slot_ptr_get(op->slots_in, "mesh");
|
||||
bool set_key = BMO_slot_bool_get(op->slots_in, "use_shapekey");
|
||||
|
||||
BM_mesh_bm_from_me(bm, me, set_key, ob->shapenr);
|
||||
BM_mesh_bm_from_me(bm, me, false, set_key, ob->shapenr);
|
||||
|
||||
if (me->key && ob->shapenr > me->key->totkey) {
|
||||
ob->shapenr = me->key->totkey - 1;
|
||||
|
||||
Reference in New Issue
Block a user