Commits

rob...@16af8721-9629-0410-8352-f15c8da7e697  committed da0f899 Draft

From Wang Rui, "A very small but maybe fatal problem was found when I saved models with shader and uniforms (with new double types support) to osgb format and tried to read it again. The application will crash here. And the serializer file should be slightly changed to fix it. Please replace the original file in osgWrappers/serializers/osg/Uniform.cpp."

  • Participants
  • Parent commits 64b1d50

Comments (0)

Files changed (1)

File src/osgWrappers/serializers/osg/Uniform.cpp

         os << (uniform.getFloatArray()!=NULL);
         os.writeArray( uniform.getFloatArray() );
     }
-    if ( uniform.getDoubleArray()!=NULL )
+    else if ( uniform.getDoubleArray()!=NULL )
     {
         os << (uniform.getDoubleArray()!=NULL);
         os.writeArray( uniform.getDoubleArray() );