Re: [Maya2osg-users] Null pointer check for createGeometry
Status: Alpha
Brought to you by:
jtaibo
|
From: Jean-Sébastien G. <jea...@cm...> - 2011-10-13 20:29:30
|
Hi Peter,
> Would it be possible for you to pass me a simple .ma file of such a case
> ? Am curious, have never seen such thing, according to me a PolyShape
> has always at least one triangle. Please don't take this wrong in terms
> of not trusting you, I really just wonder how this could be possible,
> and would like to see such a case, thx.
I honestly have no idea how this could happen, I have a model that does
it, made by one of our artists. It seems like nonsense to me too, but
hey, it's what I got...
I'll send you the model directly, it's a 3.5MB ma file without textures.
I hope it will reproduce the issue.
In any case, the createGeometry() function has a check at the beginning
that returns NULL. If a function can conceivably return NULL, you have
to check it in the caller right?
Thanks,
J-S
--
______________________________________________________
Jean-Sébastien Guay jea...@cm...
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
|