bmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh_copy(), gives ~30% overall speedup in my tests.

This commit is contained in:
2012-12-19 09:13:06 +00:00
parent 62988549a1
commit fbf4f57cd6
2 changed files with 21 additions and 1 deletions

View File

@@ -986,7 +986,7 @@ static void icon_draw_size(float x, float y, int icon_id, float aspect, float al
Icon *icon = NULL;
DrawInfo *di = NULL;
IconImage *iimg;
float fdraw_size = draw_size;
const float fdraw_size = (float)draw_size;
int w, h;
icon = BKE_icon_get(icon_id);