[Bf-extensions-cvs] [97277eca] master: Fix T103356: 'NoneType' object has no attribute 'is_valid'
Germano Cavalcante
noreply at git.blender.org
Tue Dec 20 16:03:07 CET 2022
Commit: 97277ecacb379a02240fde40a1ceadb303cd3b84
Author: Germano Cavalcante
Date: Tue Dec 20 12:02:05 2022 -0300
Branches: master
https://developer.blender.org/rBA97277ecacb379a02240fde40a1ceadb303cd3b84
Fix T103356: 'NoneType' object has no attribute 'is_valid'
`self.geom` can be `None` even with `self.bm`
===================================================================
M mesh_snap_utilities_line/__init__.py
M mesh_snap_utilities_line/widgets.py
===================================================================
diff --git a/mesh_snap_utilities_line/__init__.py b/mesh_snap_utilities_line/__init__.py
index 7a4653fc..ae5cb5ba 100644
--- a/mesh_snap_utilities_line/__init__.py
+++ b/mesh_snap_utilities_line/__init__.py
@@ -6,7 +6,7 @@
bl_info = {
"name": "Snap_Utilities_Line",
"author": "Germano Cavalcante",
- "version": (6, 7, 0),
+ "version": (6, 7, 1),
"blender": (3, 2, 0),
"location": "View3D > TOOLS > Line Tool",
"description": "Extends Blender Snap controls",
diff --git a/mesh_snap_utilities_line/widgets.py b/mesh_snap_utilities_line/widgets.py
index 12e9d189..6f3c1565 100644
--- a/mesh_snap_utilities_line/widgets.py
+++ b/mesh_snap_utilities_line/widgets.py
@@ -27,7 +27,7 @@ class SnapWidgetCommon(SnapUtilities, bpy.types.Gizmo):
cls.snap_to_update = depsgraph.id_type_updated('MESH') or depsgraph.id_type_updated('OBJECT')
def draw_point_and_elem(self):
- if self.bm:
+ if self.bm and self.geom:
if self.bm.is_valid and self.geom.is_valid:
self.draw_cache.draw_elem(self.snap_obj, self.bm, self.geom)
else:
More information about the Bf-extensions-cvs
mailing list