Skip to content

Commit c83d968

Browse files
committed
Block: Set bottom_snap_path when ready
The bottom_snap must be set on ready, regardless of previously setting it. Regression from 9aae2bb Fixes: #172
1 parent def3586 commit c83d968

File tree

1 file changed

+2
-0
lines changed
  • addons/block_code/ui/blocks/block

1 file changed

+2
-0
lines changed

addons/block_code/ui/blocks/block/block.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func _set_bottom_snap_path(value: NodePath):
4545

4646

4747
func _ready():
48+
if bottom_snap == null:
49+
_set_bottom_snap_path(bottom_snap_path)
4850
mouse_filter = Control.MOUSE_FILTER_IGNORE
4951

5052

0 commit comments

Comments
 (0)