Skip to content

Commit

Permalink
Menu fix in 2D preview
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Oct 9, 2023
1 parent 57e5fb3 commit 75a87f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion material_maker/panels/preview_2d/preview_2d_node.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ func _ready() -> void:
func _on_gui_input(event) -> void:
if event is InputEventMouseButton:
if event.pressed and event.button_index == MOUSE_BUTTON_RIGHT:
$ContextMenu.popup(Rect2(get_global_mouse_position(), $ContextMenu.get_minimum_size()))
$ContextMenu.popup(Rect2(get_global_mouse_position(), Vector2(0, 0)))

0 comments on commit 75a87f2

Please sign in to comment.