Skip to content

Commit

Permalink
Fix session restore where radial coloring was applied to an empty sur…
Browse files Browse the repository at this point in the history
…face. Bug #17044
  • Loading branch information
tomgoddard committed Mar 10, 2025
1 parent ef3b507 commit 18ec8d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bundles/surface/src/colorgeom.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def value_range(self):

s = self.surface
vertices = s.vertices
if vertices is None or len(vertices) == 0:
return (None, None)
sp = s.scene_position
va = vertices if sp.is_identity() else sp * vertices
v = self.values(va)
Expand Down

0 comments on commit 18ec8d9

Please sign in to comment.