1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-23 16:50:27 +00:00

quicker editing of 3d models

This commit is contained in:
Zeno Rogue 2019-05-15 17:42:57 +02:00
parent bfdb292d5f
commit bfb0b3f070
2 changed files with 9 additions and 2 deletions

View File

@ -1956,7 +1956,7 @@ namespace mapeditor {
}
if(rebuildPolys)
buildpolys(), rebuildPolys = false;
add_user_shapes(), rebuildPolys = false;
}
#endif

View File

@ -1814,6 +1814,7 @@ hyperpoint turtlevertex(int u, double x, double y, double z) {
vector<hpcshape*> allshapes;
void finishshape() {
if(!last) return;
last->e = isize(hpc);
double area = 0;
for(int i=last->s; i<last->e-1; i++)
@ -3189,8 +3190,14 @@ void buildpolys() {
#endif
bshapeend();
extern void add_user_shapes();
prehpc = isize(hpc);
add_user_shapes();
}
void add_user_shapes() {
hpc.resize(prehpc);
last = NULL;
DEBB(DF_POLY, ("hpc = ", prehpc));
user_triangles_texture.tvertices.clear();