Re: [Maya2osg-users] Null pointer check for createGeometry
Status: Alpha
Brought to you by:
jtaibo
From: PP CG <pp...@cg...> - 2011-10-13 19:45:26
|
Hello J-S, > > I've run into some models that have no vertices under some nodes, 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. > and in that case createGeometry() in mesh.cpp returns NULL. A > subsequent access to the returned NULL pointer makes the plugin (and > thus Maya) crash. > > Here's a simple fix. @Javier, I would like to take care of this, as I am in the middle of the skinning implementation, and have worked already on the mesh file but not submitted till now, O.K. ? Cheers, PP |