diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-08-09 11:43:04 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-08-09 11:55:30 +0300 |
commit | 8c488cb97f0cf3b445c5527be72542d68242db93 (patch) | |
tree | 60581de041ffe7508c289dab941f46759a2b14eb /source/blender/editors/object | |
parent | 55d28e604e7cd8bcac0ebb8dc8e27e07b58862a3 (diff) |
Fix T52315: Crash on duplicating Scene without world.
Regression from rBa7b3047cefcbf, to be backported to 2.79.
Like... seriously... :|
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 5b6fe96861d..d5b516257a1 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2137,7 +2137,9 @@ void ED_object_single_users(Main *bmain, Scene *scene, const bool full, const bo IDP_RelinkProperty(scene->gpd->id.properties); } - IDP_RelinkProperty(scene->world->id.properties); + if (scene->world) { + IDP_RelinkProperty(scene->world->id.properties); + } if (scene->clip) { IDP_RelinkProperty(scene->clip->id.properties); |