Browse files

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
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"
  • Loading branch information...
1 parent 9c6cd8a commit c2417220bf87bdc6eef60e494f1c9578d61326b6 @osg-training-guest osg-training-guest committed Jul 2, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/osgPlugins/ive/Geometry.cpp
8 src/osgPlugins/ive/Geometry.cpp
@@ -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);
+ setVertexAttribNormalize(i,normalize);
+ setVertexAttribBinding(i,binding);
+ }
// Read Indices if valid
bool indices_valid = in->readBool();

0 comments on commit c241722

Please sign in to comment.