Skip to content

Commit

Permalink
https://github.com/KhronosGroup/glTF/issues/170
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrobinet committed Nov 2, 2013
1 parent b9c9c51 commit 89b07ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion converter/COLLADA2GLTF/GLTF/GLTFWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ namespace GLTF

GLTFMesh* mesh = (GLTFMesh*)primitiveContext[0];

primitiveObject->setString("primitive", primitive->getType());
void** serializationContext = (void**)primitiveContext[1];

GLTFConverterContext *converterContext = (GLTFConverterContext*)serializationContext[3];

primitiveObject->setUnsignedInt32("primitive", converterContext->profile->getGLenumForString(primitive->getType()));

primitiveObject->setString("material", primitive->getMaterialID());

Expand Down

0 comments on commit 89b07ce

Please sign in to comment.