Bastien Montagne
318b44fe5d
Refactor of modifiers' apply function: now use a single bit-flag parameter to pass options, instead of having one parameter per boolean flag (i.e. replaces current useRenderParams and isFinalCalc by a single ModifierApplyFlag flag. ModifierApplyFlag is an enum defined in BKE_modifier.h). This way we won't anymore have to edit all modifier files when e.g. adding a new control flag!
...
Should have no effect over modifier behavior.
2012-05-09 15:00:26 +00:00
Campbell Barton
3d8e58751c
style cleanup: modifiers
2012-05-06 13:38:33 +00:00
Campbell Barton
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
Campbell Barton
6327c9aae1
style cleanup: whitespace, braces
2012-05-01 20:08:23 +00:00
Campbell Barton
5a90ea77bc
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:24:53 +00:00
Campbell Barton
89a963fb7f
style cleanup: comment blocks
2012-03-09 18:28:30 +00:00
Campbell Barton
543fb27fd0
support for 'origspace' data layer - used for hair on subsurf mesh.
...
currently only works for 3/4 sided faces.
2012-02-05 11:30:26 +00:00
Campbell Barton
2ea8a3b8ca
remove CDDM_copy second argument, added CDDM_copy_from_tessface instead.
...
this function caused too many conflicts and in most cases was zero anyway.
2012-01-29 21:59:47 +00:00
Campbell Barton
1b505e6d1b
replace CDDM_calc_normals_mapping with CDDM_calc_normals when used within modifiers.
...
this way modifiers wont be calculating tessface's which CDDM_calc_normals_mapping will do if not already calculated.
2012-01-20 13:25:54 +00:00
Campbell Barton
ded0af482b
rename CDDM_calc_normals() --> CDDM_calc_normals_mapping
2012-01-06 00:12:24 +00:00
Campbell Barton
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +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
55a560c0c4
svn merge -r39286:39385 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-08-16 06:30:14 +00:00
Brecht Van Lommel
c265a686d8
Modifiers: add callback to loop over each texture assigned to a modifier.
2011-08-12 18:11:22 +00:00
Joseph Eagar
c98148a963
=bmesh= merge from trunk at r36153
2011-04-15 01:19:13 +00:00
Campbell Barton
9997c3c895
modifiers: floats were being implicitly promoted to doubles, adjust to use floats.
2011-03-27 13:49:53 +00:00
Campbell Barton
53139432dd
image.depth, 96/128 for float color images, was 24/32 for byte images.
...
also use <> for system includes
2011-03-09 01:25:59 +00:00
Campbell Barton
c7fccc84bf
use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.
2011-03-05 10:29:10 +00:00
Joseph Eagar
f01261d040
merge with/from trunk at r35190
2011-02-27 06:19:40 +00:00
Nathan Letwory
caa7bea1c5
doxygendoxygen: blender/modifiers tagged.
2011-02-25 13:57:17 +00:00
Campbell Barton
aed7eaf0d9
sphinx doc gen: multiple examples possible and include the scripts docstring inline in sphinx.
...
also tag unused vars
2011-02-16 17:31:04 +00:00
Janne Karhu
f6911cfe38
Fix for [ #26102 ] Particle Texture mismapped on Multires (in some modes)
...
* Particle modifier didn't check for particle textures using uv-coordinates properly.
2011-02-16 11:38:28 +00:00
Sergey Sharybin
329e2d8037
Todo issue: sculpting on deformed mesh
...
Used a crazyspace approach (like in edit mode), but only modifiers with
deformMatricies are allowed atm (currently shapekeys and armature modifiers only).
All the rest modifiers had an warning message that they aren't applied because
of sculpt mode. Deformation of multires is also unsupported.
With all this restictions users will always see the actual "layer" (or maybe
mesh state would be more correct word) they are sculpting on.
Internal changes:
- All modifiers could have deformMatricies callback (the same as deformMatriciesEM but
for non-edit mode usage)
- Added function to build crazyspace for sculpting (sculpt_get_deform_matrices), but it
could be generalized for usage in other painting modes (particle edit mode, i.e)
Todo:
- Implement crazyspace correction to support all kinds of deformation modifiers
- Maybe deformation of multires isn't so difficult?
- And maybe we could avoid extra bad-level-stub for ED_sculpt_modifiers_changed
without code duplicating?
2011-01-31 20:02:51 +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
Janne Karhu
a601fd8893
Bug fix: unbaked particle cache was cleared from current frame onwards on file load.
2011-01-07 17:27:27 +00:00
Janne Karhu
8df8b42144
Fix for [ #24877 ] Cloth + hair bug
...
* Particles needed the original index layer, but didn't ask for it.
2010-11-24 11:37:09 +00:00
Janne Karhu
a12d0fc836
Fix for [ #24409 ] Particle corruption after rendering with multires
...
* Also removed some unused flags from the particle modifier.
2010-10-30 10:19:30 +00:00
Campbell Barton
e2f1740761
use custom data mask defines, no functional changes.
2010-10-21 01:55:39 +00:00
Campbell Barton
fbf208d63f
add UNUSED() to modifiers, also removed some unused args.
2010-10-14 06:29:17 +00:00
Campbell Barton
81b6d308a7
[ #23673 ] Modifier construction gives correct result in viewport but incorrect in render.
...
When there are 2+ consecutive deform modifiers, the second modifier was getting incorrect normals, this only showed up for the displace modifier since its the only deform modifier that uses vertex normals.
It would have been easy to fix this by always calculating normals on deform modifiers, but slow.
To fix this I added a function to check if a deform modifier needs normals, so the normal calculation function only runs if there are 2 modifiers in a row and the second uses normals.
2010-09-30 10:51:36 +00:00
Joseph Eagar
c11c196efa
part 1 of merge from trunk at r30358; it compiles, but doesn't link quite yet :)
2010-07-19 04:44:37 +00:00
Campbell Barton
85590301a5
fix for crash when a register script sets material colors, also made some changes to modifier formatting.
2010-04-13 22:43:48 +00:00
Campbell Barton
4824e7eeeb
modifier include cleanup, this might need fixes on other systems but hard to avoid.
...
also removed unused stuff from cmake modifier file
2010-04-12 22:33:43 +00:00
Campbell Barton
9563a85242
more header cleanups
2010-04-12 01:09:59 +00:00
Campbell Barton
8c3ab1c2a4
- use more inline math funcitons where possible
...
- swapped in less verbose math functons
- modifier include cleanup
2010-04-12 00:36:50 +00:00
Guillermo S. Romero
fbf8287ed1
SVN maintenance.
2010-04-11 23:20:03 +00:00
Campbell Barton
909493eac9
booleanops.c was moved to MOD_boolean_util.c, remove empty file.
2010-04-11 22:20:02 +00:00
Campbell Barton
3fdaf5cecc
[ #14437 ] Modifier Stack Refactor
...
patch by Ben Batt (artificer)
Updated patch for 6 or so modifiers added since the patch was written.
- tested with CMake and SCons
- fixed one error were flags were being added to the fluids type.
- remove BKE_simple_deform.h, simple_deform.c, move functions into MOD_simpledeform.c since there were problems with circular deps.
- moved some fluid and boolean functions used by modifiers too.
2010-04-11 22:12:30 +00:00