Depsgraph: Use explicit bmain pointer passed to layer utilities
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 10 Jul 2017 14:47:12 +0000 (16:47 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 10 Jul 2017 14:47:12 +0000 (16:47 +0200)
commit205d750a634c2ed8d02ebc8ffbf8d653769d9a79
tree089692d6b745b4cea7cbbb1687fbb615c3cd82f6
parent8692c3a83f586a3451803c820483b1a285657fcd
Depsgraph: Use explicit bmain pointer passed to layer utilities

it is not necessarily that depsgraph is built from G.bmain.

This will solve issue reported in T51782.
source/blender/depsgraph/intern/builder/deg_builder_relations_scene.cc
source/blender/depsgraph/intern/depsgraph.h
source/blender/depsgraph/intern/depsgraph_query.cc