1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Add Drag&Drop to ShaderGraphEditor's texture uniform graph node.

This commit is contained in:
MarianoGNU
2016-05-19 17:38:06 -03:00
parent a0dd7ec171
commit 5eaf0bcc20
2 changed files with 110 additions and 1 deletions

View File

@@ -116,7 +116,7 @@ public:
GraphCurveMapEdit();
};
class ShaderGraphView : public Node {
class ShaderGraphView : public Control {
OBJ_TYPE(ShaderGraphView,Node);
@@ -181,6 +181,10 @@ class ShaderGraphView : public Node {
void _curve_changed(int p_id,Node* p_curve);
void _sg_updated();
Map<int,GraphNode*> node_map;
Variant get_drag_data_fw(const Point2& p_point,Control* p_from);
bool can_drop_data_fw(const Point2& p_point,const Variant& p_data,Control* p_from) const;
void drop_data_fw(const Point2& p_point,const Variant& p_data,Control* p_from);
protected:
void _notification(int p_what);
static void _bind_methods();