src/ldtypes.cpp

changeset 489
0b32138fedcc
parent 486
25747c37c7be
child 665
4355e72ffd47
equal deleted inserted replaced
488:0ea49207a4ec 489:0b32138fedcc
22 #include "misc.h" 22 #include "misc.h"
23 #include "gui.h" 23 #include "gui.h"
24 #include "history.h" 24 #include "history.h"
25 #include "gldraw.h" 25 #include "gldraw.h"
26 #include "colors.h" 26 #include "colors.h"
27 #include "gldata.h"
27 28
28 cfg (String, ld_defaultname, ""); 29 cfg (String, ld_defaultname, "");
29 cfg (String, ld_defaultuser, ""); 30 cfg (String, ld_defaultuser, "");
30 cfg (Int, ld_defaultlicense, 0); 31 cfg (Int, ld_defaultlicense, 0);
31 32
263 // Remove this object from the list of LDObjects 264 // Remove this object from the list of LDObjects
264 ulong pos = g_LDObjects.find (this); 265 ulong pos = g_LDObjects.find (this);
265 266
266 if (pos < g_LDObjects.size()) 267 if (pos < g_LDObjects.size())
267 g_LDObjects.erase (pos); 268 g_LDObjects.erase (pos);
269
270 g_vertexCompiler.forgetObject (this);
268 } 271 }
269 272
270 // ============================================================================= 273 // =============================================================================
271 // ----------------------------------------------------------------------------- 274 // -----------------------------------------------------------------------------
272 static void transformObject (LDObject* obj, matrix transform, vertex pos, short parentcolor) { 275 static void transformObject (LDObject* obj, matrix transform, vertex pos, short parentcolor) {

mercurial