This commit is contained in:
Sam El-Husseini 2018-01-04 14:09:10 -08:00
parent 5aef77ccc6
commit f3f87331c8

View File

@ -17,7 +17,7 @@ namespace pxsim.visuals {
if (!motorState) return;
const syncedMotor = motorState.getSynchedMotor();
if ((syncedMotor != undefined || this.syncedMotor != undefined) && syncedMotor != this.syncedMotor) {
if ((syncedMotor || this.syncedMotor) && syncedMotor != this.syncedMotor) {
this.syncedMotor = syncedMotor;
this.showSyncedLabel(motorState, syncedMotor);
}