Bastien Montagne
865796375b
Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.
...
We have callbacks for that, they also do some checks and help ensure things are done
correctly. Only place where this is assumed not true is blenloader (since here we
may affect refcount of library IDs as well...).
2015-11-09 21:00:53 +01:00
Gaia Clary
7f25da6509
fix T43094 Added check for out of bounds in vertex color array
2015-03-03 23:42:32 +01:00
Campbell Barton
23330473e3
Cleanup: remove unused collada conversion
2015-03-03 15:40:34 +11:00
Campbell Barton
34003dd034
Fix T43151: Collada meshes crash Blender
...
We have multiple reports of collada files crashing, run all meshes through validate.
2015-03-03 15:30:45 +11:00
Bastien Montagne
7bae9ee6b6
Mesh validate: add an option to not clean temp/cache CDLayers.
...
This is mandatory for incoming custom normal imports from io scripts, because
often geometry here is corrupted, so we need to call mesh.validate() to clean it up.
Issue is, we cannot set custom normals before geometry is clean, so we need to store
temporary plain loop normals in a CD_NORMAL layer, validate, and then set custom normals.
So we need a way to prevent 'temp' lnors to be freed by validate.
2015-02-05 14:03:01 +01:00
Bastien Montagne
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
Campbell Barton
6d78936c43
cleanup: style
2015-01-24 01:59:09 +11:00
Thomas Dinges
8bb318bf90
Fix T41528: Error message on trying to import COLLADA triangle strips is wrong
...
Thanks to Maarten Gribnau for the patch.
2014-08-22 02:46:29 +02:00
Campbell Barton
65d54f34b1
Code cleanup: spelling/indentation
2014-05-08 04:53:05 +10:00
Bastien Montagne
ea6fba2926
Cleanup: Remove unused variables.
2014-05-01 16:32:25 +02:00
gaiaclary
8bdac4d0bc
fix T39967: Added support for Import/export of vertex color layers
2014-05-01 14:52:36 +02:00
gaiaclary
6952bf2728
T38482: Fixed the Crashing. If the same UV Layer is referenced multiple times, then the last imported data set for this UV Layer wins.
2014-02-08 13:14:58 +01:00
Brecht Van Lommel
e79b244097
Fix collada and freestyle module compile errors after recent commit, forgot to
...
compile with those enabled.
2014-01-15 19:15:51 +01:00
Campbell Barton
aa8488421f
style cleanup: whitespace & odd indentation
2013-09-21 10:46:58 +00:00
Nathan Letwory
1d936a1074
Ensure positions can be read for sources that have stride
...
defined as 2 (2D coordinates).
2013-09-19 21:59:22 +00:00
Campbell Barton
f6b37f34ec
code cleanup:
...
- add missing headers from cmake (own omission)
- quiet rna_test.c unused define warnings.
- minor style edits
- spelling corrections and ignore all uppercase words with spell checking script.
2013-09-05 19:56:49 +00:00
Gaia Clary
ab777e957c
fix(Collada): wrong usage of the set attribute with multiple UV sets
2013-08-02 15:58:11 +00:00
Campbell Barton
824ec5a388
code cleanup: case & brace placement
2013-07-19 10:40:43 +00:00
Campbell Barton
ef4db04da8
code cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using the mapping functionality.
...
replace ED_mesh_calc_normals with BKE_mesh_calc_normals().
2013-05-28 14:23:07 +00:00
Gaia Clary
be773f22b1
Added missing recalculate of normals after mesh import
2013-05-28 13:32:29 +00:00
Brecht Van Lommel
c846e3c750
Fix #35014 : collada import crash with UV coordinates.
2013-04-18 21:40:06 +00:00
Campbell Barton
01e9dae3dc
code cleanup
2013-03-18 18:25:05 +00:00
Campbell Barton
3dababa7ec
code cleanup: name mesh functions more consistently, also use bools for mesh args.
2013-03-17 19:55:10 +00:00
Campbell Barton
a0351fd97e
object converting curve/mball to a mesh would give invalid selection state (edges selected but nothing else).
...
add arg to BKE_mesh_calc_edges() so selecting newly created edges is optional.
2013-03-16 01:19:03 +00:00
Gaia Clary
86ff11fe47
Collada: Added ngon support to Vertex Color exporter
2013-03-04 13:12:56 +00:00
Campbell Barton
2921d48239
code cleanup: unused vars in collada, preprocessor formatting & warning in mingw.
...
also compiling without bullet needed a stub added.
2013-03-04 00:53:57 +00:00
Gaia Clary
be701b6278
Collada: Added support for ngon export/import and added triangulate option to export
2013-03-02 15:58:13 +00:00
Gaia Clary
8996184ac4
Fixed importing of shapekey names: name is now taken from geometry name instead of deriving it from the mesh name
2013-02-12 17:52:18 +00:00
Gaia Clary
dbcf735636
fix warning message when imported Collada nodes have < 3 edges.
2013-02-08 00:27:35 +00:00
Sergey Sharybin
9d02ac41dc
Attempt to fix collada compilation after recent commit
...
I don't have recent collada compiled here atm, so perhaps there're
more issues here.
2013-02-05 13:04:01 +00:00
Gaia Clary
c263753d17
Added gsoc-2012 collada improvements from bratwurst branch
2013-01-21 13:45:49 +00:00
Campbell Barton
4a427d8e0d
style cleanup
2012-12-29 01:54:58 +00:00
Brecht Van Lommel
ad394949db
Fix #33421 : collada import of a mesh with loose edges did not draw the edges in the viewport.
2012-12-06 06:13:43 +00:00
Campbell Barton
d599b643b7
style cleanup: bge, switch statements mostly.
...
also left bmesh decimator on in previous commit.
2012-10-21 07:58:38 +00:00
Campbell Barton
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
Campbell Barton
aa49ca25d5
incorrect spelling in comments
2012-09-26 20:05:38 +00:00
Campbell Barton
aaafa0c2fe
code cleanup: move file string defines into BLI_path_utils.h, BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-09-03 22:04:14 +00:00
Gaia Clary
10004d4a42
fixed: [ #32240 ] Collada import when nodes share geometry but not material
2012-08-12 17:13:07 +00:00
Campbell Barton
b96c622015
style cleanup
2012-08-11 22:12:32 +00:00
Campbell Barton
32478997ec
style cleanup
2012-06-27 18:29:47 +00:00
Campbell Barton
2e8a2f7668
style cleanup
2012-06-12 22:05:33 +00:00
Gaia Clary
2c05190374
fix [ #31320 ] Collada now supports import/export of loose edges (edges not attached to faces)
2012-05-16 11:21:03 +00:00
Sergey Sharybin
3ef11693f5
Style cleanup: displist module
2012-05-07 06:58:03 +00:00
Campbell Barton
c91cee2bb9
code cleanup: naming - BKE_mesh_*
2012-05-05 21:28:12 +00:00
Campbell Barton
1dccd4c98a
code cleanup: naming - pose/armature/image
...
also use ..._find_name(..., name) rather then ..._find_named(..., name) --- both were used.
2012-05-05 16:03:57 +00:00
Campbell Barton
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
Brecht Van Lommel
b075765edd
Fix #31258 : collada now selects newly added objects after import.
2012-05-03 21:32:49 +00:00
Brecht Van Lommel
959a717d91
Fix #31250 , #31248 : wrong vertex normals after transform apply, collada import,
...
sculpt shape key switch. All cases that called this function needed parameter
only_face_normals set to false, so changed it now.
Also fixed wrong user count for imported mesh from collada and simplified
previous fix for tesselated faces to polygons conversion.
2012-05-02 23:36:34 +00:00
Juha Mäki-Kanto
66581e903c
Fix #31176 : Collada model shows weird textures in editmode
...
Issue with multimaterial meshes and mface to mpoly conversion being before assignment of materials (which is done on meshobject instancing?).
Added explicit bmesh conversion to MeshImporter which is called from DocumentImporter::import.
2012-05-02 16:18:20 +00:00
Campbell Barton
9fe1fe0aa8
bmesh py api:
...
add mtexpoly image access
2012-05-01 06:50:43 +00:00