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.
1 parent c29c0c1 commit 439f9daCopy full SHA for 439f9da
addons/block_code/ui/picker/categories/category_factory.gd
@@ -490,7 +490,7 @@ static func get_general_blocks() -> Array[Block]:
490
b = BLOCKS["parameter_block"].instantiate()
491
b.variant_type = TYPE_VECTOR2
492
b.block_format = "viewport center"
493
- b.statement = "Vector2(%s, %s)" % [viewport_width / 2, viewport_height / 2]
+ b.statement = "get_viewport().get_visible_rect().get_center()"
494
b.category = "Graphics | Viewport"
495
block_list.append(b)
496
0 commit comments