mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	quicker editing of 3d models
This commit is contained in:
		| @@ -1956,7 +1956,7 @@ namespace mapeditor { | |||||||
|       } |       } | ||||||
|  |  | ||||||
|     if(rebuildPolys) |     if(rebuildPolys) | ||||||
|       buildpolys(), rebuildPolys = false; |       add_user_shapes(), rebuildPolys = false; | ||||||
|     } |     } | ||||||
| #endif     | #endif     | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1814,6 +1814,7 @@ hyperpoint turtlevertex(int u, double x, double y, double z) { | |||||||
| vector<hpcshape*> allshapes; | vector<hpcshape*> allshapes; | ||||||
|  |  | ||||||
| void finishshape() { | void finishshape() { | ||||||
|  |   if(!last) return; | ||||||
|   last->e = isize(hpc); |   last->e = isize(hpc); | ||||||
|   double area = 0; |   double area = 0; | ||||||
|   for(int i=last->s; i<last->e-1; i++) |   for(int i=last->s; i<last->e-1; i++) | ||||||
| @@ -3189,8 +3190,14 @@ void buildpolys() { | |||||||
|   #endif |   #endif | ||||||
|    |    | ||||||
|   bshapeend(); |   bshapeend(); | ||||||
|  |   extern void add_user_shapes(); | ||||||
|   prehpc = isize(hpc); |   prehpc = isize(hpc); | ||||||
|  |   add_user_shapes(); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  | void add_user_shapes() { | ||||||
|  |   hpc.resize(prehpc); | ||||||
|  |   last = NULL; | ||||||
|   DEBB(DF_POLY, ("hpc = ", prehpc)); |   DEBB(DF_POLY, ("hpc = ", prehpc)); | ||||||
|  |  | ||||||
|   user_triangles_texture.tvertices.clear(); |   user_triangles_texture.tvertices.clear(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue