add brush follow-orientation flag to stroke settings and fix stroke preview
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "node_stroke_preview.h"
|
||||
#include "node_slider.h"
|
||||
#include "brush.h"
|
||||
#include "node_checkbox.h"
|
||||
|
||||
class NodePanelStroke : public Node
|
||||
{
|
||||
@@ -17,11 +18,16 @@ public:
|
||||
NodeSliderH* m_jitter_angle;
|
||||
NodeSliderH* m_jitter_spread;
|
||||
NodeSliderH* m_jitter_flow;
|
||||
NodeCheckBox* m_tip_angle_follow;
|
||||
std::function<void(Node* target)> on_stroke_change;
|
||||
virtual Node* clone_instantiate() const override;
|
||||
virtual void clone_finalize(Node* dest) const override;
|
||||
virtual void init() override;
|
||||
void init_controls();
|
||||
|
||||
void init_slider(NodeSliderH*& slider, const char* id, float ui::Brush::* prop);
|
||||
void handle_slide(float ui::Brush::* prop, Node* target, float value);
|
||||
|
||||
void init_checkbox(NodeCheckBox*& slider, const char* id, bool ui::Brush::* prop);
|
||||
void handle_checkbox(bool ui::Brush::* prop, Node* target, bool value);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user