diff options
author | over0219 <over0219@umn.edu> | 2020-07-02 02:26:23 +0300 |
---|---|---|
committer | over0219 <over0219@umn.edu> | 2020-07-02 02:26:23 +0300 |
commit | c4484057685a905876ed472a61a0fc0f6085f885 (patch) | |
tree | d0dd9dd8f0c7e57b94fc680f38fba8de0299e51a /intern/softbody/admmpd_api.cpp | |
parent | e0a76a48eb80f85026c503206ddc3a82d7af0ddb (diff) |
fixed mcgs
Diffstat (limited to 'intern/softbody/admmpd_api.cpp')
-rw-r--r-- | intern/softbody/admmpd_api.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/intern/softbody/admmpd_api.cpp b/intern/softbody/admmpd_api.cpp index b1bdbab49cb..261c935b413 100644 --- a/intern/softbody/admmpd_api.cpp +++ b/intern/softbody/admmpd_api.cpp @@ -158,16 +158,14 @@ static int admmpd_init_with_lattice( } iface->totverts = 0; - bool success = admmpd::EmbeddedMesh().generate(in_V,in_F,iface->idata->embmesh,V); + bool trim_lattice = true; + bool success = admmpd::EmbeddedMesh().generate(in_V,in_F,iface->idata->embmesh,trim_lattice); if (success) { - admmpd::EmbeddedMesh().compute_masses( - iface->idata->embmesh, - &iface->idata->embmesh->x_rest, - V, m); - - iface->totverts = V->rows(); + admmpd::EmbeddedMesh().compute_masses(iface->idata->embmesh, m); *T = iface->idata->embmesh->tets; + *V = iface->idata->embmesh->rest_x; + iface->totverts = V->rows(); return 1; } |