Corrected typo in role name search filter. Removed commented out debug print

This commit is contained in:
rick@ghostpunch.com 2017-07-20 15:26:12 -04:00
parent 8cf60df5b0
commit cc0ed9ead4

View file

@ -122,7 +122,7 @@
this.rolesToOverride = function() {
return MyAvatar.getAnimationRoles().filter(function(role) {
return role === "right" || role.startsWith("left");
return !(role === "right" && role.startsWith("left"));
});
}
@ -132,7 +132,6 @@
print("Sitter's model has FINISHED changing. Reapply anim role overrides.");
var roles = this.rolesToOverride();
for (i in roles) {
//print("Overriding role animation " + roles[i]);
MyAvatar.overrideRoleAnimation(roles[i], ANIMATION_URL, ANIMATION_FPS, true, ANIMATION_FIRST_FRAME, ANIMATION_LAST_FRAME);
}
}