Skip to content

Commit 296dacb

Browse files
committed
Fix a stupid bug
1 parent 3008074 commit 296dacb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/robots/common/twoDModel/src/engine/model/robotModel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,10 @@ void RobotModel::deserializeWheels(const QDomElement &robotElement)
640640
}
641641
const auto &leftPortInfo = PortInfo::fromString(wheels.attribute("left"));
642642
const auto &rightPortInfo = PortInfo::fromString(wheels.attribute("right"));
643-
setMotorPortOnWheel(WheelEnum::left, leftPortInfo);
644-
setMotorPortOnWheel(WheelEnum::right, rightPortInfo);
645643
mAliasConfiguration->addAliases(leftPortInfo);
646644
mAliasConfiguration->addAliases(rightPortInfo);
645+
setMotorPortOnWheel(WheelEnum::left, leftPortInfo);
646+
setMotorPortOnWheel(WheelEnum::right, rightPortInfo);
647647
}
648648

649649
twoDModel::items::StartPosition *RobotModel::startPositionMarker()

0 commit comments

Comments
 (0)