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-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-01GPencil: Handle vertex groups weights correctlyAntonioya
In extrude operator when the point was added, the weight data pointer was wrongly connected to old pointer. Now, when move the data, the pointer is moved, but when a new point is added, the memory is duplicated to keep separated copies of the pointer. This is related T62872 Thanks to @sergey for his help fixing this bug.
2019-04-01Cleanup: SpellingSergey Sharybin
2019-03-26Cleanup: warnings, correct assertCampbell 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-19Unify "Hide Selected / Reveal Hidden" operator namesDalai Felinto
All edit mode related operators are now "Hide Selected / Reveal Hidden". Before we had different variatons of them: Hide Selection: * MESH_OT_hide * GPENCIL_OT_selection_opacity_toggle Hide Selected Bones: * ARMATURE_OT_hide Hide: * MBALL_OT_hide_metaelems Hide Selected: * CURVE_OT_hide * PARTICLE_OT_hide * POSE_OT_hide * UV_OT_hide Reveal Bones: * ARMATURE_OT_reveal Reveal: * MBALL_OT_reveal_metaelems Operators not renamed: * Hide Curves (GRAPH_OT_hide) * Hide (OUTLINER_OT_hide) Note we can do a step further and mass rename them to match their UI names. Where Reveal Hidden is Show Hidden. But for now at least they are all unified.
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-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
2019-03-06Cleanup: styleCampbell Barton
2019-03-04GPencil: New extrude operatorAntonioya
Keymap: E - Extrude Gizmo supported. If the extrude points are the first or last of the stroke, the stroke is extended. If the extrude points are in the middle of the stroke, a new stroke is created because the grease pencil strokes can be only with 2 extremes and fold the stroke to get a new point gets very bad results. Still pending define a new icon. Also, it could be good to set by default XYZ axis in the gizmo. Note: There is a change in the transform_gizmo_extrude_3d.c gizmo for OB_MODE_EDIT_GPENCIL. This change must be undo when the mode will be integrated into OB_MODE_EDIT, but while we have both modes, we need to keep this code in order to keep running the gizmo.
2019-02-26Grease Pencil: Silence warningDalai Felinto
2019-02-26GP: Draw: Stroke TrimCharlie Jolly
New edit mode operator and post-processing brush option. Trim works on a single GP stroke. It removes trailing points before and after the first intersection (or loop) nearest to the start of the stroke.
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-12GP: Move to new layer did not work with autolockAntonioya
When the autolock layer option was enabled, the move to new layer operator was not working as expected.
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 manually missing original authorAntonioya
Name was part of the header GPL text.
2019-02-01GP: Cleanup retiming to do in same loopAntonioya
2019-02-01Fix T61071: GP Cutter / Boxes bugAntonioya
Now when remove points from a cyclic stroke, the last island is joined with first island in order to fill the gap of the cyclic. This change affects not only to cutter, but to any delete process in cyclic strokes.
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-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-25GP: Set cyclic to OFF when use cutterAntonioya
When cut a stroke, the cyclic must be set to off because keep it gets very weird results.
2019-01-21GP: Fix memory leaks when use cutter with weightsAntonioya
There were some issues when copy the weights and other memory leaks. Also some code cleanup.
2019-01-21T60701: GP using cutter tool on stroke with vertex group crashes blenderAntonioya
2019-01-18GP: Create materials when separate active layerAntonioya
The materials were not created when used the active layer option of the separate operator.
2019-01-15Cleanup: commas at the end of enumsCampbell Barton
Without this clang-format may wrap them onto a single line.
2019-01-15Cleanup: comment line length (editors)Campbell Barton
Prevents clang-format wrapping text before comments.
2019-01-15Cleanup: styleCampbell Barton
2019-01-14Cleanup: compiler warningsCampbell 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-31Fix T60015: snap to grid - snaps only to largest incrementmano-wii
Caused by rBc7a96651dfa4 when trying to remove all uses of the deprecated `rv3d->gridview`.
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-24Cleanup: First batch of UI messages fixes (typos, final points...).Bastien Montagne
Also contains some code typo fixes (mostly, adtaptative -> adaptive, former is nearly innexistant in English, let's stick to simple valid words ;) ).
2018-12-20Fix T59579: Grease Pencil copy buffer loses material informationAntonioya
2018-12-14GP: Rename CTX and OB modesAntonioya
Part of T59335.
2018-12-14Merge branch 'master' into blender2.8Campbell Barton
2018-12-14Missed last commitCampbell Barton
2018-12-14Fix compiler errorCampbell Barton
2018-12-14GP: Add Subdivide Smooth optionAntonioya
2018-12-13GP: New Smooth operatorAntonioya
Smooth a stroke, in edit mode, similar how mesh operator works with meshes.
2018-12-07Depsgraph: Remove duplicated sets of recalc/update flagsSergey Sharybin
There were at least three copies of those: - OB_RECALC* family of flags, which are rudiment of an old dependency graph system. - PSYS_RECALC* which were used by old dependency graph system as a separate set since the graph itself did not handle particle systems. - DEG_TAG_* which was used to tag IDs. Now there is a single set, which defines what can be tagged and queried for an update. It also has some aggregate flags to make queries simpler. Lets once and for all solve the madness of those flags, stick to a single set, which will not overlap with anything or require any extra conversion. Technically, shouldn't be measurable user difference, but some of the agregate flags for few dependency graph components did change. Fixes T58632: Particle don't update rotation settings
2018-11-263D View: remove 3D cursorCampbell Barton
Use 3D cursor from the scene (was previously used for local-view).
2018-11-20GP: Reorganize Reproject optionsAntonioya
The options depend of drawing mode and this was very strange. Now, the options are listed in the menu.
2018-11-14Cleanup: comment block tabsCampbell Barton
2018-11-13GP: Fix wrong fill after subdivideAntonioya
2018-11-13Cleanup: add arg to GP_EDITABLE_STROKES macroCampbell Barton
Without this, we use arguments defined in the macro making code hard to read.
2018-11-12Fix T57713: Object not selecteable after separate strokesAntonioya
The object was duplicated in Edit mode.