Skip to content

Commit b185888

Browse files
committed
fix: typo in ocpacity, variable overwritten
1 parent fbab29b commit b185888

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wakis/gridFIT3D.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,12 @@ def plot_solids(self, bounding_box=False, anti_aliasing=None,
257257
except:
258258
color = self.stl_colors[key] # specifies color e.g. 'tab:red'
259259

260-
if self.stl_colors[key] == 'vacuum' or self.stl_material[key] == 'vacuum':
261-
opacity = 0.3
260+
if self.stl_colors[key] == 'vacuum' or self.stl_materials[key] == 'vacuum':
261+
_opacity = 0.3
262262
else:
263-
opacity = opacity
263+
_opacity = opacity
264264
pl.add_mesh(self.read_stl(key), color=color,
265-
opacity=opacity, specular=specular, smooth_shading=True,
265+
opacity=_opacity, specular=specular, smooth_shading=True,
266266
**kwargs)
267267

268268
pl.set_background('mistyrose', top='white')

0 commit comments

Comments
 (0)