From 27b5d838f5585880eaaf6ddeb15cbd403fcf0850 Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Sat, 13 May 2023 13:34:42 +0200 Subject: [PATCH] Fixed reset rotaion in Create App --- scripts/system/create/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/create/edit.js b/scripts/system/create/edit.js index cc6e67fbe6..d086516950 100644 --- a/scripts/system/create/edit.js +++ b/scripts/system/create/edit.js @@ -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