Campbell Barton
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
Campbell Barton
e75f5c8208
quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.
...
helps for finding unused functions and making functions static, also did some minor code cleanup.
2012-09-15 01:52:28 +00:00
Campbell Barton
a9f10b6bc2
style cleanup
2012-09-08 06:40:03 +00:00
Daniel Genrich
32a8d7cbdf
Bugfix: Cloth did not work with Dynamic Paint.
...
Fix 1: Pinned vertices were never released when "unpinned" by Dynamic Paint.
Fix 2: When pinning vertices during simulation, they would get "warped" to their original starting position of frame 1.
Thanks to MiikaH for pointing this out and also for providing the regression blend file: http://wiki.blender.org/uploads/a/ab/Cloth_dynamic_paint.blend
2012-08-10 00:04:15 +00:00
Campbell Barton
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
Campbell Barton
32cf7fcdb1
code cleanup: spelling
2012-07-16 23:23:33 +00:00
Campbell Barton
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
Campbell Barton
f5f25b81e8
style cleanup:
...
also fix for building ghost test and fix double free in one of the tests
2012-06-17 09:58:26 +00:00
Campbell Barton
d5032657ed
style cleanup
2012-06-06 22:38:39 +00:00
Campbell Barton
1b47e2678e
style cleanup: missed these from previous cleanup
2012-04-29 17:55:54 +00:00
Campbell Barton
343edf2722
style cleanup: function calls & whitespace.
2012-04-29 17:11:40 +00:00
Campbell Barton
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
Campbell Barton
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
Campbell Barton
5c89138684
style cleanup: comments
2012-04-22 11:54:53 +00:00
Campbell Barton
b56aabf815
style cleanup: multi-line if statements.
2012-04-21 15:11:03 +00:00
Campbell Barton
c9e1ced4dd
code cleanup: (dont include ';' in defines), last commit also missed changes to paint_image.c
2012-03-28 01:06:43 +00:00
Campbell Barton
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
Campbell Barton
69e6894b15
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:18:31 +00:00
Campbell Barton
dfdfa3d51b
code cleanup: replace macros VECCOPY, VECADD, VECSUB, INPR - with BLI_math funcs.
...
added copy float/double funcs: copy_v3fl_v3db(), copy_v3db_v3fl(). 2d & 4d too.
2012-03-09 06:04:17 +00:00
Campbell Barton
46045fbb09
style cleanup - braces & else / if's
2012-03-07 04:53:43 +00:00
Campbell Barton
47c373c7a9
style cleanup (mostly whitespace)
2012-02-27 10:35:39 +00:00
Daniel Genrich
37e1285042
Cloth: Add "velocity damping" to damping options. This will help with the "cloth wobbling" problem which accurs quite often when having animated characters with cloth.
2012-01-23 01:35:14 +00:00
Campbell Barton
bb934ad883
Ocean baking was using uninitialized memory, but further investigation it was calculating foam values when they were not used.
...
avoid calculating foam and allocating memory when its not needed.
2011-11-14 05:55:50 +00:00
Campbell Barton
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +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
Bastien Montagne
f65c72afaf
Commented and tagged some unused vars, added some var init (gcc warnings...).
...
Won’t go further, most other warnings are from GE or intern/extern lib code...
2011-09-29 15:28:22 +00:00
Campbell Barton
274b9c8fb8
whitespace cleanup
2011-09-25 12:31:21 +00:00
Campbell Barton
07ee0dcc74
build system changes to eltopo, re-applied.
2011-05-02 03:44:02 +00:00
Joseph Eagar
088899236b
=trunk=
...
Recommitted eltopo collision code (but disabled by default)
with Genscher's permission.
To use, you need to install liblapack and libblas
2011-05-01 21:39:13 +00:00
Nathan Letwory
0ff06e21cd
doxygen: blender/blenkernel tagged.
2011-02-27 20:40:57 +00:00
Guillermo S. Romero
00c05c8404
Clean up headers a bit more.
2011-02-23 18:03:40 +00:00
Campbell Barton
799e9c48c1
comment dead code and fix 2 missing NULL checks (pointer used after NULL check and checking against incorrect pointer before use).
2011-01-22 03:50:09 +00:00
Campbell Barton
63018144ba
remove redundant assignments & unused vars.
...
also minor functional changes
- OBJECT_OT_make_links_data() type property is now assigned to the operator property (so popup menu can find it)
- removing BG image now returns cancelled if no image is removed.
2011-01-12 03:41:12 +00:00
Campbell Barton
89c9aaaa25
remove references to BKE_utildefines where its not needed.
...
- move GS() define into DNA_ID.h
- add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07 19:18:31 +00:00
Campbell Barton
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
Campbell Barton
7c86a1a95c
compile fixes for mingw32.
2010-12-03 16:45:04 +00:00
Campbell Barton
cd97253502
- added GCC warning -Wstrict-prototypes
...
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
Campbell Barton
66b274766a
minor c90 compat edits. (no functional changes).
2010-11-05 13:37:18 +00:00
Nathan Letwory
c9d16d0ddb
/WX enabled for MSVC in CMake too.
...
Warning fixes.
2010-10-21 08:32:53 +00:00
Campbell Barton
30b79ddcc6
- fixed remaining unused warnings.
...
- omit render code from this warning (cmake only), until render branch is merged.
- moved -Wunused-parameter warning to apply to all C code in blender (not just ./source/blender), (cmake only).
2010-10-17 06:38:56 +00:00
Campbell Barton
8268a4be71
most unused arg warnings corrected.
...
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating).
- mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-10-16 14:32:17 +00:00
Campbell Barton
728b713d86
use more BLI math functions.
2010-08-15 15:14:08 +00:00
Campbell Barton
15669532a2
header re-shuffle, some headers contained unneeded refereces to other headers, better include inline with the C files that need them
2010-08-10 05:41:51 +00:00
Brecht Van Lommel
f7c4dd6d56
Merge back a few cloth solver fixes from the render branch:
...
* Disable openmp for dot product, this gives different results each
time due to non-commutative floating point add.
* Disable openmp with few vertices, the extra thread overhead only
slows things down then.
* Replace the hack that would divide stepsPerFrame and then set it
back, now it simply uses the timescale in the collision function.
This was incorrect because stepsPerFrame is an int, but we don't
want this to be rounded.
* Extra out of bounds check for hair velocity smoothing grid.
2010-05-25 13:33:59 +00:00
Brecht Van Lommel
666cca69e9
Cloth simulation can now use a group to specify which objects
...
to collide with, in addition to the effectors group.
(commit 27746 by Brecht from render25 branch)
2010-03-26 10:52:55 +00:00
Campbell Barton
546ca400d8
removed unused includes, except for physics and particle related files
2010-03-21 13:42:25 +00:00
Janne Karhu
cf4ba30f79
Few small hair dynamics goodies:
...
* Effectors now work with hair dynamics.
* Hair dynamics has a new "Collider Friction" parameter that works similarly to internal friction except now all collision objects effect the hair velocity. Useful for quick'n'dirty interaction with objects as the calculations are really fast, but doesn't really take away the need for proper hair-object collisions.
2010-02-26 03:24:21 +00:00
Campbell Barton
aebe86bef1
hair was running collision functions (copy to/from collision arrays), even when collision could not be done.
2010-02-24 18:06:51 +00:00
Campbell Barton
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
Joshua Leung
6dcb4ac7a4
* Fixing various compiler warnings under scons+mingw. Mostly unused variables and functions.
...
* Added missing lib-linking code for Grease Pencil in nodetrees
* Uncommented some code for curve shapekeys
2009-11-11 09:59:51 +00:00