Gaia Clary
368b74315a
Collada - add flag to limit precision of exported data, mainly to simplify debugging
2017-04-03 10:48:00 +02:00
Gaia Clary
f65d6ea954
fix: collada - do proper conversion from int to bool (as with other nearby parameters)
2017-04-03 10:45:24 +02:00
Gaia Clary
3bf0026bec
fix: T50412 - collada: Replaced precision local limit function by blender's own implementation
2017-04-01 15:29:50 +02:00
Gaia Clary
2c78b0c71f
Collada - Export: now use bind_mat and rest_mat custom properties (when the use_bind_info option is enabled and the properties exist)
2017-03-23 14:14:23 +01:00
Gaia Clary
b48ba0909a
Collada - Import: now add bind_mat and rest_mat as custom properties (when the use_bind_info option is enabled)
2017-03-23 14:14:23 +01:00
Gaia Clary
476f5c473a
Collada - remove no longer used functions (moved to collada_utils)
2017-03-23 14:14:23 +01:00
Gaia Clary
51d4743033
Collada - Added support for custom bind matrix (using new bind_mat custom property)
2017-03-23 14:14:22 +01:00
Gaia Clary
6cfa962986
Collada - removed TransformBase baseclass (not needed for anything)
2017-03-23 14:14:22 +01:00
Gaia Clary
7c094f6079
Collada - Added some helper functions into collada_utils, for common usage in the collada module
2017-03-23 14:14:22 +01:00
Gaia Clary
092d673689
Added new option for storing bindpose matrix, see T50412
2017-03-23 14:14:22 +01:00
Gaia Clary
339d0170d1
collada: Simplify reading Node Matrix
2017-03-23 14:14:22 +01:00
Gaia Clary
1729dd9998
collada: Make sure that bone use_conncet is set to false when connect type is not defined in Import
2017-03-23 14:14:22 +01:00
Gaia Clary
33e32c341a
collada: add extern 'C' for c header includes
2017-03-23 14:14:22 +01:00
Gaia Clary
ec3989441f
fix: collada - Connected bones get their tails set to wrong location when fix leaf nodes option is enabled
2017-03-23 14:14:22 +01:00
Gaia Clary
1978ac65c4
collada: use local variable to avoid repeated call of bone chain_length_calculator
2017-03-23 14:14:22 +01:00
Gaia Clary
89631485cc
collada: use vector copy function instead of direct assigning
2017-03-23 14:14:22 +01:00
Gaia Clary
647fb6ef1e
fix D2552: Collada - Follow up change to complete the fix in rBda6cd7762810 (use unique id for bones with same name in different armatures)
2017-03-14 19:31:25 +01:00
Gaia Clary
4877c9362a
Collada simplify: avoid duplicate negation in boolean
2017-03-14 19:31:25 +01:00
Jon Allee
da6cd77628
fix D2552: Collada - use unique id for bones with same name but in different armatures. Co-authored-by: Gaia <gaia.clary@machiniamtrix.org>
2017-03-14 14:35:51 +01:00
Brecht Van Lommel
9992e6a169
Fix a few compiler warnings with macOS / clang.
2017-02-18 23:59:34 +01:00
Gaia Clary
ba116c8e9c
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode
2017-01-28 22:10:20 +01:00
Gaia Clary
c64c901535
fix D2489: Collada exporter broke edit data when exporting Armature while in Armature edit mode
2017-01-28 21:51:18 +01:00
Bastien Montagne
b997988323
Cleanup/refactor: Add new BLI_string_util.
...
Things like `BLI_uniquename` had nothing, but really nothing to do in
BLI_path_util files!
Also, got rid of length limitation in `BLI_uniquename_cb`, we can use
alloca here to avoid overhead of malloc while keeping free size (within
reasonable limits of course).
2017-01-16 20:36:23 +01:00
Gaia Clary
d464a7c441
fix T50118: Added missing assignment of Bone Roll
2016-11-26 18:48:50 +01:00
Campbell Barton
e1e49fd1a8
Math Lib: rotate matrix cleanup
...
- Remove 'rotate_m2', unlike 'rotate_m4' it created a new matrix
duplicating 'angle_to_mat2' - now used instead.
(better avoid matching functions having different behavior).
- Add 'axis_angle_to_mat4_single',
convenience wrapper for 'axis_angle_to_mat3_single'.
- Replace 'unit_m4(), rotate_m4()' with a single call to 'axis_angle_to_mat4_single'.
2016-11-25 16:39:34 +11: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
Gaia Clary
dac5438562
COLLADA: Removed obsolete Export select option 'Both' which created invalid data (duplicate transformation information for nodes)
2016-11-02 14:11:46 +01:00
Gaia Clary
36d0ea3123
Collada: Trying to get rid of some warning messages on linux
2016-09-24 01:47:55 +02:00
Gaia Clary
7a259d8422
Collada: Trying to get rif of some warning messages on linux
2016-09-24 01:27:37 +02:00
Gaia Clary
4b891b40c2
Fix: Collada Importer did not import the Blender Profile information correctly when multiple objects are bound to same armature. This caused Bone tails to be placed wrong.
2016-09-24 01:06:32 +02:00
Gaia Clary
2382d1c401
regression fix for 1346482d23: The length of leaf bones should always be set to the length of the smallest bone. since the mentioned commit the importer did only recalculate the leaf bone length when the 'fix leaf bones' option was also enabled.
2016-09-20 17:33:17 +02:00
Bastien Montagne
64a6a86d57
Fix two memleaks found by coverity.
2016-08-16 16:16:22 +02:00
Campbell Barton
c885cea7bb
Cleanup: spelling
2016-07-16 17:48:57 +10:00
Sandy Carter
b679767656
fix T48857: Improved the handling of Material Alpha, based on patch D1949 with some small modifications
2016-07-15 16:14:53 +02:00
Gaia Clary
27641b51e7
Collada: changed specification of material alpha from using transparency to using transparent with opaque=A_ONE
2016-07-15 16:14:51 +02:00
Gaia Clary
558f85473e
fix T48857: Added support for transparency (used Patch D1949 from bwrsandman with some slight changes)
2016-07-14 21:43:26 +02:00
Campbell Barton
8343518272
Cleanup: comment blocks
2016-07-15 02:39:45 +10:00
Bastien Montagne
87b974caa1
Cleanup/Refactor: pass Main pointer to all ID copy functions.
...
Also allows us to get rid of a few _copy_ex() versions...
2016-07-10 14:52:00 +02:00
Campbell Barton
aef72125da
Correction for MSVC
2016-07-02 20:22:07 +10:00
Campbell Barton
9f5621bb4a
Cleanup: comment blocks
2016-07-02 10:08:33 +10:00
Campbell Barton
0a026033ae
BMesh: make toolflags optional
...
Saves 8 bytes per vert/edge/face.
Gives overall ~20-25% memory saving for dyntopo sculpting
and modifiers that use BMesh.
2016-07-01 19:29:22 +10: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
38410e6e25
changed use_connect from bool to a 3 state value (-1,0,1)
2016-06-03 18:31:51 +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
cd4d80fac6
added missing include
2016-05-29 01:38:14 +02:00
Gaia Clary
af185e1154
fixed some incompatible definitions (to make this work also on linux)
2016-05-29 01:30:20 +02:00
Gaia Clary
5366900ace
Added support for non numeric bone layer labels (could happen when importing from other tools)
...
Differential Revision: https://developer.blender.org/D2037
2016-05-29 00:37:46 +02:00
Gaia Clary
8b2c67c3c3
collada exporter: fixed wrong check for bone roll value
2016-05-28 20:52:32 +02:00
Gaia Clary
8e26111020
Collada: Adding support for bone roll and bone layers
...
Differential Revision: https://developer.blender.org/D2034
2016-05-28 19:22:06 +02:00