5621e63d36
Code cleanup: duplicate headers
2014-02-14 10:55:38 +11:00
28936a4150
Patch T31269: Add sewing seams to cloth simulation
...
Description:
--------------------------
Use loose edges marked as seams as sewing springs.
Usage:
-------------------------
All this patch does is set the rest length to 0 and the stiffness to 1 for springs for loose edges marked as seams so that during the cloth simulation they will be brought together.
Example Video:
-------------------------
http://www.youtube.com/watch?v=-Y_bC0gjoM0
Original Patch by thesleepless (+ git patch by codemanx)
Thank you!
2014-02-06 18:55:08 +01:00
beae4f498d
code cleanup: spelling
2013-10-31 14:10:01 +00:00
585272fbcf
cloth was using edgehash not quite correctly:
...
- was ordering vertex args unnecessarily.
- was adding the same edges multiple times into the edgehash.
2013-08-24 16:06:18 +00:00
1ba29c3a4a
cloth spring building: replace MIN2/MAX2 in assignments with a function which orders on assignment.
2013-08-24 15:55:56 +00:00
8811e521c0
fix for leak in cloth modifier
...
- any error in cloth_build_springs wasn't freeing the edge-hash.
- was checking BLI_edgehash_haskey on matching vertices.
- was looping over setting NULL for all elements of a calloc'd array.
2013-08-24 14:32:43 +00:00
f2acb10b6b
edge hash: take an arg for the guarded-malloc string (as ghash does)
2013-08-24 13:08:55 +00:00
be7004237c
cloth: Fix [ #36224 ] Cloth Simulation Doesn't Work on Rearranging Modifiers
...
Don't return imediately when simulation has changed.
It's not needed and prevented proper initialization on startframe when
simulation changed.
2013-07-22 15:35:29 +00:00
0807c976f4
code cleanup: rename BKE_mesh_to_curve_ex --> BKE_mesh_to_curve_nurblist,
...
also correct odd indentation.
2013-03-15 10:48:48 +00:00
f2bb536994
code cleanup: also change BKE_blender.h BLENDER_VERSION_CHAR to 'a' so as not to confuse things.
2013-03-05 14:47:49 +00:00
8b8d4ba7ef
sim: Remove "continue physics" code
...
This was left over from 2.4x days and is not used anymore.
Now simulations are always interactive.
2013-01-22 20:47:03 +00:00
857df8065f
style cleanup
2012-12-28 14:19:05 +00:00
ec67334e25
A few more BMesh errors messages translated, and "automated" translation for modifers too!
2012-10-27 11:12:09 +00:00
ddc2dbc2a4
style cleanup
2012-10-22 08:15:51 +00:00
d599b643b7
style cleanup: bge, switch statements mostly.
...
also left bmesh decimator on in previous commit.
2012-10-21 07:58:38 +00:00
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
f92305fcb4
Bugfix [ #32677 ] Cloth Pinning Does Not Obey Weight Map
...
Problem occured when having more than one weight map available.
2012-10-09 12:59:20 +00:00
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
e297e6b64b
Bugfix Cloth: Hooks were broken by recent changes.
...
This makes it looks like if part 1 of the Dynamic Paint regression blend file fails, but actually it's correct.
2012-08-12 22:54:35 +00:00
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
863aee6caf
Bugfix/Enhancement: Cloth didn't support animated vertex groups like the "Vertex Weight" modifier.
...
Regression blend file: http://wiki.blender.org/uploads/b/b8/Cloth_anim_vertex.blend
Thanks to Kologe for reporting this problem and also providing the regression blend file.
2012-08-09 13:33:27 +00:00
0b5a995cfd
code cleanup: rename G.rt to G.debug_value
2012-08-08 18:21:54 +00:00
84bf3e48c0
style cleanup: use c style comments in C code
2012-07-06 23:56:59 +00:00
74c9c24d27
style cleanyp
2012-06-23 23:22:19 +00:00
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
0499200e39
Cloth: Add support for "Self Collision Vertex Group".
...
Self collision vertex groups enable artists to exclude selected vertices from getting involved in self collisions. This speeds simulations and it also resolves some self collision issues.
2012-06-06 13:30:05 +00:00
dab1d8e487
style cleanup
2012-05-22 22:03:41 +00:00
9dd981a440
style cleanup: block comments
2012-05-16 23:37:23 +00:00
8242f624a1
Cloth: Revert triangulation after talking with brecht.
...
People: Better use subsurf after cloth since you can get failing collisions otherwise!
2012-05-15 12:26:29 +00:00
763a16cb70
Cloth:
...
- Triangulate Cloth Mesh for collisions
- Speed up collisions
- Remove EL Topo code
- Prepare code to incooperate El Topo self collisions (TODO next commits)
TODO:
----------
- Triangulation: Is custom data/uv preserved correctly?
- Use MPoly not tessface?
2012-05-15 11:14:50 +00:00
343edf2722
style cleanup: function calls & whitespace.
2012-04-29 17:11:40 +00:00
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
b56aabf815
style cleanup: multi-line if statements.
2012-04-21 15:11:03 +00:00
5aaf3ede76
code cleanup: remove unused var for windows and style edit (remove spaces between 'var[num]')
2012-04-12 00:15:02 +00:00
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
9beef61199
Fix format string warnings (gcc) by using string literals.
...
gcc 4.6 was giving warnings like this:
"warning: format not a string literal and no format arguments [-Wformat-security]"
2012-03-19 21:38:35 +00:00
1f6ae5e4fb
Minor UI messages fixes, and enabling i18n for all modifier_setError() error messages.
2012-03-17 14:27:46 +00:00
46045fbb09
style cleanup - braces & else / if's
2012-03-07 04:53:43 +00:00
31d2ee9bf7
style cleanup, brackets in else/if, some indentation.
2012-03-06 18:40:15 +00:00
d0412a1981
svn merge ^/trunk/blender -r43864:43887
2012-02-05 02:30:30 +00:00
deec4ce0bc
Code Cleanup: avoid double promotion.
2012-02-04 06:55:29 +00:00
de4eeb9694
svn merge ^/trunk/blender -r43693:43733
2012-01-26 19:20:33 +00:00
5d49eff25a
Fix #29957 : Texture "Generate" mapping work as global with cloth modifier
...
Make Cloth modifier deformation only so now it applies on orco dm properly.
2012-01-26 17:03:30 +00:00
5cc898ada2
svn merge ^/trunk/blender -r43616:43639
2012-01-23 16:46:35 +00:00
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
b308e61312
svn merge ^/trunk/blender -r43220:43278 --accept postpone
2012-01-11 14:14:04 +00:00
8198880d44
Fix #29793 : Physics go crazy if frames get skipped
...
Calculate cloth and softbody only for single frame time deltas
(like it's already done for smoke)
2012-01-09 14:08:06 +00:00
e59ab6486f
svn merge -r41751:41779 ^/trunk/blender
2011-11-15 02:05:32 +00:00
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +00:00