Skip to content

Reset center when Shift + MMB is used in 3d view #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions material_maker/panels/preview_3d/preview_3d_panel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ func on_right_click():

func _on_PopupMenu_id_pressed(id):
var pivot = get_node("MaterialPreview/Preview3d/ObjectsPivot/Objects")
var cam_control = get_node("MaterialPreview/Preview3d/CameraController")
match id:
0:
pivot.transform.origin = Vector3(0, 0, 0)
cam_control.transform.origin = Vector3(0, 0, 0)
1:
pivot.transform.origin = new_pivot_position

Expand Down