mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	quicker editing of 3d models
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue