From Laurens Voerman, "some of my ive files now generate a warning:
Warning, can't assign attribute binding as no has been array assigned to set binding for. I think those are ive's with bumpmaps, but I have not checked yet. The problem is in OpenSceneGraph\src\osgPlugins\ive\Geometry.cpp where the code tries to set Normalize and Binding for a missing Array. I think that code can safely be skipped, considering the write function has a hardcoded write when the array is missing. (introduced in svn rev 13488) modified file (OpenSceneGraph\src\osgPlugins\ive\Geometry.cpp) attached in Zip"
This commit is contained in:
parent
330de18eba
commit
62374833dd
@ -322,11 +322,11 @@ void Geometry::read(DataInputStream* in){
|
||||
|
||||
// Read coords if valid
|
||||
bool coords_valid = in->readBool();
|
||||
if(coords_valid)
|
||||
if(coords_valid) {
|
||||
setVertexAttribArray(i, in->readArray());
|
||||
|
||||
setVertexAttribNormalize(i,normalize);
|
||||
setVertexAttribBinding(i,binding);
|
||||
}
|
||||
|
||||
// Read Indices if valid
|
||||
bool indices_valid = in->readBool();
|
||||
|
Loading…
Reference in New Issue
Block a user