Optimization attempt with BKE_library_idtype_can_use_idtype() was not taking into account the fact that drivers may link virtually against any datablock... Has to be rethinked, but for after 2.78 release, this commit is safe to backport.
Optimization attempt with BKE_library_idtype_can_use_idtype() was not taking into account the fact that drivers may link virtually against any datablock... Has to be rethinked, but for after 2.78 release, this commit is safe to backport.