mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 19:07:51 +02:00
Update sit script in the repo
This commit is contained in:
parent
38a955b886
commit
c0da0cb439
1 changed files with 5 additions and 5 deletions
|
@ -12,9 +12,9 @@
|
||||||
Script.include("/~/system/libraries/utils.js");
|
Script.include("/~/system/libraries/utils.js");
|
||||||
if (!String.prototype.startsWith) {
|
if (!String.prototype.startsWith) {
|
||||||
String.prototype.startsWith = function(searchString, position){
|
String.prototype.startsWith = function(searchString, position){
|
||||||
position = position || 0;
|
position = position || 0;
|
||||||
return this.substr(position, searchString.length) === searchString;
|
return this.substr(position, searchString.length) === searchString;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var SETTING_KEY = "com.highfidelity.avatar.isSitting";
|
var SETTING_KEY = "com.highfidelity.avatar.isSitting";
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
|
|
||||||
this.rolesToOverride = function() {
|
this.rolesToOverride = function() {
|
||||||
return MyAvatar.getAnimationRoles().filter(function(role) {
|
return MyAvatar.getAnimationRoles().filter(function(role) {
|
||||||
return role === "fly" || role.startsWith("inAir");
|
return !(role.startsWith("right") || role.startsWith("left"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@
|
||||||
}
|
}
|
||||||
this.cleanupOverlay();
|
this.cleanupOverlay();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.clickDownOnEntity = function (id, event) {
|
this.clickDownOnEntity = function (id, event) {
|
||||||
if (isInEditMode()) {
|
if (isInEditMode()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue