mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Loading Mapping --> setPaint was commented. Seems to be necesary. Also added related Label for paintId just including ProjectLabels.h
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
#include "MetaObjectRegistry.h"
|
||||
|
||||
#include "ProjectLabels.h"
|
||||
|
||||
namespace mmp {
|
||||
|
||||
// TODO: replace by ProjectAttribute
|
||||
|
||||
Reference in New Issue
Block a user