We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3957b5f + 9aae2bb commit c9ebfb9Copy full SHA for c9ebfb9
addons/block_code/ui/blocks/block/block.gd
@@ -24,7 +24,8 @@ signal modified
24
@export var category: String
25
26
## The next block in the line of execution (can be null if end)
27
-@export var bottom_snap_path: NodePath
+@export var bottom_snap_path: NodePath:
28
+ set = _set_bottom_snap_path
29
30
## The scope of the block (statement of matching entry block)
31
@export var scope: String = ""
@@ -38,8 +39,12 @@ signal modified
38
39
var bottom_snap: SnapPoint
40
41
-func _ready():
42
+func _set_bottom_snap_path(value: NodePath):
43
+ bottom_snap_path = value
44
bottom_snap = get_node_or_null(bottom_snap_path)
45
+
46
47
+func _ready():
48
mouse_filter = Control.MOUSE_FILTER_IGNORE
49
50
0 commit comments