Stored Views "AttributeError: SpaceView3D object has no attribute 'cursor_location'" #81285

Closed
opened 2020-09-29 09:22:14 +02:00 by Vladislav · 15 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: blender/blender@3e85bb34d0
Worked: (newest version of Blender that worked as expected)

Short description of error
Using the 'Stored Views' addon and having 'Lock To 3D Cursor' enabled will throw this error
I think's an easy fix but I'm to dumb.

Exact steps for others to reproduce the error
Enable 'Lock To 3D Cursor' while using the addon
Save a new view
Load the saved view
Error is displayed
grafik.png

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `blender/blender@3e85bb34d0` Worked: (newest version of Blender that worked as expected) **Short description of error** Using the 'Stored Views' addon and having 'Lock To 3D Cursor' enabled will throw this error I think's an easy fix but I'm to dumb. **Exact steps for others to reproduce the error** Enable 'Lock To 3D Cursor' while using the addon Save a new view Load the saved view Error is displayed ![grafik.png](https://archive.blender.org/developer/F8935088/grafik.png)
Author

Added subscriber: @BoomRaccoon

Added subscriber: @BoomRaccoon

#97179 was marked as duplicate of this issue

#97179 was marked as duplicate of this issue
Author

Guess I fixed it. In 'Blender\2.90\scripts\addons\space_view3d_stored_views\core.py' on line 93

changed

view3d.cursor_location = stored_view.cursor_location

to

self.scene.cursor.location = stored_view.cursor_location

Now I have to figure out how to submit the fix.

Guess I fixed it. In 'Blender\2.90\scripts\addons\space_view3d_stored_views\core.py' on line 93 changed ``` view3d.cursor_location = stored_view.cursor_location ``` to ``` self.scene.cursor.location = stored_view.cursor_location ``` Now I have to figure out how to submit the fix.
Author

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Vladislav was assigned by Philipp Oeser 2020-09-30 14:01:59 +02:00
Member

Thx for the fix, looks good!

Now I have to figure out how to submit the fix.

Please have a read over these docs
https://wiki.blender.org/wiki/Process/Contributing_Code
https://wiki.blender.org/wiki/Tools/CodeReview

Basically, boils down to submitting a diff here https://developer.blender.org/differential/diff/create/ (or use arcanist as described in the docs)

In the description, you could mention something like:

Cursor was removed from 3DView in blender/blender@7493848008, from then on, the scene cursor is used.

If you have created a diff, you can add me as a reviewer there.

Thx for the fix, looks good! > Now I have to figure out how to submit the fix. Please have a read over these docs https://wiki.blender.org/wiki/Process/Contributing_Code https://wiki.blender.org/wiki/Tools/CodeReview Basically, boils down to submitting a diff here https://developer.blender.org/differential/diff/create/ (or use arcanist as described in the docs) In the description, you could mention something like: > Cursor was removed from 3DView in blender/blender@7493848008, from then on, the scene cursor is used. If you have created a diff, you can add me as a reviewer there.

Added subscriber: @Raimund58

Added subscriber: @Raimund58

Added subscriber: @emen7

Added subscriber: @emen7

The "Stored Views" error message still appeared for me in 3.1.1. I applied the mentioned fix, and it did eliminate the error message.

The "Stored Views" error message still appeared for me in 3.1.1. I applied the mentioned fix, and it did eliminate the error message.
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Sorry this slipped under the radar for so long, will check again

Sorry this slipped under the radar for so long, will check again

This issue was referenced by 9d801fca41

This issue was referenced by 9d801fca4178a322efeb77e318c7d252d3a6889a

This issue was referenced by 0f6fa4644a

This issue was referenced by 0f6fa4644a8b0f677a3550df3203d470a963a818
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#81285
No description provided.