diff --git a/src/app_vr.cpp b/src/app_vr.cpp index ad81a54..3441d49 100644 --- a/src/app_vr.cpp +++ b/src/app_vr.cpp @@ -224,7 +224,7 @@ void App::vr_draw(const glm::mat4& proj, const glm::mat4& camera, const glm::mat // draw the cursor { - auto cur = (glm::vec2(cursor.x / width, 1.f - cursor.y / height) - 0.5f) * 2.f; + auto cur = (glm::vec2(cursor.x / width * zoom, 1.f - cursor.y / height * zoom) - 0.5f) * 2.f; auto mvp = proj * camera * glm::scale(glm::vec3(100)) * glm::transpose(canvas->m_canvas->m_cam_rot) * diff --git a/src/node_panel_stroke.cpp b/src/node_panel_stroke.cpp index bf0ca30..0d09774 100644 --- a/src/node_panel_stroke.cpp +++ b/src/node_panel_stroke.cpp @@ -85,6 +85,8 @@ bool NodePanelStroke::import_abr(const std::string& path) async_update(); async_end(); }); + m_brush_popup->save(); + parallel_for(abr.m_patterns.size(), [&](size_t i) //for (const auto& patt : abr.m_patterns) { @@ -116,6 +118,8 @@ bool NodePanelStroke::import_abr(const std::string& path) async_update(); async_end(); }); + m_pattern_popup->save(); + auto brushes = abr.compute_brushes(App::I.data_path); for (const auto& pr : brushes) {