change brush size based on camera fov / zoom, refactor brush value curves

This commit is contained in:
2017-09-30 20:30:46 +01:00
parent 964795b44d
commit 4b49772af8
5 changed files with 19 additions and 10 deletions

View File

@@ -22,12 +22,14 @@ public:
NodeCheckBox* m_tip_flow_pressure;
NodeCheckBox* m_tip_size_pressure;
std::function<void(Node* target)> on_stroke_change;
std::map<NodeSliderH*, std::function<float(float)>> m_curves;
virtual Node* clone_instantiate() const override;
virtual void clone_finalize(Node* dest) const override;
virtual void init() override;
void init_controls();
void set_params(const ui::Brush& b);
void init_slider(NodeSliderH*& slider, const char* id, float ui::Brush::* prop);
void handle_slide(float ui::Brush::* prop, Node* target, float value);