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-10-24Merge branch 'blender-v2.81-release'Antonio Vazquez
2019-10-24Fix T71063: GPencil - Numpad return key cannot be used to confirm primitiveAntonio Vazquez
2019-10-22Cleanup: clang-format, trailing spaceCampbell Barton
2019-10-19GPencil: Primitive: Polyline ToolCharlie Jolly
T70927 Maniphest Tasks: T70927 Differential Revision: https://developer.blender.org/D6097
2019-09-27GPencil: New Brush default settingsAntonio Vazquez
This patch replaces D5787. Now instead to replace the startup.blend file, all the changes are done in versioning and moved to shared module to be reused by Brush reset. Reviewers: brecht, mendio Reviewed By: brecht Subscribers: pepeland, mendio Differential Revision: https://developer.blender.org/D5913
2019-09-26WM: clean up cursors constants and codeBrecht Van Lommel
There was a mix of old and new constants. Now have one list of WM_CURSOR_* cursor types, using GHOST standard cursors when available and otherwise falling back to our custom cursors. Ref D5197
2019-08-30GPencil: Use default material when slot material is emptyAntonio Vazquez
When a material slot is empty, the default material is used. The default color used is Gray to get a good contrast in dense scenes with dark and white background. Reviewers: brecht, dfelinto, mendio, pepeland Differential Revision: https://developer.blender.org/D5625
2019-08-19GPencil: Change UI scale for z-depth offsetAntonio Vazquez
Actually, the value for this parameter must be in the order of 0.00001 and this makes the UI uncomfortable. Now, the value is divided by 1000 internally and the UI values are more logic. Reviewers: mendio, pepeland Differential Revision: https://developer.blender.org/D5528
2019-08-06Cleanup: use BKE_ prefix for BKE_colortools.hCampbell Barton
2019-08-02Fix T68021: GPencil After using eraser when draw primitives, next primitive ↵Antonio Vazquez
has missing handles The problem was related to wrong Brush. After using the Eraser or Fill, the default brush was not the drawing one, so the handles were missing. Now, the operator force the drawing brush. Reviewer: @campbellbarton Differential Revision: http://developer.blender.org/D5403
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-30Fix T65691: GPencil Drawing long strokes turn invisibleAntonioya
There was a fixed limit to the number of points available in a buffer stroke. Now, the array is expanded as needed using a predefined number of points for each expansion, instead to add one by one. This is done to reduce the number of times the memory allocation is required. As part of the fix, some variables have been renamed to reflect better their use.
2019-07-29Cleanup: GPencil replace cfra_eval by cfra or CFRAAntonioya
Don't need these variable because this code was part of using depsgraph frame number, but now using scene framenumber only add noise to the code.
2019-07-26GPencil: Get current frame from sceneSergey Sharybin
This change makes it so current frame is queried from a scene rather than from a dependency graph. This makes it possible to avoid the fact that dependency graph might not be fully evaluated yet. There are still some cases where it frame is queried from the graph, but those seems to be in a code path where we need to ensure valid dependency graph anyway. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D5349
2019-07-17GPencil: Fix usability problem with curve control points apartCharlie Jolly
Based on feedback from @matiasmendio There was a problem with the control points because it was very difficult to know what point move. Now the points are moved apart and makes easy to know what point use.
2019-07-06GPencil: Close Box and Circle primitives with geometryAntonioya
Before the primitives were closed only with cyclic flag, but this doesn't create geometry for the gap. Now, a new geometry is created using close stroke function to have geometry for sculpt or edit.
2019-06-24Fix T66072: GPencil "stroke placement:surface" uses "stroke ↵Antonioya
placement:stroke"s target parameters The stroke parameters were used in Surface mode becaus ethe mode was not checked.
2019-06-11Fix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.Bastien Montagne
Cheap tip: anything that is not "Camel Case" and/or that is more than a few words long should use `TIP_` translation, not `IFACE_` one. Also added several missing strings (including the one reported in D5056 by Jean First (@robbott), thanks).
2019-06-05GPencil: Create new set of brushes for Win32 damaged files when use primitivesAntonio Vazquez
Some old Win32 files could have the brushes damaged and this produces a segment fault. Now, if the brush is damaged, a new set of brushes is created. Related to T61413
2019-05-06GPencil: Verify Brush has GPencil dataAntonioya
This avoid errors in old files.
2019-04-22Cleanup: style, use braces for editorsCampbell 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-15GPencil: New Dots gradientAntonioya
This commit adds support for drawing Dots strokes with a gradient factor to get artistic effects like watercolor. Currently, the option is only supported by Dots materials, and in the future will be added to line strokes, but now there is a limitation on drawing engine and we will keep disabled on Line materials. Also, added the option to align Dots and Boxes strokes textures aligned with the drawing path to get more fluid strokes.
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-04-02Cleanup: empty expression statement warningCampbell Barton
2019-03-26Cleanup: styleCampbell Barton
2019-03-25GPencil: Only brushes with pinned materials have materialsAntonioya
Using GP_BRUSH_MATERIAL_PINNED to switch between active material and brush material, instead of updating all brushes on active material changes. This will allow brushes to have no material and therefore to not inflate the user count. This fix T62465. Patch contributed by @matc Reviewers: @brecht @antoniov @billreynish @mendio
2019-03-18Cleanup: style, duplicate includeCampbell Barton
2019-03-17GPencil: Changes in Fill and new 3D Cursor View PlaneAntonioya
This commit groups several options that were tested in grease pencil branch: - Changes to fill algorithms and improves, specially in small areas and stroke corners. New options has been added in order to define how the fill is working and internally there are optimizations in detect the small areas in the extremes. Kudos to @charlie for coding this fill improvements. - New 3D cursor view plane option. Now it's possible to lock the drawing plane to the 3D cursor and use the 3D cursor orientation. This allows more flexibility when you are drawing and reduce the need to create geometry to draw over surfaces. - Canvas Grid now can be locked to 3D cursor. - New option to reproject stroke using 3D cursor. - Small tweaks and fixes. Changes reviewed by @pepeland and @mendio
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-12Cleanup: trailing spaceCampbell Barton
2019-03-04Fix T62140: GPencil line segment disappearsCharlie Jolly
Remove code for when edge count is 2.
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-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
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-25GP: Use Fill color when drawing strokes for no stroke materialsAntonioya
Artists requested to show the stroke while drawing a new stroke using a material with fill color only, because it's very difficult to see the stroke. Now the stroke shows always but using the fill color, not the stroke color because maybe is not set.
2019-01-22GP: Fix UV error for second pointAntonioya
The UV was not calculated for second point (1), only first and > 1
2019-01-22GP: Recalc UV data for primitive strokesAntonioya
The data was not caculated when complete a primitive and it was only updated when use Edit mode.
2019-01-15Cleanup: styleCampbell Barton
2019-01-14Cleanup: unused functionCampbell Barton
2019-01-11GP: New Cutter, Constraints and Segment selectionAntonioya
This commit groups a set of new tools that were tested in grease pencil object branch before moving to master. We decide to do all the development in a separated branch because it could break master during days or weeks before the new tools were ready to deploy. The commit includes: - New Cutter tool to trim strokes and help cleaning up drawings. - New set of constraints and guides to draw different types of shapes. All the credits for this development goes to Charlie Jolly (@charlie), thanks for your help! - Segment selection mode to select strokes between intersections. - New operator to change strokes cap mode. - New option to display only keyframed frames. This option is very important when fill strokes with color. - Multiple small fixes and tweaks. Thanks to @pepeland and @mendio for their ideas, tests, reviews and support. Note: Still pending the final icons for Cutter in Toolbar and Segment Selection in Topbar. @billreynish could help us here?
2018-12-28GP: Rename GP_STROKE_RECALC_CACHE to GP_STROKE_RECALC_GEOMETRYAntonioya
The GP_STROKE_RECALC_CACHE identifier was changed to GP_STROKE_RECALC_GEOMETRY because the previous name was confusing and could be confused with the recalculation of the Draw Manager cache.
2018-12-23GP: Small changes to help textAntonioya
2018-12-23GP: Add Shift+F to define strength for primitivesAntonioya
2018-12-23Fix T59782: Replace RMB by MMB in bottom help textAntonioya
2018-12-21GP: Primitive: Changes from gp branchCharlie Jolly
F-key to change stroke brush size Fix random bias for jitter
2018-12-20Cleanup: argument wrapping indentationCampbell Barton
2018-12-19GP: Fix error drawing on Camera view for Surface/StrokeAntonioya
This bug was introduced fixing task T59595