Bastien Montagne
7853ebc204
Fix collada importer doing own handling of usercount/freeing.
...
Better use generic `BKE_libblock_free_us()`.
2017-06-15 12:44:15 +02:00
Aaron Carlisle
9f044cb422
Remove MinGW support
...
The Issue
=======
For a long time now MinGW has been unsupported and unmaintained and at this point,
it looks like something that we should just leave behind and move on.
Why Remove
==========
One of the big motivations for MinGW back in the day is that it was free compared to MSVC which was licensed based.
However, now that this is no longer true we have basically stopped updating the need CMake files.
Along with the CMake files, there are several patches to the extern libs needed to make this work. For example, see:
https://developer.blender.org/diffusion/B/browse/master/extern/carve/patches/mingw_w64.patch
If we wanted to keep MinGW then we would need to make more custom patches to the external libs and
this is not something our platform maintainers are willing to do.
For example, here is the patches needed to build python: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-python3
Fixes T51301
Differential Revision: https://developer.blender.org/D2648
2017-05-27 15:34:55 -04:00
Gaia Clary
447fc7c4ce
fix T50004: Removed check for empty mesh and adjusted the vertex import function to accept meshes without vertices as well
2016-11-12 22:20:07 +01:00
Campbell Barton
2465bd90d5
Cleanup: style, whitespace, doxy filepaths
2016-06-19 06:33:29 +10:00
Gaia Clary
a47937454c
fix T48602: Changed The Collada validator to treat faces with < 3 verts as Warning and let the Mesh Validator take care of the cleanup
2016-06-14 13:09:10 +02:00
Gaia Clary
b000a01725
fix T48389 (wip) added warning for loops that define holes (polygons with holes not supported)
2016-06-03 18:31:49 +02:00
Gaia Clary
6a7ce064ad
fix: Import of meshes with holes is now reported as WARNING (unsupported)
2016-05-26 17:41:41 +02:00
Campbell Barton
beaa57d269
Refactor BKE_blender into separate headers
...
- BKE_blender_version.h (only version defines & versionstr).
- BKE_blender_copybuffer.h (currently only used for view3d copy/paste).
- BKE_blender_undo.h (global undo functions).
- BKE_blendfile.h (high level blend file read/write API).
2016-04-25 19:27:45 +10:00
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