Fixed reset rotaion in Create App

This commit is contained in:
ksuprynowicz 2023-05-13 13:34:42 +02:00
parent 4107f40c7c
commit 27b5d838f5

View file

@ -2791,7 +2791,7 @@
} else if (data.action === "setRotationToZero") {
if (selectionManager.selections.length === 1 && SelectionManager.hasUnlockedSelection()) {
selectionManager.saveProperties();
var parentState = getParentState(selectionManager.selections[0]);
var parentState = createApp.getParentState(selectionManager.selections[0]);
if ((parentState === "PARENT_CHILDREN" || parentState === "CHILDREN") && selectionDisplay.getSpaceMode() === "local" ) {
Entities.editEntity(selectionManager.selections[0], {
localRotation: Quat.IDENTITY