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
parent
54a05c3bb8
commit
ff65a24f32
|
@ -4,10 +4,10 @@ DEFINES += NDEBUG
|
||||||
RESOURCES += resources.qrc
|
RESOURCES += resources.qrc
|
||||||
|
|
||||||
isEmpty(HUMAN_VERSION) {
|
isEmpty(HUMAN_VERSION) {
|
||||||
HUMAN_VERSION = "1.0.0-beta.13"
|
HUMAN_VERSION = "1.0.0-beta.14"
|
||||||
}
|
}
|
||||||
isEmpty(VERSION) {
|
isEmpty(VERSION) {
|
||||||
VERSION = 1.0.0.13
|
VERSION = 1.0.0.14
|
||||||
}
|
}
|
||||||
|
|
||||||
REPOSITORY_URL = "https://github.com/huxingyi/dust3d"
|
REPOSITORY_URL = "https://github.com/huxingyi/dust3d"
|
||||||
|
|
|
@ -1500,6 +1500,10 @@ void SkeletonGraphicsWidget::shortcutZoomSelectedByMinus1()
|
||||||
if (SkeletonDocumentEditMode::Select == m_document->editMode && hasSelection()) {
|
if (SkeletonDocumentEditMode::Select == m_document->editMode && hasSelection()) {
|
||||||
zoomSelected(-1);
|
zoomSelected(-1);
|
||||||
emit groupOperationAdded();
|
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()) {
|
if (SkeletonDocumentEditMode::Select == m_document->editMode && hasSelection()) {
|
||||||
zoomSelected(1);
|
zoomSelected(1);
|
||||||
emit groupOperationAdded();
|
emit groupOperationAdded();
|
||||||
|
} else if (SkeletonDocumentEditMode::Add == m_document->editMode) {
|
||||||
|
if (m_cursorNodeItem->isVisible()) {
|
||||||
|
m_cursorNodeItem->setRadius(m_cursorNodeItem->radius() + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue