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
2020-09-24Fix (unreported) Smart UV Project not adding UVMapPhilipp Oeser
Since porting this to C in rB850234c1b10a, Smart UV Project would not add a UVMap (if none existed already) anymore. Not having a UVMap already is a reasonable situation though when e.g. starting off fresh by deleting an existing UVMap or also when applying certain generative modifiers. This is also inconsistent with all other unwrap operators (all of them will create a UVMap if none exists already) Differential Revision: https://developer.blender.org/D9001
2020-09-18UI: Use property split in UV editor panelsHans Goudey
This is not an exhaustive change, just for the 2D cursor and UDIM grid properties. Also vertically align the "UV Vertex" buttons like in the 3D view panels.
2020-09-18UV: select face loops when in face-select modeCampbell Barton
Match edit-mesh behavior.
2020-09-14Fix T80728: UV edge select splits UV's for lasso/box/circle selectCampbell Barton
Oversight in 411c5238a2fef ignored sticky selection. Use 'uvedit_edge_select_set_with_sticky' to make sure sticky options are respected. Also skip checking the existing selection since that only checks the current UV, not all connected UV's which is needed for sticky selection. The extra checks to avoid updating UV's isn't such an advantage as only meshed in the selected region are tagged for updating.
2020-09-12Cleanup: Remove GLEW dependencies outside of GL moduleClément Foucault
2020-09-10Cleanup: spellingCampbell Barton
2020-09-09Cleanup: spellingCampbell Barton
2020-09-04UI Code Quality: Use derived struct for number buttonsJulian Eisel
For the man rationale behind this design, see 49f088e2d093. Further, this removes users of uiBut.a1/uiBut.a2, which is a very ugly design choice (hard to reason about). Note that I had to do rather ugly, specific exceptions for the number buttons in `ui_def_but_rna()`. But once all users of a1/a2 are removed, this special handling shouldn't be needed anymore. I also had to move a sanity check out of the button definition. It's now moved into a new debug only sanity checking function executed when finishing the layout definition (block end).
2020-09-04Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fixSebastian Parborg
No functional changes
2020-09-04Cleanup: Clang-Tidy readability-redundant-preprocessor fixesSybren A. Stüvel
Remove redundantly nested `#if` and `#ifdef` statements. One nested `#if 0` block was left untouched, as it's in particle code that's no longer maintained. Furthermore, that block also has some explanation as to the differences between the enabled & disabled parts. One nested `#if 0` construct was completely removed, leaving only the actually used bit of code. There was no explanation as to the usefulness of the disabled code, and it hasn't been touched in years. No functional changes.
2020-08-26UV: match 3D mesh editing behavior for edge-loop selectCampbell Barton
- Cycling between part of the boundary & the entire UV boundary. - Include pole vertices in the selection. Edge loop selection was rewritten to use BMesh connectivity data.
2020-08-24Fix selected UV vertex drawing ignoring sizeCampbell Barton
2020-08-24UVEdit: Fix assert caused by depth mask not being set before clearClément Foucault
This happened when using the shading panel when a uv editor opened.
2020-08-23Cleanup: GPU: Use explicit clear value in GPU_clear* commandsClément Foucault
This replace `GPU_clear()` by `GPU_clear_color()` and `GPU_clear_depth()`. Since we always set the clear value before clearing, it is unecessary to track the clear color state. Moreover, it makes it clearer what we clear the framebuffer to.
2020-08-23Cleanup: remove unused UvNearestHit struct membersCampbell Barton
2020-08-20GPUState: Use explicit depth test enumClément Foucault
2020-08-18GPUState: GPU_blend final API renamingClément Foucault
We now use GPU_blend for enabling / disabling blending and explicitly set the blend equation.
2020-08-18Cleanup: GPUState: Replace blend func separate by enumClément Foucault
2020-08-13UVEdit: Fix drawing after recent refactorClément Foucault
2020-08-13GPUBatch: Remove most use of GPU_batch_draw_advanced()Clément Foucault
This is in order to better encapsulate / isolate the drawing code.
2020-08-13GPUShader: Change shader state tracking to be part of the GPUContextClément Foucault
This remove the use of batch->program and replace it with batch->shader. This will allow GL abstraction latter.
2020-08-12Merge branch 'blender-v2.90-release'Brecht Van Lommel
2020-08-12Fix UV unwrap not working with only one pinned vertexBrecht Van Lommel
Now the one vertex defines the position of the UV chart, while rotation and shape is still determined automatically. Initial patch by Willis (wlssirius). Differential Revision: https://developer.blender.org/D8484
2020-08-11Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-11BMesh: add UV calculate center callCampbell Barton
Move uv_poly_center to BM_face_uv_calc_center_median as it was only defined in uvedit_intern.h
2020-08-08Cleanup: use array syntax for sizeof with fixed valuesCampbell Barton
Also order sizeof(..) first to promote other values to size_t.
2020-08-07Cleanup: pass arrays const where possibleCampbell Barton
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Cleanup: Blenlib, Clang-Tidy else-after-return fixes (incomplete)Sybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenlib` module. Not all warnings are addressed in this commit. No functional changes.
2020-08-07Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-07Code Style: use "#pragma once" in source directoryJacques Lucke
This replaces header include guards with `#pragma once`. A couple of include guards are not removed yet (e.g. `__RNA_TYPES_H__`), because they are used in other places. This patch has been generated by P1561 followed by `make format`. Differential Revision: https://developer.blender.org/D8466
2020-08-04Merge branch 'blender-v2.90-release'Bastien Montagne
Conflicts: source/blender/editors/gpencil/gpencil_primitive.c
2020-08-04Cleanup: typos & co in UI messages (and some other places).Bastien Montagne
2020-08-01Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-01Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-01UV: support select linked with sync-select in vert/edge modesCampbell Barton
2020-08-01Fix T46568: UV select-linked failure to de-selectCampbell Barton
Shift-L was de-selecting all instead of the linked UV's.
2020-07-30Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-07-30Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-07-30UV: path select support with sync-select enabledCampbell Barton
Also improve region fill with edge-select enabled which often failed to include both vertices from each edge in the resulting region.
2020-07-30Fix UV select with sync select enabled wasn't setting activeCampbell Barton
2020-07-26UV: port smart project from Python to CCampbell Barton
Use C for faster operation on high poly models, in my tests this gave ~27x speedup. D8311 by @andreasterrius with edits.
2020-07-26UV: support creating ParamHandle without checking UV selectionCampbell Barton
Needed for unwrapping from the 3D view.
2020-07-25Fix T79239: UV path select crashCampbell Barton
2020-07-22Fix UV select flush error in recent loop select cleanupCampbell Barton
Regression from d99b343b31e76
2020-07-22Fix T79148: UV Edge ring select doesn't select edgesCampbell Barton
While UV doesn't yet support edge selection, it can when sync select is enabled.
2020-07-21Fix UV edge/face sync selection from recent sticky select cleanupCampbell Barton
2020-07-21Cleanup: simplify sticky UV selectionCampbell Barton
Use BMesh connectivity information instead of looping over all geometry to flush the sticky selection.
2020-07-21UV: remove selection threshold for nearby coordinatesCampbell Barton
Internally UV selection considered close UV's to be connected. While this could be convenient in some cases, it complicates logic for more advanced selection operations that need to check when UV's should be considered part of the same vertex since simple threshold checks would give different results depending on the order of UV's tested. Users must now run "Merge by Distance" instead of relying on this selection threshold.
2020-07-18UV: edge-ring selection supportCampbell Barton
Matches edit-mesh edge-ring selection.