When using the pulldown menus for exiting weightpaint, it did not free
octree tables for weightpaint, giving an error message on re-entering
weightpaint.
This commit is contained in:
2005-11-11 18:58:45 +00:00
parent 66867140dd
commit fe9bd18a84
2 changed files with 7 additions and 7 deletions

View File

@@ -757,8 +757,8 @@ int mesh_octree_table(Object *ob, float *co, char mode)
if(div[1]==0.0f) div[1]= 1.0f;
if(div[2]==0.0f) div[2]= 1.0f;
if(basetable) /* error should not happen, added to prevent coding errors */
error("Mesh octree table coding error");
if(basetable) /* happens when entering wpaint without closing it */
mesh_octree_table(ob, co, 'e');
basetable= MEM_callocN(MOC_RES*MOC_RES*MOC_RES*sizeof(void *), "sym table");