fixed overwriting of meta data when loading project file

This commit is contained in:
Marc Zinnschlag 2015-06-26 16:22:06 +02:00
parent 1e033fa8fe
commit a4c2c75d1f

View file

@ -861,11 +861,14 @@ int CSMWorld::Data::startLoading (const boost::filesystem::path& path, bool base
mBase = base; mBase = base;
mProject = project; mProject = project;
if (!mProject && !mBase)
{
MetaData metaData; MetaData metaData;
metaData.mId = "sys::meta"; metaData.mId = "sys::meta";
metaData.load (*mReader); metaData.load (*mReader);
mMetaData.setRecord (0, Record<MetaData> (RecordBase::State_ModifiedOnly, 0, &metaData)); mMetaData.setRecord (0, Record<MetaData> (RecordBase::State_ModifiedOnly, 0, &metaData));
}
return mReader->getRecordCount(); return mReader->getRecordCount();
} }