Commit Graph

2861 Commits (1cb55a3b8052ce2bcd47068fcb93dbdc78874485)

Author SHA1 Message Date
Alexander Gessler 88da17a246 Drop M3 Importer. 2013-06-13 11:22:23 +02:00
Alexander Gessler 27c578675a Merge pull request #51 from asmaloney/init_fixes
Prefer init list and add missing initializations
2013-06-12 08:16:14 -07:00
Alexander Gessler 84e3bf50ba Merge pull request #52 from asmaloney/minor_changes
Fix a logging message and a comment
2013-06-12 08:15:52 -07:00
Andy Maloney c6d1a73854 Fix a logging message and a comment 2013-06-12 09:01:05 -04:00
Andy Maloney 0e54b87b1e Prefer init list and add missing initializations 2013-06-12 08:59:47 -04:00
Kim Kulling 9040724fc0 Merge pull request #49 from severin-lemaignan/master
[pyassimp] Fixes for python 3.3 and 64bits
2013-06-03 02:17:52 -07:00
Bill Roeske 2494608927 [pyassimp] Fix py3.3 + 64bits issues
64-bit Compatibility:

The first four characters of a String material property would be cut
off. A String's length is defined in structs.py as a c_size_t
variable, which is 8 bytes wide on 64-bit Python. However, when an
aiString is used as an aiMaterial property in C/C++, the length is
truncated down to a 4-byte value on 64-bit machines (see
MaterialSystem.cpp aiMaterial::AddProperty() for details). A new
struct was declared in structs.py (MaterialPropertyString) and used
in core._get_properties().

Python 3.3 Compatibility:

The built-in function hasattr() changed in Python 3.2 to not
trap exceptions, which means a NULL pointer ValueException now
escaped when checking if a pointer was valid (hasattr(obj,
'contents') in core.call_init()) (see
http://bugs.python.org/issue9666 for details). A new helper
function was defined that preserves the legacy functionality of
trapping the exceptions (helper.hasattr_silent()) and used
throughout the code as a replacement for hasattr().

String objects would import as "bytes" rather than as a
string. This was most noticeable in the key names for
material properties, where the trailing ' of a bytes object
would remain after it was converted to a string. The
solution was to call decode() on the bytes object using
utf-8 decoding. This applies to various parts of core.py.

Closes #35
2013-06-03 10:38:30 +02:00
Séverin Lemaignan 43dd6fb3bc [pyassimp] Check cmd line args in sample.py 2013-06-03 10:37:48 +02:00
Séverin Lemaignan 024bd4c470 [pyassimp] Handle diffuse/ambient values stored as vec3 instead of vec4 2013-06-03 10:22:39 +02:00
Alexander Gessler 08e078e20d Merge pull request #44 from thetrime/master
Collada importer should respect units in file
2013-05-24 07:37:04 -07:00
Matt Lilley d411cbfbf4 Make use of unit tag in asset info to scale the whole model 2013-05-23 12:15:14 +12:00
Alexander Gessler be457757a5 Merge pull request #39 from devurandom/fix/pedantic-c99
Fixes errors with -pedantic -std=c99 and GCC 4.7.2
2013-05-16 06:53:52 -07:00
Dennis Schridde 2bdbcd78e7 Amend dd1a18149cac29a69a0242a5efc467498f5f05cd: Visibility attribute is needed for MSVC/C++ 2013-05-16 13:08:05 +02:00
Dennis Schridde a65a69fdc9 Fixes a bunch of errors with -pedantic -std=c99 and GCC 4.7.2: ISO C restricts enumerator values to range of ‘int’ 2013-05-16 13:08:05 +02:00
Dennis Schridde bcc311515a Fixes an error with -pedantic -std=c99 and GCC 4.7.2: ‘visibility’ attribute ignored on types 2013-05-16 13:08:05 +02:00
Alexander Gessler 5205ee06da Merge pull request #40 from devurandom/feature/gitignore
Add gitignore file
2013-05-14 04:50:39 -07:00
Dennis Schridde 8535ebd730 Add gitignore file 2013-05-14 10:48:37 +02:00
acgessler b8ed6fbcef Fix Heap corruption in BlenderImporter::ConvertMesh function. closes #36 2013-05-03 23:16:56 +02:00
Alexander Gessler 24daead8cb Merge branch 'master' of github.com:assimp/assimp into msvc-pch 2013-04-30 00:48:35 +02:00
Alexander Gessler 98aec0955d - remove web shortcuts from root. 2013-04-30 00:48:07 +02:00
Alexander Gessler 48591e17b1 Merge pull request #34 from assimp/msvc-pch
- LWO: fix crash when computing normals for meshes that contain line or point faces.
2013-04-26 07:54:59 -07:00
Alexander Gessler 51d7bf8266 Merge branch 'master' of github.com:assimp/assimp into msvc-pch 2013-04-26 16:51:43 +02:00
Alexander Gessler 7efb94580f - LWO: fix crash when computing normals for meshes that contain line or point faces. Thanks to Thomas Sevaldrud for the patch. 2013-04-26 16:49:24 +02:00
Alexander Gessler 8b7fdb3a39 Merge pull request #33 from assimp/msvc-pch
- CMake: enable multicore compilation with vc.
2013-04-21 06:05:06 -07:00
Alexander Gessler 758e470a49 Merge branch 'master' of github.com:assimp/assimp into msvc-pch 2013-04-21 15:04:04 +02:00
Alexander Gessler b786d6e375 - CMake: enable multicore compilation with msvc. 2013-04-21 15:03:16 +02:00
Alexander Gessler 680c8e31d9 Merge pull request #32 from assimp/msvc-pch
- CMake: use precompiled headers when compiling with msvc,
2013-04-20 14:22:19 -07:00
Alexander Gessler 61b1cf7be1 Merge branch 'master' of github.com:assimp/assimp into msvc-pch 2013-04-20 23:17:16 +02:00
Alexander Gessler 4b748c2442 - CMake: use precompiled headers when compiling for msvc. This makes compilation about 40% faster. 2013-04-20 23:15:59 +02:00
Alexander Gessler a2541a8984 Update .travis.yml 2013-04-19 01:41:45 +03:00
Alexander Gessler a81c10265a - update travis.yml to also test compilation without the export part (2nd try). 2013-04-19 01:40:02 +03:00
Alexander Gessler 540265f617 - update travis.yml to also test compilation without the export part. 2013-04-19 01:37:41 +03:00
Alexander Gessler 17e888e762 Merge pull request #31 from jdduke/patch-1
Enable aiMaterial::AddProperty template specializations in ASSIMP_NO_EXPORT builds
2013-04-18 01:15:48 -07:00
Jared Duke 6551fd4903 Update material.inl
aiMaterial::AddProperty template specializations are used by import methods in B3DImporter and SceneProcessor; they should be defined accordingly even when ASSIMP_BUILD_NO_EXPORT is defined.
2013-04-17 18:47:52 -07:00
Alexander Gessler 863645e88b Merge pull request #30 from assimp/gcc-fixes
workaround for older gcc versions (<4.6) sometimes copying temporaries even though they shouldn't.
2013-04-13 07:17:28 -07:00
Alexander Gessler f476634461 Merge branch 'master' of github.com:assimp/assimp into gcc-fixes 2013-04-13 16:10:37 +02:00
Alexander Gessler 17e2588588 - workaround for older gcc versions (<4.6) sometimes copying temporaries even though they shouldn't. 2013-04-13 16:08:13 +02:00
Alexander Gessler 02533c11a0 Merge pull request #28 from assimp/gcc-fixes
Gcc fixes based on this build: https://travis-ci.org/assimp/assimp/jobs/6160384

silence gcc false positive warnings and fix real issues that were pointed out.
2013-04-08 14:27:04 -07:00
Alexander Gessler afe1dd8c02 Merge branch 'master' of github.com:assimp/assimp into gcc-fixes 2013-04-08 23:21:33 +02:00
Alexander Gessler a288a631e2 - FBX: avoid more gcc warnings. 2013-04-08 20:21:28 +02:00
Kim bd05acf872 bugfix : fix unresolved symbols if 3DS-import is configured not to be oart of the lib.
Signed-off-by: Kim <Kulling>
2013-04-08 20:16:56 +02:00
Alexander Gessler 232e69dc2a - Ifc: code cleanup, remove various non-needed variables as pointed out by gcc. 2013-04-08 20:10:25 +02:00
Alexander Gessler 052a8634d2 OgreMaterial: remove unneeded variable. 2013-04-08 20:05:56 +02:00
Alexander Gessler f6cb467275 - FBX::ImportSettings: fix initialization list order. 2013-04-08 20:05:19 +02:00
Alexander Gessler 68f3f4c80a Merge pull request #27 from assimp/clang-fixes
Clang fixes based on this clang build: https://travis-ci.org/assimp/assimp/jobs/6158706

This silences false positives and fixes any real issues pointed out by clang - at least two of which were critical.
2013-04-08 10:55:17 -07:00
Alexander Gessler 5fe03f692e - FBX: silence some warnings produced by clang about missing switch cases. Add TokenType_BINARY_DATA to TokenTypeString() function. 2013-04-08 19:45:09 +02:00
Alexander Gessler 47b2832dd8 - XGL: fix non isocpp-compliant definition of LogFunctions::log_prefix outside the namespace where the class resides. 2013-04-08 19:41:18 +02:00
Alexander Gessler d25715ad2c - Ifc: fix issue pointed out by clang that caused an epsilon check to go totally wrong. A pair of extra parentheses invoked C++ expression evaluation instead of argument passing. 2013-04-08 19:39:15 +02:00
Alexander Gessler 67472f3feb - remove self-assignment in MD5Loader.cpp 2013-04-08 19:37:08 +02:00
Alexander Gessler 8f2e816042 - LWS: fix bugs pointed out by clang leading to path strings being incorrectly build. 2013-04-08 19:36:24 +02:00