PyAPI: use _PyObject_LookupAttr
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Feb 2019 12:35:23 +0000 (23:35 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Feb 2019 12:35:23 +0000 (23:35 +1100)
commitff2dd59d4a12a118eda5dc73ad692dae39cd702c
treeef9a5d822bd21375c01ad238f48389e1643d54ad
parent6b2a91efff20691ad50b4aefc197eac1b1223c78
PyAPI: use _PyObject_LookupAttr

Unlike PyObject_GetAttr, this avoids setting the attribute error
only to clear it - under some conditions.
source/blender/python/intern/bpy_rna.c