disable entity scaling

This commit is contained in:
danteruiz 2019-03-05 16:23:40 -08:00
parent 94cc5b83ac
commit 272ca5dc1c
2 changed files with 1 additions and 2 deletions

View file

@ -134,7 +134,7 @@ Script.include("/~/system/libraries/controllers.js");
var scaleModuleName = this.hand === RIGHT_HAND ? "RightScaleEntity" : "LeftScaleEntity"; var scaleModuleName = this.hand === RIGHT_HAND ? "RightScaleEntity" : "LeftScaleEntity";
var scaleModule = getEnabledModuleByName(scaleModuleName); var scaleModule = getEnabledModuleByName(scaleModuleName);
if (scaleModule.grabbedThingID || scaleModule.isReady(controllerData).active) { if (scaleModule && (scaleModule.grabbedThingID || scaleModule.isReady(controllerData).active)) {
// we're rescaling -- don't start a grab. // we're rescaling -- don't start a grab.
return makeRunningValues(false, [], []); return makeRunningValues(false, [], []);
} }

View file

@ -30,7 +30,6 @@ var CONTOLLER_SCRIPTS = [
"controllerModules/teleport.js", "controllerModules/teleport.js",
"controllerModules/hudOverlayPointer.js", "controllerModules/hudOverlayPointer.js",
"controllerModules/mouseHMD.js", "controllerModules/mouseHMD.js",
"controllerModules/scaleEntity.js",
"controllerModules/nearGrabHyperLinkEntity.js", "controllerModules/nearGrabHyperLinkEntity.js",
"controllerModules/nearTabletHighlight.js", "controllerModules/nearTabletHighlight.js",
"controllerModules/nearGrabEntity.js", "controllerModules/nearGrabEntity.js",