Almost separated the buildings editor

This commit is contained in:
2024-09-15 23:57:40 +03:00
parent e505c6df0d
commit d5ad5bac8c
11 changed files with 817 additions and 221 deletions

View File

@@ -23,6 +23,7 @@
#include "road_lines_editor.h"
static ImmediateGeometry *line_im = nullptr;
// static ImmediateGeometry *debug_im = nullptr;
static Ref<Material> debug_material;
#define __evhandler(vname, mtype) \
@@ -946,7 +947,9 @@ void RoadLinesEditor::handle_input()
}
void RoadLinesEditor::place_zebras()
{
editor->remove_buildings_by_prefix("zebra");
Array args;
args.push_back("zebra");
editor->editor_command("remove_buildings_by_prefix", args);
/*
func place_zebras():
var road_nodes = SceneComps.get_component("road_nodes2")