Python API: allow passing integer to some BGL functions instead of bgl.Buffer
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 18 Apr 2019 09:24:39 +0000 (11:24 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 18 Apr 2019 12:28:37 +0000 (14:28 +0200)
commit5cfeba72f117b7dc6d6eba22e3f203fc3f574429
tree30dc386fb300354804ea84ff9ba1fedb3db50307
parent713f961727d11c9a883dbdc590cf6f3dcee8def6
Python API: allow passing integer to some BGL functions instead of bgl.Buffer

These parameters can be both pointers and offsets into a bound buffer, so we
need to support both even if it's possible to cause crashes this way.
source/blender/python/generic/bgl.c