diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-02-11 20:24:33 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-02-11 20:24:33 +0300 |
commit | 00e74bb22dc201774edfc870ed40fa7965c03113 (patch) | |
tree | fe1aa1614b2bb56c3208fa059ebaa6a443297808 /mesh_snap_utilities_line/snap_context_l | |
parent | f0e2d0e6a21c3391c1b4583764eb921c0eef1480 (diff) |
mesh_snap_utilities_line: Fix ghost objects
Diffstat (limited to 'mesh_snap_utilities_line/snap_context_l')
-rw-r--r-- | mesh_snap_utilities_line/snap_context_l/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh_snap_utilities_line/snap_context_l/__init__.py b/mesh_snap_utilities_line/snap_context_l/__init__.py index 62a39bb3..32b8bf74 100644 --- a/mesh_snap_utilities_line/snap_context_l/__init__.py +++ b/mesh_snap_utilities_line/snap_context_l/__init__.py @@ -371,13 +371,13 @@ class SnapContext(): self.winsize = winsize self._offscreen.resize(*self.winsize) - def clear_snap_objects(self): + def clear_snap_objects(self, clear_offscreen = False): for snap_obj in self.snap_objects: if len(snap_obj.data) == 2: snap_obj.data[1].free() del snap_obj.data[1:] - self.update_drawing(False) + self.update_drawing(clear_offscreen) self.snap_objects.clear() _Internal.gpu_Indices_mesh_cache_clear() |