Now line buildings save/load works
This commit is contained in:
@@ -657,11 +657,14 @@ void RoadLinesEditor::update_line_geometry()
|
||||
}
|
||||
line_im->end();
|
||||
}
|
||||
// FIXME: update line segments on load and when line is changed
|
||||
rld->update_line_segments(current_line);
|
||||
if (rld->lines[current_line].buildings.size() > 1) {
|
||||
line_im->begin(Mesh::PRIMITIVE_LINES);
|
||||
for (i = 0;
|
||||
i < (int)rld->lines[current_line].buildings.size();
|
||||
i++) {
|
||||
print_line("idx: " + itos(i));
|
||||
const RoadLinesData::line_building_data &b =
|
||||
rld->lines[current_line].buildings[i];
|
||||
Vector3 pt = rld->get_point_by_offsets(
|
||||
@@ -673,6 +676,7 @@ void RoadLinesEditor::update_line_geometry()
|
||||
Vector3(0.0f, 5.0f, 0.0f));
|
||||
line_im->add_vertex(pt +
|
||||
Vector3(0.0f, 15.0f, 0.0f));
|
||||
print_line("idx: " + itos(i) + " done");
|
||||
}
|
||||
line_im->end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user