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
2019-01-18Add miter pattern options.Howard Trickey
Will document the new options in release notes, then in manual. Still a bit of work to do on the bulging shape that appears on cube corners if using arc inner miters, but will do that later. Also need to do something smarter in clamp overlap.
2019-01-16Multires: Prepare for cached topologySergey Sharybin
Note that the actual caching is still disabled, since more tests is needed with more production-looking files.
2019-01-16Subdiv: Initial implementation of topology cacheSergey Sharybin
This commit makes it so OpenSubdiv's topology refiner is kept in memory and reused for until topology changes. There are the following modifications which causes topology refiner to become invalid: - Change in a mesh topology (for example, vertices, edges, and faces connectivity). - Change in UV islands (adding new islands, merging them and so on), - Change in UV smoothing options. - Change in creases. - Change in Catmull-Clark / Simple subdivisions. The following limitations are known: - CPU evaluator is not yet cached. - UV islands topology is not checked. The UV limitation is currently a stopper for making this cache enabled by default.
2019-01-15Cleanup: comment line length (DNA)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-14Cleanup: move comments above definitionsCampbell Barton
For clang-format not to wrap definitions.
2019-01-07Cleanup: corrections to last commitCampbell Barton
2019-01-07Cleanup: move DNA comments before struct membersCampbell Barton
Needed for clang-format in some cases, see: T53211
2019-01-03Fix T58113 Multiple problems with bevel harden normals.Howard Trickey
Move the bevel hardening code all into bmesh_bevel.c. Based on user feedback, rewrote the bevel hardening algorithm to be more what users want. Based on user feedback, changed the UI, removing some not-useful options. Now hardening normals while beveling is enabled by a simple checkbox. Now setting face strength gives options for which faces get their face strength set.
2018-12-17Merge branch 'master' into blende2.8Campbell Barton
2018-12-17Cleanup: use bit-shifted flag definitions in DNACampbell Barton
2018-12-07Cleanup/refactor binding code for MeshDeform modifier.Bastien Montagne
We had two different ways of doing it, SurfaceDeform and LaplacianDeform would do it through a special modifier stack evaluation triggered from binding operator, while MeshDeform would do it through a regular depsgraph update/eval (also triggered from its binding op). This enforces the later to search back for orig modifier data inside modifier code (to apply binding on that one, and not on useless CoW one). Besides the question of safety about modifying orig data from threaded despgraph (that was *probably* OK, but think it's bad idea in general), it's much better to have a common way of doing that kind of things. For now it remains rather dodgy, but at least it's reasonably consistent and safe now. This commit also fixes a potential memleak from binding process of MeshDeform, and does some general cleanup a bit.
2018-12-05Minor cleanup in Laplacian deform modifier DNA code.Bastien Montagne
2018-11-21Cleanup: use boolean array for mirror modifierCampbell Barton
2018-11-21Modifier: Mirror learns to bisect on planeCampbell Barton
D3966 by @kioku w/ edits. This adds bisect and flip options to mirror modifier.
2018-11-06Shrinkwrap: new mode that projects along the target normal.Alexander Gavrilov
The Nearest Surface Point shrink method, while fast, is neither smooth nor continuous: as the source point moves, the projected point can both stop and jump. This causes distortions in the deformation of the shrinkwrap modifier, and the motion of an animated object with a shrinkwrap constraint. This patch implements a new mode, which, instead of using the simple nearest point search, iteratively solves an equation for each triangle to find a point which has its interpolated normal point to or from the original vertex. Non-manifold boundary edges are treated as infinitely thin cylinders that cast normals in all perpendicular directions. Since this is useful for the constraint, and having multiple objects with constraints targeting the same guide mesh is a quite reasonable use case, rather than calculating the mesh boundary edge data over and over again, it is precomputed and cached in the mesh. Reviewers: mont29 Differential Revision: https://developer.blender.org/D3836
2018-10-29Merge branch 'master' into blender2.8Campbell Barton
2018-10-29Modifier: mask threshold optionCampbell Barton
D3834 by @Allosteric
2018-10-01Shrinkwrap Constraint: implement projection features from the modifier.Alexander Gavrilov
Allow raycasting in two directions and culling front or back faces. Also implement a new Invert Cull option in both constraint and modifier that can be used to aim for faces aligned with the project axis direction when raycasting both ways. Reviewers: mont29 Differential Revision: https://developer.blender.org/D3737
2018-09-26Implement additional modes for Shrinkwrap to a surface.Alexander Gavrilov
In addition to the original map to surface and Keep Above Surface, add modes that only affect vertices that are inside or outside the object. This is inspired by the Limit Distance constraint, and can be useful for crude collision detection in rigs. The inside/outside test works based on face normals and may not be completely reliable near 90 degree or sharper angles in the target. Reviewers: campbellbarton, mont29 Differential Revision: https://developer.blender.org/D3717
2018-09-24Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-08-14Multires: Synchronize settings with Subsurf modifierSergey Sharybin
Currently no functional changes, just exposes all settings which we need for OpenSubdiv, similar to what Subsurf modifier is doing already. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3602
2018-08-13Subsurf: Introduce quality optionSergey Sharybin
For users it defines how accurate vertex positions are in terms of limit surface (as in, how close the vertices locations to the condition when they are calculated for an infinitely subdivided mesh). This affects things like: - Irregular vertices (joint of 3 or more edges) - Crease Keep quality value low for performance. NOTE: Going higher does not necessarily mean real improvement in quality, ideal case might be reached well before maximum quality of 10. Quality of 3 is a good starting point. Internally quality is translated directly to adaptive subdivision level. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3599
2018-08-13Subsurf: Remove OpenSubdiv options from modifierSergey Sharybin
There are following reasons to do so: - The plan is to replace it with some sort of object or viewport option, so we can apply OpenSubdiv subdivisions on top of modifier stack and keep modifier stack purely CPU side. This will solve issues when adding some relation in scene will force modifier to be evaluated on CPU. - With new upcoming OpenSubdiv based CPU modifier implementation we can cache topology similar to what GPU side was doing, which will already be reasonably faster. - OpenSubdiv GPU does not work since the OpenGL version bump, and is to be rewritten with all the adaptive refine options kept in mind. Since OpenSubdiv GPU was already broken and was only causing object to become invisible, there is no reason to keep having that option in the modifier. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3598
2018-08-13Subsurf: Make uv boundaries easily extendibleSergey Sharybin
This replaces old single toggle option to subdivide UVs with an enum which can have more options. The usecase for this is to be compatible with other software. But we also might choose different subdivision type as default in the future. DNA and underlying code supports all possible options, but only the ones which are compatible with old subdivision code are currently exposes. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3575
2018-07-21Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-07-19Code cleanup and fixesRohan Rathi
2018-07-18Subsurf: Add subdivision code which uses new moduleSergey Sharybin
The code is ifdef-ed for now, since there is more work needed to be done before we can officially switch to it. Uses new subdiv module.
2018-07-10Ocean Modifier: refactored the delayed-refresh approachSybren A. Stüvel
The approach of setting 'refresh' flags on the modifier, and performing the associated actions when the modifier is being evaluated, is a bad one. Instead, we use the separation of the original and the evaluated copy to 'refresh' certain things (because they simply aren't set at all on the original). Other actions are now done directly with BKE_ocean_xxx functions on the original data, intead of during evaluation.
2018-07-06Merge remote-tracking branch 'origin/master' into blender2.8Sybren A. Stüvel
2018-07-06Ocean Modifier: removed unused refresh flagsSybren A. Stüvel
The flags were set and cleared correctly, but nothing was actually reading them.
2018-07-06Ocean Modifier: removed the MOD_OCEAN_REFRESH_ADD flagSybren A. Stüvel
The flag was only used in readfile.c, and resulted in a delayed call to BKE_ocean_add(); this call is now immediately made instead as it's not very expensive.
2018-07-04Fluid Sim: Removed unused PointCache pointerSybren A. Stüvel
The only uses were setting it to NULL and asserting it is NULL.
2018-07-04Cloth simulation: share point cache between CoW copies of objectsSybren A. Stüvel
2018-07-02Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-07-02Refactored bevel normal editing functionality.Rohan Rathi
2018-06-27Patch to fix shading continuity.Rohan Rathi
Added it as extension to harden. Tried out different methods to fix normals, Though as with width and segments changes shape, orientation of new polys a non-smooth method of fix was not possible. Current method aggregates vertex normals into a smooth fan without affecting edge shading. Still need to fix the crease at new vertex edges
2018-06-22Added UI for harden normals and normal control in bevel modifierRohan Rathi
2018-06-22Modifiers: Remove remaining parts of md->sceneSergey Sharybin
2018-06-22Cloth: Move away from scene stored in cloth modifier dataSergey Sharybin
2018-06-20Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-06-19Added face strength in bevel modifierRohan Rathi
The selected face strength (Weak/Medium/High) can be used by the WN Modifier to determine influence of current face in
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for DNA headersCampbell Barton
2018-06-14Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/modifiers/intern/MOD_normal_edit.c source/blender/windowmanager/intern/wm_files.c
2018-06-14Fix T55470: Add option to not fix polygons' winding to Edit Normals modifier.Bastien Montagne
this is actually adding option to add buggy behavior, but.. NPR often expects buggy behaviors, and its one of the main targets for normal editing. So think it's reasonable to add that option (disabled by default of course). Note that am not really happy with UI, but: * Not sure where to put it, it's kind of own self-contained area option. * Don't to make it too much visible, using this should be the exception!
2018-06-11Added ability to harden normals.Rohan Rathi
Uses 2 different params: mode and strength. There are still some hiccups with how 2.8 interacts with normals. Will resolve as support gets better
2018-06-04Added UI support for seams and sharp edges and cleanupRohan Rathi
2018-05-29Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-05-26Fix T55207, fix T55208: hair not positioned correctly after subsurf.Brecht Van Lommel
The problem was that the particle system modifier was reading ob->derivedDeform during modifier stack evaluation. Due to the mesh -> DM conversion this was no longer set leading to wrong results. In fact we don't really need the deformed mesh, just the original mesh topology for face/poly index remapping. So the solution is to use that instead.