Disable buildingd layouts graph

This commit is contained in:
2025-03-13 22:47:00 +03:00
parent c7fe27c36e
commit 85900e3ef1
2 changed files with 6 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;
}
}