mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-29 10:12:02 +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())
|
self.cstruct = ctypes.pointer(Header())
|
||||||
ptrofptr = ctypes.byref(self.cstruct)
|
ptrofptr = ctypes.byref(self.cstruct)
|
||||||
if filedata:
|
if filedata:
|
||||||
devil1geo.getheader(ptrofptr, filedata)
|
if not devil1geo.getheader(ptrofptr, filedata):
|
||||||
|
raise RuntimeError("failed to get geometry file header")
|
||||||
return
|
return
|
||||||
|
|
||||||
def show(self):
|
def show(self):
|
||||||
@ -175,7 +176,8 @@ class pyMeshHeader:
|
|||||||
self.cstruct = ctypes.pointer(MeshHeader())
|
self.cstruct = ctypes.pointer(MeshHeader())
|
||||||
ptrofptr = ctypes.byref(self.cstruct)
|
ptrofptr = ctypes.byref(self.cstruct)
|
||||||
if filedata:
|
if filedata:
|
||||||
devil1geo.getmeshheader(ptrofptr, i, filedata)
|
if not devil1geo.getmeshheader(ptrofptr, i, filedata):
|
||||||
|
raise RuntimeError("failed to get mesh header #" + str(i))
|
||||||
return
|
return
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user