Skip to content

Commit c29c0c1

Browse files
manuqwnbaum
andcommitted
Update addons/block_code/ui/picker/categories/category_factory.gd
Co-authored-by: wnbaum <42101167+wnbaum@users.noreply.github.com>
1 parent 8c3ad65 commit c29c0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/block_code/ui/picker/categories/category_factory.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static func get_general_blocks() -> Array[Block]:
483483
b = BLOCKS["parameter_block"].instantiate()
484484
b.variant_type = TYPE_INT
485485
b.block_format = "viewport height"
486-
b.statement = "%s" % viewport_height
486+
b.statement = "get_viewport().get_visible_rect().size.y"
487487
b.category = "Graphics | Viewport"
488488
block_list.append(b)
489489

0 commit comments

Comments
 (0)