Bugfix: fix bounding box computation by reinitializing bbox when updating model.
This commit is contained in:
@@ -346,6 +346,7 @@ void grbl::program_renderer::initialize_program_buffers() {
|
||||
GLsizei grbl::program_renderer::update_model_vbo(const grbl::program &pgm) {
|
||||
if (!pgm.is_loaded) return 0;
|
||||
|
||||
min_pos = max_pos = glm::vec3(0);
|
||||
/*
|
||||
static auto movement_re = std::regex(R"(([gG]0*1?\s+|[xXyYzZ]\s*[0-9\.\-]+))");
|
||||
bool is_tool_on = false;
|
||||
|
||||
Reference in New Issue
Block a user