Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-04code cleanup: replace strncpy -> BLI_strncpy, skip first 2 chars when making ↵Campbell Barton
a hash from the object name.
2013-06-10Follow up to r57354: WeightVG and Wave modifiers too need to handle tex id ↵Bastien Montagne
refcount ;)
2013-06-02use booleans for modifiers and api callbacks.Campbell Barton
2013-05-08code cleanup: remove references to BLI_rand.hCampbell Barton
2013-05-02Fix #35174: dynamic paint displacement missing in render.Brecht Van Lommel
A previous bugfix disabled the dynamic paint modifier for orco texture coordinate evaluation of the modifier stack. However the MOD_APPLY_USECACHE flag is not a good way to check if the modifier is evaluated for orcos. Instead I've added a MOD_APPLY_ORCO flag. Also removed a bunch of applyModifierEM callbacks, none of them served a purpose except for the subsurf modifier.
2013-04-16Random number generator: replace a bunch of usage of the global random numberBrecht Van Lommel
generator with a local one. It's not thread safe and will not give repeatable results, so in most cases it should not be used. Also fixes #34992 where the noise texture of a displacement modifier was not properly random in opengl animation render, because the seed got reset to a fixed value by an unrelated function while for final render it changed each frame.
2012-10-22code cleanup: check defgroup_name_index() return value != -1, rather then ↵Campbell Barton
checking >= 0. also remove unused bmesh decimator code.
2012-05-09Refactor of modifiers' apply function: now use a single bit-flag parameter ↵Bastien Montagne
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-06style cleanup: modifiersCampbell Barton
2012-05-06fix for same bug as r46346, incorrect code was copied.Campbell Barton
2012-04-10Fix #30882: using an image sequence in the displace modifier did not updateBrecht Van Lommel
properly in animation rendering.
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-22Renaming CD_WEIGHT_MCOL/MLOOPCOL and their masks from WEIGHT to PREVIEW, as ↵Bastien Montagne
this layer is now also used for various preview tasks in Object mode. “Cleanup” commit, no functional changes.
2012-01-23Merged with trunk (-r43609:43611): updated modifier preview.Bastien Montagne
Noted preview code for DynamicPaint is currently disabled, will see if I can re-enable it…
2012-01-22svn merge ^/trunk/blender -r43564:43609Campbell Barton
2012-01-22Add weight preview to WeightVG modifiers, and first, simple/basic refactor ↵Bastien Montagne
of how modifiers can generate preview. User side: * Preview for DynamicPaint should keep the same behavior (for now). Weight preview should be somawhat quicker, though. * Preview for WeightVG modifiers is only active in WeightPaint mode, and if the affected vgroup is the active one. * Last active preview modifier in stack wins! Note: that modifier preview topic is yet to be further refined, quite raw/incomplete for now. Dev side: * In draw code, renamed DRAW_DYNAMIC_PAINT_PREVIEW flag to DRAW_MODIFIERS_PREVIEW * Removed use of MOD_DPAINT_PREVIEW_READY in DynamicPaint code (seems unecessary, and if it was, should be of more general scope). * Added eModifierTypeFlag_UsesPreview to ModifierTypeFlag, for modifiers that can generate some preview data. * Added three new modifier funcs, to handle preview modifiers in draw code / mod stack. * For weights preview: added the generic DM_update_weight_mcol func, which can update WEIGHT_MCOL layer with either a given array of weights (currently used by DynamicPaint only), or from current active vgroup(s). So now, draw code is fully generic (i.e. no more modifier-type checking in it). Mod stack code is generic to some extent, but will need more work.
2012-01-22Fix a crasher in WeightVG modifiers.Bastien Montagne
Problem was, if no vertices were ever added to one of the obect's vgroups, there is no CD_DEFORMVERT layer, even though there might be several valid vgroup indices... Odd no one noticed that earlier. Many thanks to miikah for finding that bug!
2011-12-21svn merge ^/trunk/blender -r42761:42776Campbell Barton
2011-12-20New modifier type: eModifierTypeType_NonGeometrical, for modifiers affecting ↵Bastien Montagne
CustomData layers only (e.g. UVProject and WeightVG ones). Also, allow applying to obdata those modifiers, even with shapekeys, but do not allow applying them *as* shapekey (as shapekeys do not have CD layers). Fix [#29636] Vertex Weight Mix modifier "apply" button don't work. Note: applying whit shape keys currently always uses base shape, not current one (for apply to obdata as well as apply to shapekey), but this is another topic...
2011-12-20svn merge ^/trunk/blender -r42722:42742Campbell Barton
2011-12-19Much cleaner and satisfying code in weightvg modifiers' "init": copy only ↵Bastien Montagne
the CD_DEFORMVERT data layer (if it's the org one), and not the whole DerivedMesh! Quite oddly, for Proximity mod, this increases the performances of the apply func (about 20-25%, e.g. from 0.04 to 0.03 sec), but decreases the global framerate (e.g. in TEST_5 scene of testing file, I lose about 7%, from 4.6 to 4.3fps (open ATI driver)...).
2011-10-24svn merge ^/trunk/blender -r41226:41227 .Campbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-09-23svn merge ^/trunk/blender -r40432:40491Campbell Barton
2011-09-22Minor: Added doxygen file's doc comments in weightvg modifiers.Bastien Montagne
2011-09-17svn merge -r40166:40279 ^/trunk/blenderCampbell Barton
2011-09-15WeightVG: Made Edit and Proximity also use the new weightvg_update_vg ↵Bastien Montagne
MDeformWeight** parameter (to avoid another vgroup searching). Also added to Proximity a check in case vgroup would have no vertices in it. Plus a few minor edits...
2011-09-15WeightVG utils, weightvg_update_vg func updates.Bastien Montagne
* Added an optional array of MDeformModifier pointers, to avoid another search based on defgrp_idx. * Split out "add/remove verts from vgroup" functions, preparing their move to deform.c (if their current form is validated!).
2011-09-15WeightVG Mix modifier: updated code to use defgrp_find_index, and make ↵Bastien Montagne
MDeformWeights be searched only once. Also fixed a bug: when another set mode than "All Vertices" was used and resulting set of verts was empty, all vertices was used, instead of just returning org, unmodified data!
2011-09-09svn merge -r40034:40051 https://svn.blender.org/svnroot/bf-blender/trunk/blenderCampbell Barton
2011-09-09SVN maintenance.Guillermo S. Romero
2011-09-08svn merge -r39991:40034 https://svn.blender.org/svnroot/bf-blender/trunk/blenderCampbell Barton
2011-09-08edits to new modifiers to work with bmeshCampbell Barton
2011-09-07interface + naming improvements to vertex wright modifierCampbell Barton
- WeightVG -> Vertex Weight - mapping_mode -> falloff_type - nicer layout for VertexWeightModifiers add/remove options
2011-09-07SVN maintenance.Guillermo S. Romero
2011-09-05VGroup Modifiers: added mapping options to proximity and edit.Bastien Montagne
*Added Smooth/Sharp/Root/etc. mappings to WeightVGEdit modifier, in addition to custom curve one. *Added Smooth/Sharp/Root/etc. mappings to WeightVGProximity modifier, without the custom curve one! *Factorized the common mapping code into MOD_weightvg_util.
2011-09-05- vertex group modifiers isDisabled functions were incorrect, need to check ↵Campbell Barton
if the string is set: == NULL will never be true. - was doing NULL checks on freeing memory in cases where the values were already accessed (blender would have crashed anyway), so remove the NULL checks. - use deform.c api weight functions to replace inline weight lookups in some cases. - change if checks in weightvg_do_mask() so its more obvious whats going on.
2011-09-05- mask_tex_map_obj --> mask_tex_map_objectCampbell Barton
- dont allow negative min distances
2011-09-05minor edits.Campbell Barton
- init proximity to 1.0f - min/max proximity dist were not being copied. - minor edits to comments - use ascii chars in a few places.
2011-08-23vgroup_modifiers: Definitively removed addtionnal mapping/clamping options ↵Bastien Montagne
in WeightVGEdit mod, including from DNA struct.
2011-08-17vgroup_modifiers: Removed (commented out, for now) addtionnal ↵Bastien Montagne
mapping/clamping options in WeightVGEdit mod, leaving the only curve mapping stuff. Also, updated all three modifiers with new foreachTexLink walking func.
2011-07-29vgroup_modifiers: Fixed last problems with WP mode, plus a small fix in ↵Bastien Montagne
weightvg_util.c. It seems WeightVG modifiers can’t enable the eModifierTypeFlag_SupportsMapping flag...
2011-07-28minor cleanup of rnaCampbell Barton
- use an rna enum-set for proximity vert/edge/face options. - rename some flags. - better conform to rna naming conventions.
2011-07-27vgroup_modifiers: coded a way to test whether the dm needs to be copied ↵Bastien Montagne
(i.e. if the affected cdata layer is or not the original one). However, as this piece of code tends to slow down things (see e.g. scene 5 of WeightVG test blend file), I deactivated it for now...
2011-07-25Adding WeightVG modifiers code. Still some points to tweak, though.Bastien Montagne
NOTE : Haven’t yet tested build with scons, will do asap (unless someone else does :) ).