Don't set the current user as the author when loading a model if the file doesn't specify one.

This commit is contained in:
leo 2015-03-25 23:07:33 +00:00
parent c9839c945e
commit c926da827c
2 changed files with 3 additions and 2 deletions

View file

@ -394,6 +394,8 @@ void lcModel::LoadLDraw(QIODevice& Device, Project* Project)
lcArray<lcGroup*> CurrentGroups;
int CurrentStep = 1;
mProperties.mAuthor.clear();
while (!Device.atEnd())
{
qint64 Pos = Device.pos();

View file

@ -28,8 +28,7 @@ enum lcBackgroundType
{
LC_BACKGROUND_SOLID,
LC_BACKGROUND_GRADIENT,
LC_BACKGROUND_IMAGE,
LC_NUM_BACKGROUND_TYPES
LC_BACKGROUND_IMAGE
};
class lcModelProperties