Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mesh_snap_utilities_line/snap_context_l/__init__.py')
-rw-r--r--mesh_snap_utilities_line/snap_context_l/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mesh_snap_utilities_line/snap_context_l/__init__.py b/mesh_snap_utilities_line/snap_context_l/__init__.py
index c4b03156..86e2f19c 100644
--- a/mesh_snap_utilities_line/snap_context_l/__init__.py
+++ b/mesh_snap_utilities_line/snap_context_l/__init__.py
@@ -33,6 +33,7 @@ class _Internal:
gpu_Indices_restore_state,
gpu_Indices_use_clip_planes,
gpu_Indices_set_ProjectionMatrix,
+ gpu_Indices_mesh_cache_clear,
)
from .utils_projection import (
@@ -294,6 +295,10 @@ class SnapContext():
## PUBLIC ##
+ def clear_snap_objects(self):
+ self.snap_objects.clear()
+ _Internal.gpu_Indices_mesh_cache_clear()
+
def update_all(self):
self.drawn_count = 0
self._offset_cur = 1