diff --git a/common/lc_model.cpp b/common/lc_model.cpp index 0caa309f..01e0334f 100644 --- a/common/lc_model.cpp +++ b/common/lc_model.cpp @@ -394,6 +394,8 @@ void lcModel::LoadLDraw(QIODevice& Device, Project* Project) lcArray CurrentGroups; int CurrentStep = 1; + mProperties.mAuthor.clear(); + while (!Device.atEnd()) { qint64 Pos = Device.pos(); diff --git a/common/lc_model.h b/common/lc_model.h index 0d7f7d54..be203744 100644 --- a/common/lc_model.h +++ b/common/lc_model.h @@ -28,8 +28,7 @@ enum lcBackgroundType { LC_BACKGROUND_SOLID, LC_BACKGROUND_GRADIENT, - LC_BACKGROUND_IMAGE, - LC_NUM_BACKGROUND_TYPES + LC_BACKGROUND_IMAGE }; class lcModelProperties