save camera settings on selection to avoid different result when re-projecting the selection 2d screen points transformation (does not compile because of canvas.h cyclic dependency)
This commit is contained in:
@@ -3,11 +3,12 @@
|
||||
#include "shape.h"
|
||||
#include "brush.h"
|
||||
#include "texture.h"
|
||||
#include "canvas.h"
|
||||
#include <poly2tri.h>
|
||||
|
||||
NS_START
|
||||
class Canvas;
|
||||
NS_END
|
||||
// NS_START
|
||||
// class Canvas;
|
||||
// NS_END
|
||||
|
||||
class CanvasMode
|
||||
{
|
||||
@@ -122,6 +123,7 @@ class CanvasModeMaskFree : public CanvasMode
|
||||
bool m_dragging = false;
|
||||
std::vector<vertex_t> m_points;
|
||||
std::vector<glm::vec2> m_points2d;
|
||||
struct ui::CameraData m_selection_cam;
|
||||
public:
|
||||
virtual void on_Draw(const glm::mat4& ortho, const glm::mat4& proj, const glm::mat4& camera) override;
|
||||
virtual void on_MouseEvent(MouseEvent* me, glm::vec2& loc) override;
|
||||
|
||||
Reference in New Issue
Block a user