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
2018-08-10Cleanup: styleCampbell Barton
2018-08-05Fix indentation, spacing and added commentsRohan Rathi
2018-08-04Initialized normal data in BevModRohan Rathi
2018-08-01Fix more merge stupid leftover, and some build warnings.Bastien Montagne
2018-08-01Fix issues after last 2.8 merge.Bastien Montagne
2018-07-19Code cleanup and fixesRohan Rathi
2018-07-12Fixed shading errors with normals and added proper weightingRohan Rathi
to harden normals to make it consistent with wn modifier
2018-07-11Added support for beveling curvesRohan Rathi
2018-07-10Changed default strength in hardenRohan Rathi
2018-07-03cleanup of extend edge data and fixed minor errorsRohan Rathi
2018-07-03Fixed bugs in normal shading continuity and added supportRohan Rathi
to have corner vertices of a vmesh to have same normal as reconstructed face in harden
2018-07-03Fixed merge errorsRohan Rathi
2018-07-02Merge branch 'blender2.8' into soc-2018-bevelRohan Rathi
2018-07-02Refactored bevel normal editing functionality.Rohan Rathi
2018-06-29Cleanup: naming in MOD_utils.Bastien Montagne
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-22Cleanup: useless BKE_cdderivedmesh includes...Bastien Montagne
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 modifiersCampbell Barton
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-12Cleanup: modifier arg wrappingCampbell Barton
2018-05-08Merge branch 'master' into blender2.8Bastien Montagne
2018-05-08Cleanup: Nuke empty dummy wrappers around modifier_copyData_generic().Bastien Montagne
This also changes signature of modifier copy callback, first (source) parameter is now a const, which is saner anyway!
2018-05-08Rename BKE_bmesh_to_mesh to BKE_bmesh_to_mesh_nomain.Bastien Montagne
Let's be clear about functions generating datablocks outside of Main database.
2018-05-04Modifiers: add back dirty normal flagCampbell Barton
2018-05-04Cleanup: avoid local definitions for one-off argsCampbell Barton
2018-05-02Modifiers: ported Bevel modifier DerivedMesh → MeshSybren A. Stüvel
This introduces `BKE_mesh_to_bmesh_ex()`, which exposes all of the `BMeshFromMeshParams` parameters to the caller. This is required to enable the `calc_face_normal` flag, which is required for the Bevel modifier. This also introduces `BKE_bmesh_to_mesh()`, which allocates a new `Mesh`, converts the `BMesh` to it, and returns it. The returned mesh is owned by the caller.
2018-05-01Extract common modifier parameters into ModifierEvalContext structSybren A. Stüvel
The contents of the ModifierEvalContext struct are constant while iterating over the modifier stack. The struct thus should be only created once, outside any loop over the modifiers.
2018-05-01Modifiers: Add wrapper functions with Mesh / DerivedMesh conversionMai Lavelle
Makes the follow changes: - Add new `deform*` and `apply*` function pointers to `ModifierTypeInfo` that take `Mesh`, and rename the old functions to indicate that they take `DerivedMesh`. These new functions are currently set to `NULL` for all modifiers. - Add wrapper `modifier_deform*` and `modifier_apply*` functions in two variants: one that works with `Mesh` and the other which works with `DerivedMesh` that is named with `*_DM_depercated`. These functions check which type of data the modifier supports and converts if necessary - Update the rest of Blender to be aware and make use of these new functions The goal of these changes is to make it possible to port to using `Mesh` incrementally without ever needing to enter into a state where modifiers don't work. After everything has been ported over the old functions and wrappers could be removed. Reviewers: campbellbarton, sergey, mont29 Subscribers: sybren Tags: #bf_blender_2.8 Differential Revision: https://developer.blender.org/D3155
2018-04-16Depsgraph: remove EvaluationContext, pass Depsgraph instead.Brecht Van Lommel
The depsgraph was always created within a fixed evaluation context. Passing both risks the depsgraph and evaluation context not matching, and it complicates the Python API where we'd have to expose both which is not so easy to understand. This also removes the global evaluation context in main, which assumed there to be a single active scene and view layer. Differential Revision: https://developer.blender.org/D3152
2017-08-16Pass EvaluationContext instead of bContextCampbell Barton
2.8x branch added bContext arg in many places, pass eval-context instead since its not simple to reason about what what nested functions do when they can access and change almost anything. Also use const to prevent unexpected modifications. This fixes crash loading files with shadows, since off-screen buffers use a NULL context for rendering.
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-08-07Refactor ID copying (and to some extent, ID freeing).Bastien Montagne
This will allow much finer controll over how we copy data-blocks, from full copy in Main database, to "lighter" ones (out of Main, inside an already allocated datablock, etc.). This commit also transfers a llot of what was previously handled by per-ID-type custom code to generic ID handling code in BKE_library. Hopefully will avoid in future inconsistencies and missing bits we had all over the codebase in the past. It also adds missing copying handling for a few types, most notably Scene (which where using a fully customized handling previously). Note that the type of allocation used during copying (regular in Main, allocated but outside of Main, or not allocated by ID handling code at all) is stored in ID's, which allows to handle them correctly when freeing. This needs to be taken care of with caution when doing 'weird' unusual things with ID copying and/or allocation! As a final note, while rather noisy, this commit will hopefully not break too much existing branches, old 'API' has been kept for the main part, as a wrapper around new code. Cleaning it up will happen later. Design task : T51804 Phab Diff: D2714
2017-07-21Pass EvaluationContext argument everywhereLuca Rood
Note that some little parts of code have been dissabled because eval_ctx was not available there. This should be resolved once DerivedMesh is replaced.
2017-01-24Depsgraph: Remove legacy updateDepgraph callbacks from modifiersSergey Sharybin
2015-07-05Change default for bevel to match previous behavior.Howard Trickey
Have reconsidered and feel it best to try matching previous behavior (doing "loop slides" where possible) as default. This will avoid the need to change regression tests, among other things.
2015-07-05Add 'loop slide' option to bevel. See T45260Howard Trickey
Current behavior of bevel is to 'loop slide' along unbeveled edges when possible, but this produces uneven bevel widths sometimes, so this option lets user choose between having the loop slide effect or having more even bevel widths. Trying it out with default being 'no loop slide', so different from current behavior. May reverse this choice later, depending on user reactions.
2015-05-12Depsgraph: New dependency graph integration commitSergey Sharybin
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 :)
2014-10-15Bevel modifier: Add weight support for vertices bevelling.Bastien Montagne
Nothing to say here, really, just a couple of lines to add to get it working...
2014-07-17Fix T34664: bevel face material can be set in tool and modifier.Howard Trickey
Now the bevel tool, modifier, and internal operator have a material slot # parameter that the user can set. If left at default of -1, behavior is as current -- bevel face material is taken from the closest original face (this may be ambiguous). If material slot is >= 0, it gives the material slot index number for the material to use.
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-02-07Bevel Modifier: fix bug T37916, bad result after mirror modifier.Howard Trickey
Bevel needs the vertex normals to be correct and they are not normally recalculated after a previous modifier, like mirror. Adding 'dependsOnNormals' -> returns true to modifier info for Bevel fixes the problem.
2014-01-26Code Cleanup: style and correct API class refCampbell Barton
2014-01-24Bevel modifier can use vertex groups for edge bevel now.Howard Trickey
Until now, the "vertex group" limit method in the modifier only worked for "vertex only" bevels. With this change, edges with both ends in a vertex group will be beveled in the non-"vertex only" case. Also changed the test for being in a vertex group from "any nonzero weight" to "weight >= 0.5". This is because cascaded bevels on disjoint vertex groups did not give disjoint bevels, because weight interpolation would give non-zero weights to newly created vertices in earlier bevels. Chose 0.5 because that won't result from interpolation, but still allows some dilution (e.g., cascaded bevels on the same vertex group).
2014-01-23Cleanup: int/short to bool in BKE_cdderivedmesh.h functions (and TRUE/FALSE ↵Bastien Montagne
to true/false in code using them).
2014-01-14Bevel Modifier: add width type and profile control.Howard Trickey
This adds to the modifier the new controls that have been added to the bevel tool.