mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-12 16:53:07 +00:00
removed some left over stuff
This commit is contained in:
parent
d34c7739fb
commit
fb826995ca
|
@ -159,7 +159,7 @@ func draw_move(pos: Vector2i) -> void:
|
|||
selection_node.big_bounding_rectangle.position - prev_pos
|
||||
)
|
||||
pos = pos.snapped(Global.grids[0].grid_size)
|
||||
var grid_offset: Vector2i = Global.grids[0].grid_offset
|
||||
var grid_offset := Global.grids[0].grid_offset
|
||||
grid_offset = Vector2i(
|
||||
fmod(grid_offset.x, Global.grids[0].grid_size.x),
|
||||
fmod(grid_offset.y, Global.grids[0].grid_size.y)
|
||||
|
|
|
@ -40,7 +40,6 @@ func _draw_cartesian_grid(grid_index: int, target_rect: Rect2i) -> void:
|
|||
+ fposmod(grid.grid_offset.x - target_rect.position.x, grid.grid_size.x)
|
||||
)
|
||||
while x <= target_rect.end.x:
|
||||
# Check if the exact line has been added before
|
||||
if not Vector2(x, target_rect.position.y) in unique_rect_lines:
|
||||
grid_multiline_points.push_back(Vector2(x, target_rect.position.y))
|
||||
grid_multiline_points.push_back(Vector2(x, target_rect.end.y))
|
||||
|
@ -51,7 +50,6 @@ func _draw_cartesian_grid(grid_index: int, target_rect: Rect2i) -> void:
|
|||
+ fposmod(grid.grid_offset.y - target_rect.position.y, grid.grid_size.y)
|
||||
)
|
||||
while y <= target_rect.end.y:
|
||||
# Check if the exact line has been added before
|
||||
if not Vector2(target_rect.position.x, y) in unique_rect_lines:
|
||||
grid_multiline_points.push_back(Vector2(target_rect.position.x, y))
|
||||
grid_multiline_points.push_back(Vector2(target_rect.end.x, y))
|
||||
|
|
Loading…
Reference in a new issue