assimp/port/PyAssimp/pyassimp
Eric Olson 3924a5c32a Ensure obj is not null before using hasattr
Fixes error shown below:
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\core.py", line 320, in load
    scene = _init(model.contents)
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\core.py", line 206, in _init
    raise e
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\core.py", line 187, in _init
    call_init(e, target)
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\core.py", line 80, in call_init
    _init(obj.contents, obj, caller)
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\core.py", line 214, in _init
    if _is_init_type(obj):
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\core.py", line 86, in _is_init_type
    if helper.hasattr_silent(obj,'contents'): #pointer
  File "C:\Users\micro\build2\boxwin_external_libs\pyassimp\helper.py", line 277, in hasattr_silent
    return hasattr(object, name)
ValueError: NULL pointer access
2019-05-27 13:06:38 -05:00
..
__init__.py [pyassimp] Make it easier to import pyassimp 2013-03-30 14:35:21 +01:00
core.py Ensure obj is not null before using hasattr 2019-05-27 13:06:38 -05:00
errors.py Fix spelling mistakes 2016-04-03 01:38:00 +01:00
formats.py port/PyAssimp/pyassimp/formats.py: add missing comma (implicit string concatenation, assumed unintentional) 2019-03-29 18:36:17 -04:00
helper.py Revert "Remove experimental change unintentionally included in commit f001dfc8" 2019-05-20 15:35:19 +02:00
material.py Add pyassimp code generation script for materials 2018-01-10 12:33:44 +02:00
postprocess.py * Fix error in previous commit improving imports 2019-03-29 18:36:17 -04:00
structs.py port/PyAssimp/pyassimp/structs.py: remove unused import of c_int 2019-03-29 18:36:17 -04:00