Campbell Barton
c84b8d4801
Cleanup: modifier arg wrapping
2018-05-12 08:04:56 +02:00
Bastien Montagne
3740f7593d
Cleanup: Nuke empty dummy wrappers around modifier_copyData_generic().
...
This also changes signature of modifier copy callback, first (source)
parameter is now a const, which is saner anyway!
2018-05-08 15:04:10 +02:00
Sergey Sharybin
df04520602
Depsgraph: Wrap all arguments foe modifiers relations update into a struct
...
Makes it easier to add or remove fields needed to update relations.
2018-02-22 12:54:06 +01:00
Campbell Barton
6554207841
Add deform axis for Simple Deform modifier
...
D2989 by @dmarra w/ own edits
2018-01-09 15:09:55 +11:00
Bastien Montagne
60e387f5e3
Cleanup: Rename callback flags from library_query to IDWALK_CB_...
...
Better to have clear way to tell whether flag is parameter for
BKE_library_foreach_ID_link(), parameter for its callback function, or
return value from this callback function.
2017-01-31 09:47:59 +01:00
Philipp Oeser
7a8bd2eaea
Fix T47737: Lattice crashes w/ smooth modifier
...
Add flag for modifiers that support lattice
2016-05-18 22:46:29 +10:00
Campbell Barton
42e8660272
Simple Deform modifier: invert vgroup option
...
D1839 from @Orgold
2016-03-07 11:28:21 +11:00
Bastien Montagne
f375028a25
Modifiers: add 'cd_flag' parameter to their ID looping callbacks, needed
...
since some IDs (objects) are not 'refcounted' while others (textures) are...
Partial merge from id-remap branch.
2015-10-08 15:05:37 +02:00
Bastien Montagne
e5552f8241
Cleanup: use proper ObjectWalkFunc typedef in modifiers' object callback func.
...
Also, fix own stupidity, no need to define ID callback in case we only have objects,
calling code knows to fallback to `foreachObjectLink()` when `foreachIDLink()` is missing...
2015-10-05 15:57:10 +02:00
Sergey Sharybin
bac7353801
Depsgraph: New dependency graph integration commit
...
This commit integrates the work done so far on the new dependency graph system,
where goal was to replace legacy depsgraph with the new one, supporting loads of
neat features like:
- More granular dependency relation nature, which solves issues with fake cycles
in the dependencies.
- Move towards all-animatable, by better integration of drivers into the system.
- Lay down some basis for upcoming copy-on-write, overrides and so on.
The new system is living side-by-side with the previous one and disabled by
default, so nothing will become suddenly broken. The way to enable new depsgraph
is to pass `--new-depsgraph` command line argument.
It's a bit early to consider the system production-ready, there are some TODOs
and issues were discovered during the merge period, they'll be addressed ASAP.
But it's important to merge, because it's the only way to attract artists to
really start testing this system.
There are number of assorted documents related on the design of the new system:
* http://wiki.blender.org/index.php/User:Aligorith/GSoC2013_Depsgraph#Design_Documents
* http://wiki.blender.org/index.php/User:Nazg-gul/DependencyGraph
There are also some user-related information online:
* http://code.blender.org/2015/02/blender-dependency-graph-branch-for-users/
* http://code.blender.org/2015/03/more-dependency-graph-tricks/
Kudos to everyone who was involved into the project:
- Joshua "Aligorith" Leung -- design specification, initial code
- Lukas "lukas_t" Toenne -- integrating code into blender, with further fixes
- Sergey "Sergey" "Sharybin" -- some mocking around, trying to wrap up the
project and so
- Bassam "slikdigit" Kurdali -- stressing the new system, reporting all the
issues and recording/writing documentation.
- Everyone else who i forgot to mention here :)
2015-05-12 16:06:37 +05:00
Sergey Sharybin
aa4cb95a5c
Pass proper bmain to the updateDepgraph() of modifiers
...
This is mainly to make physics modifiers being able to work
with it. For other cases this main is not needed.
2015-03-13 12:03:23 +05:00
Campbell Barton
b7d053beaa
Cleanup: warnings & space
2014-11-30 19:28:59 +01:00
Bastien Montagne
3c9e11df37
Cleanup: Move SpaceTransform helpers from BKE_shrinkwrap to BLI_math_matrix.
2014-08-01 16:31:06 +02:00
Campbell Barton
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
Campbell Barton
d5ce2b5466
Fix T39567: simple deform modifier error
2014-04-03 18:57:37 +11:00
Campbell Barton
158b4e61a0
Mesh Modifiers: refactor copying using a generic function
2013-12-22 04:37:26 +11:00
Bastien Montagne
41e70cfb39
Add meaningful default for SimpleDeform modifier's angle prop.
2013-12-11 22:12:10 +01:00
Campbell Barton
7c58ec9337
use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise)
2013-07-26 10:43:23 +00:00
Campbell Barton
f77405356a
remove use_relative option from simple deform,
...
all modifiers should be using object transformations relatively.
2013-07-23 19:31:49 +00:00
Campbell Barton
922320f86e
fix own regression [ #36154 ] Simple deform modifier doesn't recalculate normals
...
get_cddm and get_dm are called within modifiers so they wont ensure normals are valid, added an arg to optionally ensure valid normals.
2013-07-16 08:24:53 +00:00
Campbell Barton
3fab39f76f
style cleanup: modifier structs
2012-10-24 05:45:54 +00:00
Campbell Barton
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
Campbell Barton
3b2962f2ab
remove redundant NULL checks in somepledeform modifier (dcut is never NULL).
2012-09-25 22:05:40 +00:00
Campbell Barton
c1ed602060
default simple deforms Relative option to be enabled, IMHO this shouldn't be an option (objects should always work relative to eachother). At least defaulting to ON gives users more predictable behavior (Transforming both objects together keeps them the same relative to eachother).
2012-09-25 03:00:33 +00:00
Campbell Barton
c41e1e434a
code cleanup: replace MIN2/MAX2 with minf/maxf
2012-07-29 16:59:51 +00:00
Campbell Barton
1a625d1416
code cleanup: use const float's where possible and specify vector size.
2012-06-12 23:19:52 +00:00
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
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +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
46045fbb09
style cleanup - braces & else / if's
2012-03-07 04:53:43 +00:00
Campbell Barton
31d2ee9bf7
style cleanup, brackets in else/if, some indentation.
2012-03-06 18:40:15 +00:00
Campbell Barton
7508540c53
svn merge -r41575:41602 ^/trunk/blender
2011-11-07 07:01:24 +00:00
Campbell Barton
85540d5aa7
more macro --> BLI math lib, mainly replace VECCOPY in render and blenkernel.
2011-11-06 16:38:21 +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
638a93b235
svn merge ^/trunk/blender -r41075:41099
2011-10-18 01:09:00 +00:00
Campbell Barton
61389bba41
fix spelling mistakes in comments (and in some python error messages), nothing to effect translations.
2011-10-17 06:39:13 +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
Campbell Barton
794f3291fe
svn merge -r38200:38300 https://svn.blender.org/svnroot/bf-blender/trunk/blender , source/blender/gpu/intern/gpu_buffers.c updated from trunk and re-made edits to use getTessFace* functions.
2011-07-26 03:00:55 +00:00
Brecht Van Lommel
9fb2e5dde7
Fix #27930 : many modifiers crashed when used on a lattice with a vertex group.
2011-07-11 09:15:20 +00:00
Campbell Barton
b93594bf30
quiet more compiler warnings, also found a bug using printf rather then fprintf.
2011-05-09 05:09:07 +00:00
Campbell Barton
f3a9b7580e
spelling corrections.
2011-04-29 04:43:36 +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
c7fccc84bf
use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors.
2011-03-05 10:29:10 +00:00
Nathan Letwory
caa7bea1c5
doxygendoxygen: blender/modifiers tagged.
2011-02-25 13:57:17 +00:00
Campbell Barton
4124804b4e
many functions in blender are not marked static but should be.
...
most local modifier,GPU,ImBuf and Interface functions are now static.
also fixed an error were the fluid modifier definition and the header didnt have the same number of args.
2011-02-13 14:16:36 +00:00
Campbell Barton
867fc4b463
enforce string limits (reported by pedantic checking tools & some developers).
...
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf().
also fix possible crash if CWD isnt available.
2011-02-13 03:21:27 +00:00