Skip to content

Commit 439f9da

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 c29c0c1 commit 439f9da

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
@@ -490,7 +490,7 @@ static func get_general_blocks() -> Array[Block]:
490490
b = BLOCKS["parameter_block"].instantiate()
491491
b.variant_type = TYPE_VECTOR2
492492
b.block_format = "viewport center"
493-
b.statement = "Vector2(%s, %s)" % [viewport_width / 2, viewport_height / 2]
493+
b.statement = "get_viewport().get_visible_rect().get_center()"
494494
b.category = "Graphics | Viewport"
495495
block_list.append(b)
496496

0 commit comments

Comments
 (0)