mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 00:06:16 +00:00
Changed: #1302 Fixed undo/redo bug (moving primitives).
This commit is contained in:
parent
91aba9126f
commit
7a780d6b34
3 changed files with 5 additions and 2 deletions
|
@ -96,6 +96,7 @@ bool PixmapDatabase::loadPixmaps(const QString &zonePath, NLLIGO::CZoneBank &zon
|
|||
painter.end();
|
||||
delete pixmap;
|
||||
m_pixmapMap.insert(zonePixmapName, emptyPixmap);
|
||||
nlwarning(QString("not found " + zonePath + zonePixmapName + ".png").toStdString().c_str());
|
||||
}
|
||||
// All pixmaps must be have same size
|
||||
else if (pixmap->width() != sizeX * m_textureSize)
|
||||
|
|
|
@ -150,7 +150,7 @@ void PropertyEditorWidget::updateSelection(Node *node)
|
|||
prop = addConstStringArrayProperty(ligoProperty, parameter, primitive);
|
||||
else
|
||||
// hmn?
|
||||
prop = addBoolProperty(parameter, primitive);
|
||||
prop = addBoolProperty(ligoProperty, parameter, primitive);
|
||||
|
||||
// Default value ?
|
||||
if ((ligoProperty == NULL) || (ligoProperty->Default))
|
||||
|
|
|
@ -227,6 +227,7 @@ void WorldEditorScene::mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
|
|||
}
|
||||
|
||||
m_editedSelectedItems = false;
|
||||
m_offset = QPointF(0, 0);
|
||||
m_angle = 0;
|
||||
m_scaleFactor = QPointF(1.0, 1.0);
|
||||
|
||||
|
@ -516,7 +517,8 @@ void WorldEditorScene::checkUndoPointsMode()
|
|||
|
||||
void WorldEditorScene::updateWorldItemsMove(QGraphicsSceneMouseEvent *mouseEvent)
|
||||
{
|
||||
QPointF offset(mouseEvent->scenePos() - mouseEvent->lastScenePos());
|
||||
QPointF offset = mouseEvent->scenePos() - mouseEvent->lastScenePos();
|
||||
m_offset += offset;
|
||||
if (m_pointsMode)
|
||||
Q_FOREACH(QGraphicsItem *item, m_selectedPoints)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue