Jens Verwiebe
fc9215129e
Adapt KDL for compile with clang 3.4, which is stricter with friend classes,
...
fixes ‘friend declaration specifying a default argument must be a definition’,
based on information from here:
http://www.orocos.org/forum/rtt/rtt-dev/bug-1053-new-compile-error-clang-34-patch-attached
2014-02-17 16:39:03 +01:00
Jens Verwiebe
a84bcea070
OSX/scons: allow for compiling with clang-openmp-3.4
...
See: http://clang-omp.github.io
+ fix a longstanding bad include in darwin-config
2014-02-09 18:03:13 +01:00
19a41e5a10
Fix iTaSC build error when building with libc++.
...
This was using TreeElement before it was fully defined, which gives undefined
behavior that happened to work with other libraries but not libc++.
Based on patch by Marcus von Appen, modifications for brevity and to ensure we
don't dereference invalid memory. Ref T37477.
2013-11-28 21:35:28 +01:00
Campbell Barton
655ed9cc7f
style cleanup
2013-03-18 11:44:56 +00:00
Brecht Van Lommel
4f3ca854e1
Fix various warnings with clang build, and adjust cmake clang warnings flags
...
to include a few more that gcc is using too.
2013-02-26 21:58:06 +00:00
Bastien Montagne
ab2c273b12
Added GPL header to sconscripts!
...
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...
2012-12-17 08:01:43 +00:00
Jens Verwiebe
f98c2c936c
OSX/availability: use of the numerical value instead of the symbol in the #if MAC_OS_X_VERSION_MIN_REQUIRED comparison clause: If the code is loaded on an older system that does not include the symbol definition, the comparison still works
2012-12-15 11:15:05 +00:00
Campbell Barton
fecc3b9d68
add 2 new utility functions to the BGE mesh py api.
...
mesh.transform(matid, matrix)
mesh.transform_uv(matid, matrix, uv_index=-1))
much more efficient then looping over verts in python to transform them.
2012-11-10 09:45:43 +00:00
Jens Verwiebe
aa42934cef
itask: reworked conditionals for osx version compatibility
2012-11-07 21:19:43 +00:00
Jens Verwiebe
d7fe02936b
Fix ITASK warnings
2012-11-07 11:57:51 +00:00
Jens Verwiebe
acc8c654fc
OSX: substitute all MAC_OS_X_VERSION defines with MAC_OS_X_VERSION_MIN_REQUIRED macros, to get more reliable version (api) covering
2012-11-06 15:19:49 +00:00
Campbell Barton
ff014a3077
code cleanup: cmake - add missing headers, remove directories from source listing.
...
also remove logImageLib.c - empty file.
2012-11-03 15:49:38 +00:00
Campbell Barton
7deb8d8a26
code cleanup: spelling
2012-10-20 20:36:51 +00:00
Daniel Genrich
827c70abd8
Update to stable Eigen 3.1.1
...
- Fixes several bugs within the Eigen library:
http://eigen.tuxfamily.org/index.php?title=ChangeLog#Eigen_3.1.1
2012-10-15 16:29:23 +00:00
Campbell Barton
3a947cf537
code cleanup: remove redundant casts
2012-10-14 08:49:01 +00:00
Sergey Sharybin
7f1cfbfff5
Fix some warnings treated as errors here.
2012-09-16 12:33:39 +00:00
Campbell Barton
4c2de5e0c7
fix some types and incorrect info
2012-07-26 17:41:09 +00:00
Campbell Barton
76bea854b6
code cleanup: replace cos(M_PI / 4) and sin(M_PI / 4) with M_SQRT1_2 define
...
also some minor style cleanup.
2012-07-22 18:40:50 +00:00
Campbell Barton
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
Campbell Barton
51d9bf725d
style cleanup
2012-06-10 19:59:02 +00:00
Benoit Bolsee
2b889eea8d
Fix [ #31430 ] part 2: crash in iTaSC when end effector is a fixed bone. This situation was causing access to invalid index in the joint angle array although the end effector doesn't need any joint angle to compute its pause. Fixed this by changing the internal API of joint array: return pointer instead of reference so that NULL pointer can be returned instead of crashing when the index is invalid.
2012-06-07 08:16:41 +00:00
Benoit Bolsee
ef850d75f5
Fix unaligned array crash in Eigen3 because of compilation option. The EIGEN_DONT_ALIGN_STATICALLY compilation option was added for Win32 only in revision 41283 because of some compilation problem. But this option is causing alignment problem for Eigen3 local variables when SSE optimization is enabled. I do not have any compilation problem when the option is not defined, so I just remove it as it should.
2012-06-07 08:04:58 +00:00
Benoit Bolsee
8db6e682e9
Fix [ #31544 ]: iTaSC assertion when creating armature with no joint. This degenerated case can be obtained by having a single bone in the IK chain and locking all 3 axis. This case was causing an assert in the KDL library. The bug is fixed by simply not creating the IK scene in this case.
2012-06-04 22:29:17 +00:00
Benoit Bolsee
e063ea222c
Fix bug [ #31588 ]: iTaSC does not handle armature scaling correctly. iTaSC solver operates in world reference, therefore armature scale is used to build the ik scene. But the scaling was not taken out when applying the pose at the end of the simulation.
2012-06-03 12:06:42 +00:00
Benoit Bolsee
9ec2139c81
Fix Eigen3 unaligned array in iTaSC. The unaligned array cause crash when SSE2 is enabled. The source of unaligned array were: matrix passing by value in std::make_pair() and offset of matrix member in structure.
2012-06-03 12:00:41 +00:00
Jens Verwiebe
bff59a5b2e
OSX: buildfix for itask on 10.5.sdk
2011-11-15 21:55:07 +00:00
Brecht Van Lommel
b5a57b193d
Fix #29041 : parenting problem with tree IK for iTaSC and iksolver, where it
...
would use the wrong bone as parent on brancing. Patch by Juha Maki-Kanto.
2011-11-13 13:08:15 +00:00
Brecht Van Lommel
d0550758af
Fix #29048 : iTaSC solver crash on certain compilers/platforms, due to memory
...
alignment issues with Eigen. Patch by Tobias Oelgarte.
2011-11-13 12:25:14 +00:00
Sergey Sharybin
fe6ad36060
Fix compilation error for win32.
...
That static align trick i've wrote about is still necessary.
2011-10-25 18:13:12 +00:00
Campbell Barton
8732ae3a0b
edits to cmake
2011-10-25 13:41:43 +00:00
Sergey Sharybin
3d903ee3ff
Libraries upgrade:
...
- Upgrade Eigen2 library to Eigen3
- Upgrade colamd library and placed in extern/ so other libraries from extern/ can use it
NOTE: With previous version of Eigen (3.0.1) it was necessary to define
EIGEN_DONT_ALIGN_STATICALLY macro to make it compilable on windows 32bit.
After latest upgrade it seems to be unnecessary (at least when was testing libmv),
so i removed that defines which can reduce speed and lead to other problems.
2011-10-25 12:37:42 +00:00
Bastien Montagne
c49cdf5eec
Another set of UI messages fixes and tweaks! No functional changes.
2011-10-23 19:54:06 +00:00
Bastien Montagne
8a6a3dbb54
Fix for commit 41227 (Some opening comment tags (/*) were lost!).
2011-10-23 19:39:20 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Campbell Barton
507aa1cd22
fix for crash loading a file saved with fluidsim when blenders compiled with it disabled.
...
also remove unneed class prefix on function name for itasc.
2011-09-18 11:08:34 +00:00
Campbell Barton
c96f28a718
- use %u rather tham %d for unsigned ints in string formatting funcs.
...
- replace (strlen(str) == 0) with str[0]=='\0'
2011-08-27 03:25:02 +00:00
Campbell Barton
33e554799b
Minor warning cleanup & fix
...
- comment/remove assignments from values to themselves.
- add case break statements (no functional change but some source code checkers notice).
- fix python errors when the sculpt brush is None.
2011-06-27 03:36:14 +00:00
Campbell Barton
09da9d4393
cmake maintenance
...
blender_add_lib now takes a separate include argument to suppress warnings in system includes (mostly ffmpeg & python).
also only build wm_apple.c on apple+carbon configuration.
2011-05-31 01:15:44 +00:00
Campbell Barton
b11f29c8ac
clear some c++ warnings.
2011-03-27 07:56:29 +00:00
Nathan Letwory
b52453e8d6
doxygen: intern/itasc tagged
2011-02-25 11:45:16 +00:00
Campbell Barton
89c617a116
remove nan-makefiles
2011-01-30 15:29:22 +00:00
Campbell Barton
5e382eb8e5
rename blenderlib to blender_add_lib
2010-12-22 23:09:30 +00:00
Campbell Barton
afacd18498
use lowercase for cmake builtin names and macros, remove contents in else() and endif() which is no longer needed.
2010-12-08 08:43:06 +00:00
Campbell Barton
e8397e6193
include headers in cmake source, added a script to check for consistency, reporting missing headers & C files.
...
this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.
2010-11-29 04:35:56 +00:00
Campbell Barton
f383e2e0e6
Remove msvc build files which are not needed anymore.
2010-10-23 15:14:54 +00:00
Campbell Barton
c6976e7351
use explicit file paths for CMake rather then globing, This is recommended by cmake devs.
...
globbing vs explicit is discussed here.
http://www.cmake.org/pipermail/cmake/2008-December/025694.html
Practical implications are:
- developers need to keep CMakeLists.txt files up to date.
- Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-23 04:05:55 +00:00
Campbell Barton
dea59cc5eb
warning fixes and minor cmake changes.
2010-09-18 03:55:56 +00:00
Campbell Barton
4b40d73bfb
rename most scons build targets to match cmake
2010-08-25 04:30:47 +00:00
Campbell Barton
6464718083
rename some cmake build targets
2010-08-24 04:29:23 +00:00
Campbell Barton
75410037fd
- correct some spelling errors.
...
- remove FreeCamera struct (wasnt used)
- remove world color alpha values (not used anywhre).
2010-07-20 10:41:08 +00:00