mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-25 16:28:57 +05:30
Added raise RuntimeError blocks for all pyobjects in geo
This commit is contained in:
parent
f4e5dfa269
commit
4b574f9456
@ -145,7 +145,8 @@ class pyGeoHeader:
|
||||
self.cstruct = ctypes.pointer(Header())
|
||||
ptrofptr = ctypes.byref(self.cstruct)
|
||||
if filedata:
|
||||
devil1geo.getheader(ptrofptr, filedata)
|
||||
if not devil1geo.getheader(ptrofptr, filedata):
|
||||
raise RuntimeError("failed to get geometry file header")
|
||||
return
|
||||
|
||||
def show(self):
|
||||
@ -175,7 +176,8 @@ class pyMeshHeader:
|
||||
self.cstruct = ctypes.pointer(MeshHeader())
|
||||
ptrofptr = ctypes.byref(self.cstruct)
|
||||
if filedata:
|
||||
devil1geo.getmeshheader(ptrofptr, i, filedata)
|
||||
if not devil1geo.getmeshheader(ptrofptr, i, filedata):
|
||||
raise RuntimeError("failed to get mesh header #" + str(i))
|
||||
return
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user