Fix T45891: Crash generating previews

This commit is contained in:
2015-08-25 18:33:04 +10:00
parent c6d7562896
commit 51d969c6a9
2 changed files with 2 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ Group *BKE_group_copy(Group *group)
BLI_duplicatelist(&groupn->gobject, &group->gobject);
/* Do not copy group's preview (same behavior as for objects). */
groupn->preview = NULL;
if (group->id.lib) {
BKE_id_lib_local_paths(G.main, group->id.lib, &groupn->id);

View File

@@ -1562,6 +1562,7 @@ Object *BKE_object_copy_ex(Main *bmain, Object *ob, bool copy_caches)
}
/* Do not copy object's preview (mostly due to the fact renderers create temp copy of objects). */
obn->preview = NULL;
return obn;
}