+ init();
+}
+
+Material::Loader::Loader(Material &m, Collection &c):
+ DataFile::CollectionObjectLoader<Material>(m, &c)
+{
+ init();
+}
+
+void Material::Loader::init()
+{
+ if(Resources *res = dynamic_cast<Resources *>(coll))
+ srgb = res->get_srgb_conversion();
+ else
+ srgb = false;
+