Merge pull request #1978 from 3b1b/type-error-fix

Possible fix for a type error
This commit is contained in:
Grant Sanderson 2023-01-31 14:22:15 -08:00 committed by GitHub
commit e8302e6025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1321,7 +1321,10 @@ class VMobject(Mobject):
names = list(stroke_names)
names[names.index('stroke_rgba')] = 'fill_rgba'
names[names.index('stroke_width')] = 'fill_border_width'
border_stroke_data = submob.data[names]
border_stroke_data = submob.data[names].astype(
self.stroke_shader_wrapper.vert_data.dtype
)
print(border_stroke_data.dtype)
fill_border_datas.append(border_stroke_data)
fill_border_datas.append(border_stroke_data[-1:])