Fix node scaling with keyboard on add mode

Node scaling only worked with mouse on add mode before, now should be also working with keyboard.
master
Jeremy Hu 2018-12-15 23:11:02 +09:30
parent 54a05c3bb8
commit ff65a24f32
2 changed files with 10 additions and 2 deletions

View File

@ -4,10 +4,10 @@ DEFINES += NDEBUG
RESOURCES += resources.qrc
isEmpty(HUMAN_VERSION) {
HUMAN_VERSION = "1.0.0-beta.13"
HUMAN_VERSION = "1.0.0-beta.14"
}
isEmpty(VERSION) {
VERSION = 1.0.0.13
VERSION = 1.0.0.14
}
REPOSITORY_URL = "https://github.com/huxingyi/dust3d"

View File

@ -1500,6 +1500,10 @@ void SkeletonGraphicsWidget::shortcutZoomSelectedByMinus1()
if (SkeletonDocumentEditMode::Select == m_document->editMode && hasSelection()) {
zoomSelected(-1);
emit groupOperationAdded();
} else if (SkeletonDocumentEditMode::Add == m_document->editMode) {
if (m_cursorNodeItem->isVisible()) {
m_cursorNodeItem->setRadius(m_cursorNodeItem->radius() + -1);
}
}
}
@ -1513,6 +1517,10 @@ void SkeletonGraphicsWidget::shortcutZoomSelectedBy1()
if (SkeletonDocumentEditMode::Select == m_document->editMode && hasSelection()) {
zoomSelected(1);
emit groupOperationAdded();
} else if (SkeletonDocumentEditMode::Add == m_document->editMode) {
if (m_cursorNodeItem->isVisible()) {
m_cursorNodeItem->setRadius(m_cursorNodeItem->radius() + 1);
}
}
}