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-09-19Cleanup: use uint,ushort,uchar for modifiersCampbell Barton
2019-09-16Cleanup: Use const variablesAntonio Vazquez
2019-09-16GPencil: Enable subdiv for 2-point strokes.YimingWu
It makes sense when adding points to a straight line, e.g. for creating thickness variation in later modifiers.
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-09-02GPencil: New Strength mode for Opacity modifierAntonio Vazquez
This new option applies the opacity using the strength of the stroke instead to use the alpha channel of the material. Tested in greasepencil-object branch {F7712796} The vertex group filter has been removed because this filter is not logic in Material mode and must be valid only in Strength mode. {F7713147} Reviewers: pepeland, mendio Reviewed By: mendio Differential Revision: https://developer.blender.org/D5650
2019-09-01Fix T69364: GPencil Array Modifiers causes crashAntonio Vazquez
This bug was introduced when adding the support for default materials.
2019-08-30Cleanup: clang-format, spellingCampbell Barton
2019-08-27Cleanup: spellingCampbell Barton
2019-08-26Cleanp: fix compiler warningsBrecht Van Lommel
2019-08-23Fix potential issues when loading files with missing librariesSebastian Parborg
This is a continuation of rB39f005eae8eed8b939579aff8c9a05a4f50e5e38 Now all the fields where we check for object type in RNA (like rna_Curve_object_poll) will have a safe guard for when this isn't the case. For example when loading files that has missing object libraries and all missing objects are replaced with empties (placeholders). Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5425
2019-08-21GPencil: add new filter by material to modifiersMatias Mendiola
This commit adds a new filter by material using the name and not only the index. Reviewers: antoniov, pepeland Differential Revision: https://developer.blender.org/D5544
2019-08-17Fix unreported GPencil Thickness modifier affecting strokes not in Vertex GroupsS J Bennett (quollism)
Prior to this commit: If the Grease Pencil Thickness modifier is set to Normalize and a Vertex Group is selected, the thickness of all strokes are effected when changing the Thickness parameter. Points on strokes are only normalised (= pressure set to 1.0) if they are part of the Vertex Group; the strokes themselves may still change thickness. With this patch: If Normalize is selected with a Vertex Group, Blender now pre-checks each stroke to determine whether it has vertices within or outside the Vertex Group. If all the points on the stroke belong to the Vertex Group, it normalises the whole stroke to a uniform thickness. If some or none of the points of the stroke belong to the Vertex Group, the stroke is now left as is. Reviewed By: @antoniov Differential Revision: https://developer.blender.org/D5483 with minor edit.
2019-08-10GPencil: Add new Distance property to Simplify modifierAntonio Vazquez
Before, the length variable was reused for Sample and Merge Simplify. Now, the Merge has its own distance property and variable in the modifier struct.
2019-08-08GPencil: Add mode Merge to Simplify modifierAntonio Vazquez
This option uses the same logic of the merge by distance but as an option of modifier to allow dynamic merge. This option will be very useful for LANPR generated strokes.
2019-08-08GPencil: New Simplify modifier mode Sample and operatorAntonioya
This mode simplify the stroke doing a resampling of the points and generate new geometry at the distance defined. Sample function developed by @NicksBest New Resample Stroke operator This operator recreates the stroke geometry with a predefined length between points. The operator uses the same code used in Simplify modifier. Reviewers: @mendio
2019-08-06Cleanup: use BKE_ prefix for BKE_colortools.hCampbell Barton
2019-08-02GPencil: Add Frame parameter to modifier deformStroke CallbackAntonio Vazquez
This commit adds the frame to deformStroke Callback as a preparation for new modifiers that will need this variable. Actually, the existing modifiers are not using the frame.
2019-08-01Fix T67939: GPencil Noise modifier wrong random calculationAntonioya
There were several problems in the old random calculation: * Different result in the viewport and render. * Noise "pop" in some frames. * Random number was calculated every time the file was opened, so get different results. Now, instead to calculate the random numbers when n number of frames changed, the random values are calculated using a unique seed by stroke. Also, a new Seed parameter has been added and this adds more control in the noise generated. This value can be animated and get more variations. Differential Revision: http://developer.blender.org/D5393
2019-07-30Fix T67939: GPencil Noise modifier step is ignored in renderAntonio Vazquez
The value of the step was calculated using a variable that was removed when the render frame change. Now, the step is calculated using the modulus of the current frame and recalculate noise only if the remainder that results from performing integer division is equal to 0. To calculate current frame, the first used frame is calculated to adjust real frame range. This approach is more stable in viewport and render.
2019-07-19GPencil: Fix wrong material when apply Opacity, Hue or Tint modifierAntonioya
When apply the modifier a new material is created, but it was assigned wrongly. The problem was the index was base 0 already, so subtract 1, got a wrong value.
2019-06-26Cleanup: GPencil Clarify commentAntonioya
2019-06-26GPencil: Change HSV modifier to use the same range of parameter that other ↵Antonioya
areas of Blender The value of the Hue must be between 0 and 1, but the value was between 0 and 2.
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-06-05GPencil: Fix mirror modifier rotation around objectAntonioya
Still pending when the original object is rotated or scaled.
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-22Cleanup: style, use braces for gpencil modifiersCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-09Cleanup: BKE_gpencil namingCampbell Barton
- The ambiguous term 'handle' was used where 'ensure' is typically used (get or add when missing). - Rename `current` to `active`, all `current` functions which were also ensuring. - Clarify what is being operated on, using `BKE_gpencil_object_*` for objects, `BKE_gpencil_brush_*` for brushes.
2019-03-30GPencil: Uses same random seed for render in Noise modifierAntonioya
As the random seed was calculated in the copy data, the render could be a little different. Now, the data is saved in the original data.
2019-03-19Fix T62715: Grease Pencil Apply Armature Modifier IssueAntonioya
@sergey wrote: "The reason it was failing is because md points to an original armature, which doesn't have runtime data needed for deformation. That data is to come from evaluated armature." Thanks to @sergey for his help.
2019-03-19Cleanup: comment blocksCampbell Barton
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-08GPencil: Add basic edit support for Hook and Array modifierAntonioya
These modifiers were not included in previous commit.
2019-03-08GPencil: Make visible Armature modifier in edit modeAntonioya
This change displays the stroke in the deformed position, but the edition is done in rest position. This is no the final solution, but at least we have some visual feedback in edit mode. The real solution is to create a full system to manage derived strokes in Edit mode, but this needs a lot of work and we haven't resources now to do it.
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-02-25Cleanup: order of modifiers' headers includes.Bastien Montagne
BLI should always comes first, before DNA, BKE etc. And `BLI_utildefines.h` should come before any other BLI (since it's some sort of system include really, among other things...). Thisi should help to reduce the noise in patches when adding stuff like uint64_t members to DNA structs... ;)
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: manually apply changes missed last commitCampbell Barton
Automatic edits failed for indented comment blocks, removed indentation & adjusted.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: manually remove header text not handled by automationCampbell Barton
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-31Cleanup: style, unused variableCampbell Barton
2019-01-28Cleanup: sort forward declarations of enum & structCampbell Barton
Done using: source/tools/utils_maintenance/c_sort_blocks.py
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-25T60748 Second try to fix start extreme in Noise modifierAntonioya
The first point was moving inverted because first vector was inverted. Now, the vector is changed for the first point to get the same direction.
2019-01-23Fix T60778: Grease pencil Hook modifieronly affects strokes with more than 2 ↵Antonioya
points Also fixed Lattice and Noise modifier.
2019-01-22Fix T60748: Move GP stroke extremes with noise modifierAntonioya
2019-01-20GP: Fix mirror modifier with parent objectAntonioya
Still problems when local rotation. Some cleanup done.
2019-01-15GP: Use weight in noise modifier for all typesAntonioya
The weight was used only for position.
2019-01-08Typo fixesJoshua Leung