mirror of
https://github.com/overte-org/overte.git
synced 2025-06-20 06:20:29 +02:00
Merge pull request #15105 from danteruiz/disable-entity-scaling
Case 20830: Disable entity scaling while grabbing
This commit is contained in:
commit
b567fd6cac
2 changed files with 1 additions and 2 deletions
|
@ -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, [], []);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue