- drop a few swear words from documentation. Some of these are years old and I think the authors (me included) don't want them associated with their commits.
This commit is contained in:
@@ -325,10 +325,10 @@ void ColladaLoader::BuildLightsForNode( const ColladaParser& pParser, const Coll
|
||||
|
||||
out->mAngleInnerCone = AI_DEG_TO_RAD( srcLight->mFalloffAngle );
|
||||
|
||||
// ... some extension magic. FUCKING COLLADA.
|
||||
// ... some extension magic. O
|
||||
if (srcLight->mOuterAngle == 10e10f)
|
||||
{
|
||||
// ... some deprecation magic. FUCKING FCOLLADA.
|
||||
// ... some deprecation magic.
|
||||
if (srcLight->mPenumbraAngle == 10e10f)
|
||||
{
|
||||
// Need to rely on falloff_exponent. I don't know how to interpret it, so I need to guess ....
|
||||
@@ -382,7 +382,7 @@ void ColladaLoader::BuildCamerasForNode( const ColladaParser& pParser, const Col
|
||||
out->mClipPlaneNear = srcCamera->mZNear;
|
||||
|
||||
// ... but for the rest some values are optional
|
||||
// and we need to compute the others in any combination. FUCKING COLLADA.
|
||||
// and we need to compute the others in any combination.
|
||||
if (srcCamera->mAspect != 10e10f)
|
||||
out->mAspect = srcCamera->mAspect;
|
||||
|
||||
@@ -545,7 +545,7 @@ aiMesh* ColladaLoader::CreateMesh( const ColladaParser& pParser, const Collada::
|
||||
std::copy( pSrcMesh->mPositions.begin() + pStartVertex, pSrcMesh->mPositions.begin() +
|
||||
pStartVertex + numVertices, dstMesh->mVertices);
|
||||
|
||||
// normals, if given. HACK: (thom) Due to the fucking Collada spec we never
|
||||
// normals, if given. HACK: (thom) Due to the glorious Collada spec we never
|
||||
// know if we have the same number of normals as there are positions. So we
|
||||
// also ignore any vertex attribute if it has a different count
|
||||
if( pSrcMesh->mNormals.size() >= pStartVertex + numVertices)
|
||||
@@ -636,7 +636,7 @@ aiMesh* ColladaLoader::CreateMesh( const ColladaParser& pParser, const Collada::
|
||||
throw DeadlyImportError( "Data type mismatch while resolving mesh joints");
|
||||
// sanity check: we rely on the vertex weights always coming as pairs of BoneIndex-WeightIndex
|
||||
if( pSrcController->mWeightInputJoints.mOffset != 0 || pSrcController->mWeightInputWeights.mOffset != 1)
|
||||
throw DeadlyImportError( "Unsupported vertex_weight adresssing scheme. Fucking collada spec.");
|
||||
throw DeadlyImportError( "Unsupported vertex_weight adressing scheme. ");
|
||||
|
||||
// create containers to collect the weights for each bone
|
||||
size_t numBones = jointNames.mStrings.size();
|
||||
|
||||
Reference in New Issue
Block a user