[Bf-extensions-cvs] [9d801fca] blender-v2.93-release: Stored Views: Fix error when Lock 'To 3D Cursor' is active
Vladislav
noreply at git.blender.org
Thu Jun 16 11:12:37 CEST 2022
Commit: 9d801fca4178a322efeb77e318c7d252d3a6889a
Author: Vladislav
Date: Wed May 18 12:56:25 2022 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBA9d801fca4178a322efeb77e318c7d252d3a6889a
Stored Views: Fix error when Lock 'To 3D Cursor' is active
Cursor is part of scene since 2.80
Fixes T81285.
Maniphest Tasks: T81285
Differential Revision: https://developer.blender.org/D9109
===================================================================
M space_view3d_stored_views/core.py
M space_view3d_stored_views/stored_views_test.py
===================================================================
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":
More information about the Bf-extensions-cvs
mailing list