Merge branch 'master' of git://github.com/assimp/assimp

This commit is contained in:
Alexander Gessler
2012-12-21 16:24:05 +01:00
179 changed files with 20711 additions and 7693 deletions

View File

@@ -135,6 +135,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/* Tells the compiler that a function never returns. Used in code analysis
* to skip dead paths (e.g. after an assertion evaluated to false). */
# define AI_WONT_RETURN __declspec(noreturn)
#elif defined(SWIG)
/* Do nothing, the relevant defines are all in AssimpSwigPort.i */
#else
# define AI_WONT_RETURN

View File

@@ -56,8 +56,8 @@ class aiQuaterniont
{
public:
aiQuaterniont() : w(), x(), y(), z() {}
aiQuaterniont(TReal w, TReal x, TReal y, TReal z)
: w(w), x(x), y(y), z(z) {}
aiQuaterniont(TReal pw, TReal px, TReal py, TReal pz)
: w(pw), x(px), y(py), z(pz) {}
/** Construct from rotation matrix. Result is undefined if the matrix is not orthonormal. */
aiQuaterniont( const aiMatrix3x3t<TReal>& pRotMatrix);

View File

@@ -178,7 +178,7 @@ struct aiColor3D
/** Component-wise subtraction */
aiColor3D operator-(const aiColor3D& c) const {
return aiColor3D(r+c.r,g+c.g,b+c.b);
return aiColor3D(r-c.r,g-c.g,b-c.b);
}
/** Component-wise multiplication */
@@ -314,7 +314,7 @@ struct aiString
/** Append a string to the string */
void Append (const char* app) {
const size_t len = strlen(app);
const size_t len = ::strlen(app);
if (!len) {
return;
}