Skip to content

Commit

Permalink
Merge pull request #224 from vpython/fix_radio_bug
Browse files Browse the repository at this point in the history
Fix radio bug
  • Loading branch information
BruceSherwood committed Oct 2, 2022
2 parents 78a640d + 4e58e2f commit 7ebccec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion vpython/vpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class standardAttributes(baseObj):
['red', 'green', 'blue','length', 'width', 'height']],
'points':[['color'],
[],
['visible', 'shininess', 'emissive', 'radius', 'retain', 'pickable', 'size_units'],
['visible', 'opacity', 'shininess', 'emissive', 'radius', 'retain', 'pickable', 'size_units'],
['red', 'green', 'blue']],
'label':[['pos', 'color', 'background', 'linecolor'],
[],
Expand Down Expand Up @@ -1825,12 +1825,15 @@ def process_args(self, *args1, **args):
c = None
r = None
vis = None
op = None
if 'color' in args:
c = args['color']
if 'radius' in args:
r = args['radius']
if 'visible' in args:
vis = args['visible']
if 'opacity' in args:
op = args['opacity']
if len(args1) > 0:
if len(args1) == 1:
tpos = self.parse_pos(args1[0])
Expand Down
2 changes: 1 addition & 1 deletion vpython/vpython_libraries/glow.min.js

Large diffs are not rendered by default.

0 comments on commit 7ebccec

Please sign in to comment.