shvid now calls require_shapes()

This commit is contained in:
Zeno Rogue 2021-07-31 15:09:01 +02:00
parent c661290930
commit dae0aacbb7
1 changed files with 2 additions and 0 deletions

View File

@ -846,6 +846,7 @@ EX namespace gp {
}
void build_plainshape(int& id, gp::local_info& li, cell *c0, int siid, int sidir) {
cgi.require_shapes();
id = cgi.gpdata->nextid++;
bool master = !(li.relative.first||li.relative.second);
@ -972,6 +973,7 @@ int hrmap_standard::shvid(cell *c) {
cgi.tessf = edge_of_triangle_with_angles(0, M_PI/t, M_PI/t);
cgi.crossf = cgi.tessf;
cgi.require_shapes();
println(hlog, "generating floorshapes for ", t);
cgi.generate_floorshapes_for(t, &model, 0, 0);
cgi.finishshape();