mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
Fixed reset rotaion in Create App
This commit is contained in:
parent
4107f40c7c
commit
27b5d838f5
1 changed files with 1 additions and 1 deletions
|
@ -2791,7 +2791,7 @@
|
||||||
} else if (data.action === "setRotationToZero") {
|
} else if (data.action === "setRotationToZero") {
|
||||||
if (selectionManager.selections.length === 1 && SelectionManager.hasUnlockedSelection()) {
|
if (selectionManager.selections.length === 1 && SelectionManager.hasUnlockedSelection()) {
|
||||||
selectionManager.saveProperties();
|
selectionManager.saveProperties();
|
||||||
var parentState = getParentState(selectionManager.selections[0]);
|
var parentState = createApp.getParentState(selectionManager.selections[0]);
|
||||||
if ((parentState === "PARENT_CHILDREN" || parentState === "CHILDREN") && selectionDisplay.getSpaceMode() === "local" ) {
|
if ((parentState === "PARENT_CHILDREN" || parentState === "CHILDREN") && selectionDisplay.getSpaceMode() === "local" ) {
|
||||||
Entities.editEntity(selectionManager.selections[0], {
|
Entities.editEntity(selectionManager.selections[0], {
|
||||||
localRotation: Quat.IDENTITY
|
localRotation: Quat.IDENTITY
|
||||||
|
|
Loading…
Reference in a new issue