274b9c8fb8
whitespace cleanup
2011-09-25 12:31:21 +00:00
13dfd82997
changes for materials to treat them as shorts not int/chars (since they are stored as shorts intermally)
...
- converting nurbs to mesh was casting the material to unsigned char.
- subsurf was casting to char, then int -> short in a loop.
- have material functions take & return shorts.
2011-09-20 06:25:15 +00:00
Nathan Letwory
cc1c8268f7
Left debug print accidently enabled.
2011-09-05 15:03:31 +00:00
Nathan Letwory
1cada203bc
[ #27884 ] Collada import: materials mismatch when 2 instance_geometry reference the same material
...
Reported by David Roy
Multi-materials used on different meshes would get ignored (resulting in white faces in textured view).
2011-09-04 14:31:23 +00:00
Nathan Letwory
cbc812b757
Fix [ #28322 ] COLLADA imports messed up UVs
...
Reported by Chad Gleason
Imported index order could put mface->v4==0. We already know amount of verts, so use that instead.
2011-09-04 01:13:44 +00:00
Nathan Letwory
1764f2135d
Some whitespace changes
2011-09-04 00:15:59 +00:00
Nathan Letwory
5b4bffba52
[ #27854 ] Collada import doesn't handle UVW mapping
...
Reported by David Roy
Patch by Brecht van Lommel
UV import code wasn't taking possible stride into account (always assuming stride==2), thus reading UV coords totally wrong.
2011-07-06 21:37:31 +00:00
Nathan Letwory
d278637337
Fix [ #26912 ] [Collada] Screw up with names/ids on import
...
Reported by Valeriy Firsov
Use the node name if it exists, fall back to id otherwise.
2011-06-20 12:43:10 +00:00
Nathan Letwory
dbe7488c43
Fix [ #27474 ] Blender crashes on collada import if input_set is missing
...
reported by Rebin Cornelius.
This needs patch from upstream report http://code.google.com/p/opencollada/issues/list?thanks=164 applied to OpenCOLLADA. lib/windows/collada and lib/win64/collada have already been updated. Ensures we don't read past array boundaries.
2011-06-20 09:34:35 +00:00
Nathan Letwory
3f9bbde4a6
Fix [ #26037 ] Import Collada crashes Blender
...
Submitted by David Roy
Multiple nodes can reference the same geometry, and specify the same materials. This lead
to the import code overwriting material mappings of faces in a destructive way. Instead of
just writing the material bindings always we now keep book of what geometry+material mapping
we've already handled.
2011-03-09 01:13:28 +00:00
Nathan Letwory
94b5fd6eb9
Skip materials that are invalid.
2011-03-08 20:41:43 +00:00
Nathan Letwory
3d05311d3c
Apply [ #26383 ] Triangle fans support for COLLADA importer
...
Submitted by Alexey Zakharov
This patch adds support to Blender for reading geometry data that's
represented as triangle fans.
2011-03-08 13:26:41 +00:00
Nathan Letwory
caf9fb6cce
doxygen: blender/collada tagged.
2011-02-27 20:30:35 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
0a4eb24ca0
fix for building with opencollada 833 on linux.
2011-02-12 06:25:04 +00:00
Nathan Letwory
71cb745941
Commit to cope with API changes in OpenCOLLADA (latest for Windows right now r827).
2011-01-27 19:39:06 +00:00
Nathan Letwory
044e31b89c
Fix [ #25319 ] COLLADA import segfaults on maya model
...
Reported by Michael Williamson
Fixed by Jeroen Bakker
Wrong UV index was being used.
2010-12-21 09:41:02 +00:00
Nathan Letwory
17f37dcecc
Apply [ #25297 ] Fix for [ #23765 ]
...
Bug reported by alarionfirn
Patch submitted by Jeroen Bakker
It took the read the N+N of the uv-layer, it should be the Nth uv layer.
2010-12-19 20:40:52 +00:00
Nathan Letwory
d420d09da9
Fix compiling for MingW too.
2010-10-09 21:31:32 +00:00
Nathan Letwory
f72eef5de7
COLLADA
...
Import unit_settings to scene.
Note: I use here RNA to do this, and I think I might slowly work on replacing low-level DNA usage with RNA where possible.
2010-10-09 21:17:14 +00:00
Nathan Letwory
e161c22dc2
Assorted GCC fixes for OpenCOLLADA support
2010-10-06 12:04:56 +00:00
Nathan Letwory
4eae531f31
TextureCoordinateBinding.getName() -> TextureCoordinateBinding.getSemantic(); as per my own patch on OpenCOLLADA issue tracker.
2010-10-05 06:10:17 +00:00
9f3d203acb
SVN maintenance.
2010-10-05 00:49:39 +00:00
Nathan Letwory
82209cdc86
Reorganisation of COLLADA import code. Classes have been split into their own files.
...
No functional changes.
Where necessary extern "C" {} blocks have been added.
2010-10-05 00:05:14 +00:00