src/gldraw.cpp

changeset 250
6e80f038e8df
parent 240
bdc9d429cdc2
child 251
c4b96bc41298
--- a/src/gldraw.cpp	Fri May 24 03:34:09 2013 +0300
+++ b/src/gldraw.cpp	Fri May 24 04:34:20 2013 +0300
@@ -387,7 +387,7 @@
 	if (gl_colorbfc && !m_picking) {
 		glEnable (GL_CULL_FACE);
 		
-		for (LDObject* obj : g_curfile->m_objs) {
+		for (LDObject* obj : g_curfile->objs ()) {
 			if (obj->hidden ())
 				continue;
 			
@@ -400,7 +400,7 @@
 		
 		glDisable (GL_CULL_FACE);
 	} else {
-		for (LDObject* obj : g_curfile->m_objs) {
+		for (LDObject* obj : g_curfile->objs ()) {
 			if (obj->hidden ())
 				continue;
 			
@@ -668,7 +668,7 @@
 		return;
 	}
 	
-	for (LDObject* obj : g_curfile->m_objs)
+	for (LDObject* obj : g_curfile->objs ())
 		compileObject (obj);
 	
 	// Compile axes
@@ -1083,7 +1083,7 @@
 		if (idx == 0xFFFFFF)
 			continue; // White is background; skip
 		
-		LDObject* obj = g_curfile->object (idx);
+		LDObject* obj = g_curfile->obj (idx);
 		
 		// If this is an additive single pick and the object is currently selected,
 		// we remove it from selection instead.

mercurial