diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-26 00:06:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-26 00:06:05 +0300 |
commit | 1d8ba9d6184bf0e1e1e8fb7b8f41ec74b6ed39f8 (patch) | |
tree | 9904c435268a2ea9dd0337af4e4f73576908b7bf /release/scripts/modules | |
parent | b445d57ccf4b6d58197432098d48224f04dab6cf (diff) |
PyAPI: Make GPUVertFormat() argument optional
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/gpu_extras/presets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/gpu_extras/presets.py b/release/scripts/modules/gpu_extras/presets.py index 444e3ea24d0..ad623c456e0 100644 --- a/release/scripts/modules/gpu_extras/presets.py +++ b/release/scripts/modules/gpu_extras/presets.py @@ -31,7 +31,7 @@ def draw_circle_2d(position, color, radius, segments): seg = 32 mul = (1.0 / (seg - 1)) * (pi * 2) verts = [(sin(i * mul), cos(i * mul)) for i in range(seg)] - fmt = GPUVertFormat(format=[]) + fmt = GPUVertFormat() pos_id = fmt.attr_add(id="pos", comp_type='F32', len=2, fetch_mode='FLOAT') vbo = GPUVertBuf(len=len(verts), format=fmt) vbo.attr_fill(id=pos_id, data=verts) |