use mutex to avoid window destroy deadlock, fix vertical slider to increase value upward
This commit is contained in:
@@ -5,9 +5,9 @@ class NodeSliderH : public NodeBorder
|
||||
{
|
||||
bool dragging = false;
|
||||
public:
|
||||
glm::vec2 m_mask{ 1, 0 };
|
||||
glm::vec2 m_value{0};
|
||||
glm::vec2 m_old_value;
|
||||
int m_comp = 0;
|
||||
float m_value = 0;
|
||||
float m_old_value = 0;
|
||||
std::function<void(Node* target, float value)> on_value_changed;
|
||||
std::function<void(Node* target, float value)> on_value_final;
|
||||
virtual Node* clone_instantiate() const override;
|
||||
@@ -24,7 +24,7 @@ class NodeSliderV : public NodeSliderH
|
||||
{
|
||||
public:
|
||||
virtual Node* clone_instantiate() const override { return new NodeSliderV(); }
|
||||
NodeSliderV() { m_mask = { 0, 1 }; }
|
||||
NodeSliderV() { m_comp = 1; }
|
||||
};
|
||||
|
||||
class NodeSliderHue : public NodeSliderV
|
||||
|
||||
Reference in New Issue
Block a user