From e9ef6f9815948cb0cad9efdb399f0a4a15192284 Mon Sep 17 00:00:00 2001 From: Jummit Date: Sun, 19 Jul 2020 19:11:02 +0200 Subject: Refactor GraphEdit connections Remove duplicate bezier code and use Curve instead. Add an overridable method for retrieving the points of a connection line, which makes it posible to create custom connections lines. --- doc/classes/GraphEdit.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc') diff --git a/doc/classes/GraphEdit.xml b/doc/classes/GraphEdit.xml index 907cf8587d..a3759a51dd 100644 --- a/doc/classes/GraphEdit.xml +++ b/doc/classes/GraphEdit.xml @@ -10,6 +10,14 @@ + + + + + + Virtual method which can be overridden to customize how connections are drawn. + + @@ -64,6 +72,14 @@ Removes the connection between the [code]from_port[/code] slot of the [code]from[/code] GraphNode and the [code]to_port[/code] slot of the [code]to[/code] GraphNode. If the connection does not exist, no connection is removed. + + + + + + Returns the points which would make up a connection between [code]from[/code] and [code]to[/code]. + + -- cgit v1.2.3