Disable buildingd layouts graph
This commit is contained in:
@@ -345,8 +345,8 @@ void grow_job_queue::create_region_list(
|
||||
while (fe) {
|
||||
Vector<Vector2i> position_candidates;
|
||||
if (positions.empty()) {
|
||||
int target_distance =
|
||||
(int)(Math::sqrt(fe->get().second) * 0.7f) + 1;
|
||||
float dsq = fe->get().second;
|
||||
int target_distance = (int)(Math::sqrt(dsq) * 0.7f) + 1;
|
||||
positions.push_back(current_position);
|
||||
distances.push_back(target_distance);
|
||||
regions.push_back(fe->get().first);
|
||||
|
||||
@@ -320,12 +320,14 @@ void MainTabs::_notification(int which)
|
||||
SceneTree::get_singleton()->get_current_scene());
|
||||
} else
|
||||
building_layouts_editor = nullptr;
|
||||
#if 0
|
||||
BuildingLayoutGraphUI *pv = nullptr;
|
||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||
pv = memnew(BuildingLayoutGraphUI(
|
||||
this, building_layouts_editor));
|
||||
handlers.push_back(pv);
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < (int)(sizeof(items) / sizeof(items[0])); i++) {
|
||||
VBoxContainer *tab = memnew(VBoxContainer);
|
||||
tab->set_name(items[i].title);
|
||||
@@ -616,11 +618,13 @@ void MainTabs::_notification(int which)
|
||||
args_data.size());
|
||||
} break;
|
||||
case 6: {
|
||||
#if 0
|
||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||
assert(pv);
|
||||
pv->setup_layout_tab(tab,
|
||||
items[i].header);
|
||||
}
|
||||
#endif
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user