Blender Git Commit Log

Git Commits -> Revision 11b994e

Revision 11b994e by Germano Cavalcante (master)
July 26, 2019, 11:29 (GMT)
Fix T67671: Blender crashes when resizing sidebar with a colorbamp

The amount of triangles drawn by the button depends on its `sizex`.
See:
```
immBegin(GPU_PRIM_TRI_STRIP, (sizex + 1) * 2);
```
Therefore the `sizex` cannot be 0.

Solution a bit similar to rB56b0cd1d.

Ref T67671

Reviewers: fclem, brecht

Maniphest Tasks: T67671

Differential Revision: https://developer.blender.org/D5347

Commit Details:

Full Hash: 11b994e26e4dbfc40dc6ff2194b7855e2eb20f23
Parent Commit: 1d7be99
Lines Changed: +5, -0

1 Modified Path:

/source/blender/editors/interface/interface_draw.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021