You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Use get_cursor_shape for identifying the cursor shape in AnimationNodeStateMachineEditor
get_cursor_shape() is used in cases where a Control displays different cursors in different areas. There is no need to set the default cursor shape on every mouse move event. Fix minor issue with selection order.
This commit is contained in:
@@ -138,7 +138,6 @@ class AnimationNodeStateMachineEditor : public AnimationTreeNodeEditorPlugin {
|
||||
StringName selected_transition_from;
|
||||
StringName selected_transition_to;
|
||||
|
||||
bool over_text;
|
||||
StringName over_node;
|
||||
int over_node_what;
|
||||
|
||||
@@ -185,6 +184,7 @@ public:
|
||||
static AnimationNodeStateMachineEditor *get_singleton() { return singleton; }
|
||||
virtual bool can_edit(const Ref<AnimationNode> &p_node) override;
|
||||
virtual void edit(const Ref<AnimationNode> &p_node) override;
|
||||
virtual CursorShape get_cursor_shape(const Point2 &p_pos) const override;
|
||||
AnimationNodeStateMachineEditor();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user