mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 11:29:25 +02:00
adding extra conditional to ensure all modules are checked
This commit is contained in:
parent
30ca5a8cbd
commit
ac642f126a
1 changed files with 2 additions and 2 deletions
|
@ -44,12 +44,12 @@ Script.include("/~/system/libraries/controllers.js");
|
|||
}
|
||||
nearGrabName = this.hand === RIGHT_HAND ? "RightNearParentingGrabEntity" : "LeftNearParentingGrabEntity";
|
||||
nearGrabModule = getEnabledModuleByName(nearGrabName);
|
||||
if (nearGrabModule) {
|
||||
if (nearGrabModule && nearGrabModule.isReady(controllerData)) {
|
||||
return nearGrabModule.isReady(controllerData).active;
|
||||
}
|
||||
nearGrabName = this.hand === RIGHT_HAND ? "RightNearActionGrabEntity" : "LeftNearActionGrabEntity";
|
||||
nearGrabModule = getEnabledModuleByName(nearGrabName);
|
||||
if (nearGrabModule) {
|
||||
if (nearGrabModule && nearGrabModule.isReady(controllerData)) {
|
||||
return nearGrabModule.isReady(controllerData).active;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue