Skip to content

Commit

Permalink
Update tutorials/2d/custom_drawing_in_2d.rst
Browse files Browse the repository at this point in the history
Co-authored-by: Raul Santos <raulsntos@gmail.com>
  • Loading branch information
jynus and raulsntos authored Dec 20, 2023
1 parent 4397694 commit 64367ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/2d/custom_drawing_in_2d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ We could draw a dynamic line between those 2 points like this:
public override void _Process(double delta)
{
Vector2 mousePosition = GetViewport().GetMousePosition();
if (mouse_position != point2)
if (mousePosition != _point2)
{
point2 = mouse_position;
QueueRedraw();
Expand Down

0 comments on commit 64367ac

Please sign in to comment.