We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e84b55 + 8a8c389 commit cc739eaCopy full SHA for cc739ea
vpython/vpython.py
@@ -3788,6 +3788,9 @@ def __init__(self, **args):
3788
args['color'] = self.vecs_to_list(args, 'color')
3789
else:
3790
args['_firstcolor'] = vector(1,1,1)
3791
+ for attr in ['scale', 'xscale', 'yscale', 'twist']:
3792
+ if attr in args and isinstance(args[attr],list) and len(args[attr]) != self._pathlength:
3793
+ raise AttributeError("The "+attr+" list must be the same length as the list of points on the path ("+str(self._pathlength)+").")
3794
3795
super(extrusion, self).setup(args)
3796
0 commit comments