- silly bug, didn't test for hash before freeing
This commit is contained in:
parent
b58f7d0c55
commit
3181991e86
|
@ -1298,8 +1298,10 @@ static float *get_mesh_orco(Object *ob)
|
|||
}
|
||||
static void free_mesh_orco_hash(void)
|
||||
{
|
||||
BLI_ghash_free(g_orco_hash, NULL, (GHashValFreeFP)MEM_freeN);
|
||||
g_orco_hash = NULL;
|
||||
if (g_orco_hash) {
|
||||
BLI_ghash_free(g_orco_hash, NULL, (GHashValFreeFP)MEM_freeN);
|
||||
g_orco_hash = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void init_render_mesh(Object *ob)
|
||||
|
|
Loading…
Reference in New Issue