PDT: Ensure Reset View resets distance correctly

This commit is contained in:
Alan Odom 2020-01-11 12:49:22 +00:00 committed by Rune Morling
parent 71c8fa1712
commit 1f39f4234a
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ class PDT_OT_Reset3DView(Operator):
# Otherwise, the view matrix needs to be reset (includes distance).
debug(f"view_matrix before reset:\n{view.view_matrix}")
view.view_matrix = default_view_matrix
view.view_distance = default_view_distance
view.update()
debug(f"view_matrix AFTER reset:\n{view.view_matrix}")