diff options
author | Vladislav <BoomRaccoon> | 2022-05-18 13:56:25 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-06-16 12:03:18 +0300 |
commit | 9d801fca4178a322efeb77e318c7d252d3a6889a (patch) | |
tree | 2986aaa22a656fa016e591615d215151847a0749 | |
parent | e7b7134696f51e5be814a45503c1b93149caf525 (diff) |
Stored Views: Fix error when Lock 'To 3D Cursor' is activev2.93.10
Cursor is part of scene since 2.80
Fixes T81285.
Maniphest Tasks: T81285
Differential Revision: https://developer.blender.org/D9109
-rw-r--r-- | space_view3d_stored_views/core.py | 2 | ||||
-rw-r--r-- | space_view3d_stored_views/stored_views_test.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/space_view3d_stored_views/core.py b/space_view3d_stored_views/core.py index 5360b4bb..43f46d4a 100644 --- a/space_view3d_stored_views/core.py +++ b/space_view3d_stored_views/core.py @@ -90,7 +90,7 @@ class POV(StoredView): view3d.lock_cursor = stored_view.lock_cursor if stored_view.lock_cursor is True: # update cursor only if view is locked to cursor - view3d.cursor_location = stored_view.cursor_location + self.scene.cursor.location = stored_view.cursor_location if stored_view.perspective == "CAMERA": diff --git a/space_view3d_stored_views/stored_views_test.py b/space_view3d_stored_views/stored_views_test.py index 19b2a0ef..a3d64002 100644 --- a/space_view3d_stored_views/stored_views_test.py +++ b/space_view3d_stored_views/stored_views_test.py @@ -164,7 +164,7 @@ class POV(StoredView): view3d.lock_cursor = stored_view.lock_cursor if stored_view.lock_cursor is True: # update cursor only if view is locked to cursor - view3d.cursor_location = stored_view.cursor_location + self.scene.cursor.location = stored_view.cursor_location if stored_view.perspective == "CAMERA": |