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:
parent
bfdb292d5f
commit
bfb0b3f070
@ -1956,7 +1956,7 @@ namespace mapeditor {
|
||||
}
|
||||
|
||||
if(rebuildPolys)
|
||||
buildpolys(), rebuildPolys = false;
|
||||
add_user_shapes(), rebuildPolys = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user