Skip to content

Commit

Permalink
fix #2311
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Oct 29, 2024
1 parent 8a65b0b commit beaf6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trimesh/viewer/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from .. import rendering
from .trackball import Trackball
from .windowed import SceneViewer, geometry_hash
from .windowed import SceneViewer, _geometry_hash


class SceneGroup(pyglet.graphics.Group):
Expand Down Expand Up @@ -249,7 +249,7 @@ def on_mouse_scroll(self, x, y, dx, dy):
self._draw()

def _update_node(self, node_name, geometry_name, geometry, transform):
geometry_hash_new = geometry_hash(geometry)
geometry_hash_new = _geometry_hash(geometry)
if self.vertex_list_hash.get(geometry_name) != geometry_hash_new:
# if geometry has texture defined convert it to opengl form
if hasattr(geometry, "visual") and hasattr(geometry.visual, "material"):
Expand Down

0 comments on commit beaf6bb

Please sign in to comment.