Vertex snapping at world origin when using 'Snap_Utilities_Line' add-on #89810

Closed
opened 2021-07-12 11:58:18 +02:00 by Chaowei Ding · 8 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89

Blender Version
Broken: version: 2.93.2 Release Candidate, branch: master, commit date: 2021-07-07 05:52, hash: blender/blender@9e64fd461a
Worked: (newest version of Blender that worked as expected)

Short description of error
[Disable 'Show Gizmo'] Whatever you do, you create a vertex at the origin.

Exact steps for others to reproduce the error

  1. File>New>General.
  2. Preferences>Addons>Enable Addon 'Snap_Utilities_Line'.
  3. Select default cube>switch to Edit Mode> disable 'Show Gizmo'>switch to Object Mode.
  4. Select default cube>switch to Edit Mode> Enable 'Make Line'> Click the left mouse button in the 3D Viewport.
  5. Whatever you do, you create a vertex at the origin.
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89 **Blender Version** Broken: version: 2.93.2 Release Candidate, branch: master, commit date: 2021-07-07 05:52, hash: `blender/blender@9e64fd461a` Worked: (newest version of Blender that worked as expected) **Short description of error** [Disable 'Show Gizmo'] Whatever you do, you create a vertex at the origin. **Exact steps for others to reproduce the error** 1. File>New>General. 2. Preferences>Addons>Enable Addon 'Snap_Utilities_Line'. 3. Select default cube>switch to Edit Mode> disable 'Show Gizmo'>switch to Object Mode. 4. Select default cube>switch to Edit Mode> Enable 'Make Line'> Click the left mouse button in the 3D Viewport. 5. Whatever you do, you create a vertex at the origin.
Author

Added subscriber: @Dayar

Added subscriber: @Dayar
Member

Added subscribers: @mano-wii, @PratikPB2123

Added subscribers: @mano-wii, @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm the 2nd issue but not able to recreate the first. Please make sure to report one issue in each report. I rather create separate reports for every issue :)

@mano-wii , can you take a look at this?

traceback of 2nd issue

File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\op_line.py", line 289, in modal
self.snap_obj, self.prevloc, self.location, self.type, self.bm, self.geom, self.len = snap_utilities(
File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 190, in snap_utilities
snp_obj, loc, elem, elem_co, view_vector, orig, bm, bm_geom = get_snap_bm_geom(sctx, main_snap_obj, mcursor)
File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 104, in get_snap_bm_geom
r_snp_obj, r_loc, r_elem, r_elem_co = sctx.snap_get(mcursor, main_snap_obj)
File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\snap_context_l_init_.py", line 480, in snap_get
snap_obj, index = self.get_nearest_index(mval)
File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\snap_context_l_init
.py", line 184, in _get_nearest_index
rect = ((max(0, loc_curr[0] - self.threshold), min(self._snap_buffer.dimensions[0], loc_curr[0] + self.threshold)),

AttributeError: 'NoneType' object has no attribute 'dimensions'

location: <unknown location>:-1

Can confirm the 2nd issue but not able to recreate the first. Please make sure to report one issue in each report. I rather create separate reports for every issue :) @mano-wii , can you take a look at this? **traceback of 2nd issue** ```Python: Traceback (most recent call last): ``` File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\op_line.py", line 289, in modal self.snap_obj, self.prevloc, self.location, self.type, self.bm, self.geom, self.len = snap_utilities( File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 190, in snap_utilities snp_obj, loc, elem, elem_co, view_vector, orig, bm, bm_geom = get_snap_bm_geom(sctx, main_snap_obj, mcursor) File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\common_utilities.py", line 104, in get_snap_bm_geom r_snp_obj, r_loc, r_elem, r_elem_co = sctx.snap_get(mcursor, main_snap_obj) File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\snap_context_l\__init__.py", line 480, in snap_get snap_obj, index = self._get_nearest_index(mval) File "D:\BF_daily_build\2.93.0\blender-2.93.2-candidate+v293.03d5c8b4edf4-windows.amd64-release\2.93\scripts\addons\mesh_snap_utilities_line\snap_context_l\__init__.py", line 184, in _get_nearest_index rect = ((max(0, loc_curr[0] - self.threshold), min(self._snap_buffer.dimensions[0], loc_curr[0] + self.threshold)), ``` AttributeError: 'NoneType' object has no attribute 'dimensions' location: <unknown location>:-1 ```
Author

Ok,I will report the first one again.

Ok,I will report the first one again.
Member

Ok,I will report the first one again.

Thanks, I will clean the BUG01 data from this task description :)

>Ok,I will report the first one again. Thanks, I will clean the BUG01 data from this task description :)
Pratik Borhade changed title from BUGs of community addon 'Snap_Utilities_Line' to Vertex snapping at world origin when using 'Snap_Utilities_Line' add-on 2021-07-12 12:21:07 +02:00

This issue was referenced by 8ee9bd5d63

This issue was referenced by 8ee9bd5d633f2cb1006e108d47a49457e7561c84

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Germano Cavalcante self-assigned this 2021-07-14 19:04:16 +02:00
Sign in to join this conversation.
No Milestone
No project
4 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#89810
No description provided.