File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
plugins/robots/common/twoDModel/src/engine/view Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -520,9 +520,13 @@ void TwoDModelWidget::loadWorldModelWithoutRobot()
520520 }
521521
522522 // TODO: Split saves and remove temporary hack
523- auto saveRoot = save.firstChildElement (" root" );
524- auto currentRoot = generateWorldModelXml ().firstChildElement (" root" );
525- saveRoot.replaceChild (currentRoot.firstChildElement (" robots" ), saveRoot.firstChildElement (" robots" ));
523+ auto saveRobot = save.firstChildElement (" root" ).firstChildElement (" robots" ).firstChildElement (" robot" );
524+ auto currentRobot = generateWorldModelXml ().firstChildElement (" root" )
525+ .firstChildElement (" robots" ).firstChildElement (" robot" );
526+
527+ saveRobot.replaceChild (saveRobot.firstChildElement (" sensors" ), currentRobot.firstChildElement (" sensors" ));
528+ saveRobot.replaceChild (saveRobot.firstChildElement (" wheels" ), currentRobot.firstChildElement (" wheels" ));
529+ saveRobot.setAttribute (" id" , currentRobot.attribute (" id" ));
526530
527531 auto command = new commands::LoadWorldCommand (*this , save);
528532 if (mController ) {
Original file line number Diff line number Diff line change 734734 <translation type =" unfinished" ></translation >
735735 </message >
736736 <message >
737- <location line =" +334 " />
737+ <location line =" +338 " />
738738 <source >Hide details</source >
739739 <translation type =" unfinished" ></translation >
740740 </message >
Original file line number Diff line number Diff line change 10851085 <translation type =" vanished" >Попытка загрузить слишком большое изображение может заморозить выполнение на некоторое время. Продолжить?</translation >
10861086 </message >
10871087 <message >
1088- <location line =" +334 " />
1088+ <location line =" +338 " />
10891089 <source >Hide details</source >
10901090 <translation >Скрыть детали</translation >
10911091 </message >
You can’t perform that action at this time.
0 commit comments