Loading Mapping --> setPaint was commented. Seems to be necesary. Also added related Label for paintId just including ProjectLabels.h

This commit is contained in:
carlesgutierrez
2017-10-17 16:47:34 +02:00
committed by Bay Dam
parent eac130221c
commit 109c5572fb
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -91,8 +91,8 @@ void Mapping::read(const QDomElement& obj)
Element::read(obj);
// Read paint.
int paintId = obj.attribute("paintId").toInt();
// setPaint(MainWindow::window()->getMappingManager().getPaintById(paintId));
int paintId = obj.attribute(ProjectLabels::PAINT_ID).toInt();
setPaint(MainWindow::window()->getMappingManager().getPaintById(paintId));
// Read output shape.
_readShape(obj, true);
+2
View File
@@ -33,6 +33,8 @@
#include "MetaObjectRegistry.h"
#include "ProjectLabels.h"
namespace mmp {
// TODO: replace by ProjectAttribute