Skip to content

Commit f6ad487

Browse files
committed
minor fixes
1 parent 86352b7 commit f6ad487

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

addons/treegraphdrawer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ You can customize how specific nodes behave by setting the following metadata ke
3131
- ``"treegraph_ignore_children"``: set a node's metadata with this key to true to ignore its children while building the tree, effectively treating it and its children as one single node (same effect as setting the ``"treegraph_ignore"`` key to true on all its children).
3232
- ``"treegraph_origin_point"``: set a node's metadata with this key to a ``Vector2`` to manually set its origin point.
3333
- ``"treegraph_no_incoming_lines"``: set a node's metadata with this key to true to avoid drawing connecting lines towards it from its parent.
34-
- ``treegraph_no_outgoing_lines``: set a node's metadata with this key to true to avoid drawing connecting lines from it to its children.
35-
- ``treegraph_lines_start_point``: set a node's metadata with this key to a ``Vector2`` to manually set the point from where connecting lines start.
36-
- ``treegraph_lines_end_point``: set a node's metadata with this key to a ``Vector2`` to manually set the point where connecting lines end.
34+
- ``"treegraph_no_outgoing_lines"``: set a node's metadata with this key to true to avoid drawing connecting lines from it to its children.
35+
- ``"treegraph_lines_start_point"``: set a node's metadata with this key to a ``Vector2`` to manually set the point from where connecting lines start.
36+
- ``"treegraph_lines_end_point"``: set a node's metadata with this key to a ``Vector2`` to manually set the point where connecting lines end.
3737

3838
If a node is an instance of a scene file, the tree will ignore all of its children by default, treating it as a single tree node. To avoid this, set it as an editable instance (check "Editable Children" in the editor or use [``Node.set_editable_instance()``](https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method-set-editable-instance) in a script).
3939

addons/treegraphdrawer/tree_graph_drawer.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ enum LineShape {
123123
lines_shape = value
124124
draw_tree_lines()
125125

126-
const _OFFSET_KEY := &"treegraph_ws_offset"
127-
const _POS_KEY := &"treegraph_tree_position"
126+
const _OFFSET_KEY := &"_treegraph_ws_offset"
127+
const _POS_KEY := &"_treegraph_tree_position"
128128
const _LINE_KEY := &"_treegraph_line"
129129
var _lines: Array[Line2D] = []
130130

0 commit comments

Comments
 (0)