Skip to content

Commit

Permalink
Merge pull request #157 from endlessm/T35573-snappoint-tests
Browse files Browse the repository at this point in the history
Block: Add setter to manage bottom_snap
  • Loading branch information
manuq committed Jul 24, 2024
2 parents 3957b5f + 9aae2bb commit c9ebfb9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions addons/block_code/ui/blocks/block/block.gd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ signal modified
@export var category: String

## The next block in the line of execution (can be null if end)
@export var bottom_snap_path: NodePath
@export var bottom_snap_path: NodePath:
set = _set_bottom_snap_path

## The scope of the block (statement of matching entry block)
@export var scope: String = ""
Expand All @@ -38,8 +39,12 @@ signal modified
var bottom_snap: SnapPoint


func _ready():
func _set_bottom_snap_path(value: NodePath):
bottom_snap_path = value
bottom_snap = get_node_or_null(bottom_snap_path)


func _ready():
mouse_filter = Control.MOUSE_FILTER_IGNORE


Expand Down

0 comments on commit c9ebfb9

Please sign in to comment.