|
@@ -3048,7 +3048,7 @@ void MainWindow::onClickRoadContact()
|
|
|
if(ntype1 == 0)
|
|
|
pLS = p2->GetLaneSection(0);
|
|
|
else
|
|
|
- pLS = p2->GetLaneSection(p1->GetLaneSectionCount()-1);
|
|
|
+ pLS = p2->GetLaneSection(p2->GetLaneSectionCount()-1);
|
|
|
int i;
|
|
|
for(i=0;i<pLS->GetLaneCount();i++)
|
|
|
{
|
|
@@ -3649,6 +3649,12 @@ void MainWindow::onClickCreateRoad()
|
|
|
mbRefresh = true;
|
|
|
update();
|
|
|
|
|
|
+ if(mpCBViewMode->currentIndex() == 1)
|
|
|
+ {
|
|
|
+ UpdateScene();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
mpfb->SetOpenDrive(mxodr);
|
|
|
|
|
|
}
|