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
2021-05-12Cleanup: use our own code style for doxy-gen comment blocksCampbell Barton
2021-04-30Merge branch 'blender-v2.93-release'Campbell Barton
2021-04-30Fix missing NULL check in grease-pencil clear strokesCampbell Barton
2021-04-29Fix T87297: Gpencil - Disable Frames and Start delay when use FactorAntonio Vazquez
After talking with the GP team, we agree in disable these options when the factor is used in Build modifier.
2021-04-29Cleanup: Use BLI_findindex instead of loopAntonio Vazquez
2021-04-29Cleanup: Add float formatAntonio Vazquez
2021-04-29Gpencil Offset Modifier - Add randomize offset optionsCody Winchester
This patch adds the Randomize options that exist in the Array modifier to the offset modifier. Currently the patch uses ``` BLI_findindex(&gpf->strokes, gps); ``` to get the index of the current stroke for making each stroke a different seed value. This is how the noise modifier also gets the stroke seed value and it is noted there as well that this method is slow, and should be fixed in the future with another method of getting the stroke index. Other methods were explored such as using the total number of points of the stroke, but that makes the randomize options incompatible with other modifiers before it such as Multiple Strokes, Array, Build, and Simplify. {F9591325} Differential Revision: https://developer.blender.org/D10171
2021-04-29Cleanup: unused variable, spellingCampbell Barton
2021-04-28Cleanup: Add float formatAntonio Vazquez
2021-04-28GPencil: Fading based on distance to reference object in Opacity and ↵YimingWu
Thickness modifiers This patch allows you to dynamically control stroke's opacity and thickness using an object for distance reference in the modifier. Fading range is adjustable, and it is compatible with current curve/vertex group selection. Reviewed By: #grease_pencil, antoniov, mendio Maniphest Tasks: T82177, T80194 Differential Revision: https://developer.blender.org/D9091
2021-04-28Fix T87832: Incorrect FOV in line art when sensor fit is not Auto.YimingWu
Reviewed by Sebastian Parborg https://developer.blender.org/D11095
2021-04-27Fix T87832: Incorrect FOV in line art when sensor fit is not Auto.YimingWu
Reviewed by Sebastian Parborg https://developer.blender.org/D11095
2021-04-26LineArt: UI fixes to match the content for 2.93 manual.YimingWu
Reviewed by: Sebastian Parborg Differential Revision: https://developer.blender.org/D11089
2021-04-13Cleanup: redundant struct declarationsCampbell Barton
2021-04-11Cleanup: use ELEM, STREQ macrosCampbell Barton
2021-04-07Fix T87263: Animation decorator not working on Grease Pencil Build modifier ↵Philipp Oeser
Factor value When having a checkbox and a value both in one row together with an animation decorator it is questionable whether the decorator should act on animating the checkbox or the corresponding value. At the moment, usage in modifiers does not seem to be very consistent: Here the animation decorator works for animating the checkbox: - `Build` (greasepencil) > `Factor` (this was reported and is changed in this patch to act on the value instead of the checkbox) - `DataTransfer` > `Topology Mapping` > `Max Distance` (this I guess should also act on the value instead of the checkbox) - `Edge Split` > `Edge Angle` (questionable) - `Mirror` > `Merge` (questionable) - `Screw` > `Merge` (questionable) - `Wireframe` > `Crease Edges` (questionable) Here the animation decorator works for animating the value: - `VertexWeightEdit` > `Group Add/Remove Threshold` - `Decimate` > `Symmetry` So in this patch only the behavior in the greasepencil Build modifier UI is changed, since I think it is quite obvious that one would more often use the decorator for animating the factor value than for animating the checkbox. Maniphest Tasks: T87263 Differential Revision: https://developer.blender.org/D10910
2021-04-02GPencil: Prevent RNA assignment of invalid materials in modifiersPhilipp Oeser
Materials used in grease pencil modifiers have the requirement that they are already used on the object. In the UI dropdown, this restriction is ensured by calling uiItemPointerR with appropriate searchptr and searchpropname, so only giving the user the choice of materials already used on the object. From python though, it was still possible to assign materials outside of this this restriction. This led to reports like T86981 [which have been partially solved by clamping the material index in the modifier code to be in the valid range]. Now make sure we dont assign "invalid" materials through RNA by appropriate RNA pointer functions. This also adds a proper warning (red, alert) in case of the LineArt modifier if such a invalid material is still in the file [same as other modifiers already do]. Differential Revision: https://developer.blender.org/D10873
2021-04-01LineArt: Remove "soft selection" option.YimingWu
After some back and forth with the GP module and some artists, this option was deemed not that useful. The use case was considered too obscure so we'll remove it. It is still posible to have this functionality by using the vertex weight modiifers or manually clamping the weights.
2021-04-01LineArt: Remove resampling settings.YimingWu
This can be done with an other GP modifier already.
2021-03-31GPencil: Avoid LineArt modifier uses negative material indexAntonio Vazquez
In some situations the material index could be negative, and this is wrong.
2021-03-26CMake: add headers to source lists, sort file-listsCampbell Barton
2021-03-24GPencil: Fix unreported crash when apply Lattice modifierAntonio Vazquez
This error was produced because now it is possible to have several Lattice modifiers and the Bake was removing the lattice data of all modifiers. Now the data is only recalculated and removed for the current modifier. Also some cleanup of comments.
2021-03-23Fix incorrect flag usage in line art modifierCampbell Barton
2021-03-23RNA: correction to a05cbc9914a76fa50c8367262dff507506e26c66Campbell Barton
The clipping plane bias is an implementation detail, don't use this in the RNA name.
2021-03-22Cleanup, LineArt: Fix MSVC compiler warnings.Nikhil Shringarpurey
Currently 3 of the printf lines use the format specifier "%lu" for data of type size_t instead of "%zu". While this works, this creates compiler warnings. This diff fixes those warnings by using the correct format specifier. Tested using MSVC, but should be correct on any compliant compiler. Reviewed By: Sebastian Parborg Differential Revision: http://developer.blender.org/D10761
2021-03-22Fix UI (and code!) typos.Bastien Montagne
2021-03-22RNA: rename recently added line-art propertiesCampbell Barton
- Use `use_` prefix for boolean properties. - Use `_all` instead of `_everything`, following existing conventions and the properties UI text. - Use `object_instances` instead of old term `dupli` / `duplication`. - Use `clip_plane` instead of `clipping_boundaries`, matching the RegionView3D property naming.
2021-03-22RNA: use boolean array for transarency masksCampbell Barton
There is no need to expose this as multiple properties, also use `use_` prefix for boolean properties.
2021-03-22Cleanup: spelling, expand on commentsCampbell Barton
2021-03-21Cleanup: move some headers from MOD_lineart.h to source filesCampbell Barton
2021-03-21Cleanup: redundant headers in 'source/blender/gpencil_modifiers'Campbell Barton
2021-03-21Cleanup: unused return statementsCampbell Barton
2021-03-21Cleanup: remove window manager headers from MOD_lineartCampbell Barton
This was only used to return success, which is currently never checked.
2021-03-21Cleanup: replace 'unsigned char' with 'uchar'Campbell Barton
2021-03-21Cleanup: remove redundant castsCampbell Barton
2021-03-21Cleanup: spelling, doxygen comment formattingCampbell Barton
2021-03-20Cleanup: quiet warningJacques Lucke
2021-03-20LineArt: Fix blank baking for when source type is object.YimingWu
2021-03-20LineArt: Fixed source selection for nested-instanced collection.YimingWu
2021-03-20Fix T86730: LineArt: keep contour when there's perpendicular faces.YimingWu
2021-03-19LineArt: Add missing modifer and sanity checks to bake operatorSebastian Parborg
Previously we could crash because we would not check if the modifier in question actually was a line art modifier. We also did not query if the modifier was disabled.
2021-03-19LineArt: Added back the missing "allow_clipping_boundaries" option.YimingWu
This option was missing from the UI. Also add missing camera settings depsgraph relation.
2021-03-19LineArt: Remove geometry space chainingYimingWu
It caused some chaining errors when used in combination with image space chaining. After some internal discussion, we realized it is not useful as chaining in image space essentially does the same thing.
2021-03-18Cleanup, LineArt: Sample -> ResampleYimingWu
Clear up what sample length does by renaming the option and variables.
2021-03-18LineArt: Expose the allow_duplication property for instanced objects.YimingWu
It was missing from the UI.
2021-03-18Fix T86692: Start Line Art GP objects on frame 0YimingWu
If playback starts before the first GP frame, we will get "ghost" strokes.
2021-03-18LineArt: Do not calculate lines for objects not includedYimingWu
Only use non included objects for potential occlusion queries. Don't calculate lines for them. This fixes intersection lines appearing on objects not included by the lineart modifier.
2021-03-18Cleanup, LineArt: Rename LineartLine -> LineartEdgeSebastian Parborg
Also cleanup various other "line" variable names
2021-03-17Cleanup: Remove commented codeHans Goudey
Mistake in earlier commit rBbe33d3eccdcdf252. Also use const and set layouts disabled when the line art is baked.
2021-03-17UI: Tweak labels, descriptions, and panel layout for line artHans Goudey
Changes include: - Use `IFACE_` for UI labels set in the modifier panels - Use a sub-sub-panel for transparency - Fix grammar and spelling mistakes - Use more natural user-friendly wording - Make descriptions more specific and more useful - Don't capitalize "line art" in descriptions (tooltips) These changes are aimed at making the UI strings more consistent with the rest of the UI and being more helpful to someone trying to understand how to use the modifier. Differential Revision: https://developer.blender.org/D10750