-- Bugfix #3524: theEditMesh structure was not being initialized correctly.
[blender-staging.git] / source / blender / blenkernel / intern / blender.c
index 16ed62d9222766da668809852be29a0affe8fd84..ed9da72c702d41ffc4be55d4c22d649b51a4fe65 100644 (file)
@@ -196,8 +196,8 @@ void initglobals(void)
 {
        memset(&G, 0, sizeof(Global));
        
+       memset(&theEditMesh, 0, sizeof(theEditMesh));
        G.editMesh = &theEditMesh;
-       memset(G.editMesh, 0, sizeof(G.editMesh));
 
        U.savetime= 1;