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
2022-09-19Cleanup: spellingCampbell Barton
2022-09-14Adding `const Scene*` parameter in many areas.Monique Dewanchand
Related to {D15885} that requires scene parameter to be added in many places. To speed up the review process the adding of the scene parameter was added in a separate patch. Reviewed By: mont29 Maniphest Tasks: T73411 Differential Revision: https://developer.blender.org/D15930
2022-09-12UV: support uv seams when computing uv islandsChris Blackbourn
An edge can be marked BM_ELEM_SEAM, which means the UV co-ordinates on either side of the edge are actually independent, even if they happen to currently have the same value. This commit optionally add support for UV Seams when computing islands. Affects UV sculpt tools, individual origins, UV stitch and changing UV selection modes etc. Required for upcoming packing refactor which requires seam support when computing islands. Differential Revision: https://developer.blender.org/D15875
2022-09-06Cleanup: Remove use of designated initializers in C++ codeChris Blackbourn
Does not compile on Windows.
2022-09-06Cleanup: Move uvedit_islands to c++Chris Blackbourn
Differential Revision: https://developer.blender.org/D15870
2022-09-06GPU: remove 'GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR'Germano Cavalcante
The only difference between `GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR` and `GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR` is that in the vertex shader the 2D version uses `vec4(pos, 0.0, 1.0)` and the 3D version uses `vec4(pos, 1.0)`. But VBOs with 2D attributes work perfectly in shaders that use 3D attributes. Components not specified are filled with components from `vec4(0.0, 0.0, 0.0, 1.0)`. So there is no real benefit to having two different shader versions.
2022-09-05GPU: remove 'GPU_SHADER_2D_UNIFORM_COLOR'Germano Cavalcante
The only real difference between `GPU_SHADER_2D_UNIFORM_COLOR` and `GPU_SHADER_3D_UNIFORM_COLOR` is that in the vertex shader the 2D version uses `vec4(pos, 0.0, 1.0)` and the 3D version uses `vec4(pos, 1.0)`. But VBOs with 2D attributes work perfectly in shaders that use 3D attributes. Components not specified are filled with components from `vec4(0.0, 0.0, 0.0, 1.0)`. So there is no real benefit to having two different shader versions. This will simplify porting shaders to python as it will not be necessary to use a 3D and a 2D version of the shaders. In python the new name for '2D_UNIFORM_COLOR'' and '3D_UNIFORM_COLOR' is 'UNIFORM_COLOR', but the old names still work for backward compatibility. Differential Revision: https://developer.blender.org/D15836
2022-08-26Cleanup: use booleansCampbell Barton
2022-08-19Cleanup: replace uint cd_loop_uv_offset with intChris Blackbourn
See https://wiki.blender.org/wiki/Style_Guide/C_Cpp#Integer_Types
2022-08-19UV: respect uv selection for smart uv, cube, sphere and cylinder projectionChris Blackbourn
Differential Revision: https://developer.blender.org/D15711
2022-08-19Cleanup: uvedit_*_select, replace `BMEditMesh*` with `BMesh*`Chris Blackbourn
Change `cd_loop_uv_offset` from signed to unsigned, forcing a crash if passed invalid input. Differential Revision: https://developer.blender.org/D15722
2022-08-15GPU: replace GLEW with libepoxyChristian Rauch
With libepoxy we can choose between EGL and GLX at runtime, as well as dynamically open EGL and GLX libraries without linking to them. This will make it possible to build with Wayland, EGL, GLVND support while still running on systems that only have X11, GLX and libGL. It also paves the way for headless rendering through EGL. libepoxy is a new library dependency, and is included in the precompiled libraries. GLEW is no longer a dependency, and WITH_SYSTEM_GLEW was removed. Includes contributions by Brecht Van Lommel, Ray Molenkamp, Campbell Barton and Sergey Sharybin. Ref T76428 Differential Revision: https://developer.blender.org/D15291
2022-08-11Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
Add element_map->island_total_uvs. Add element_map->island_total_unique_uvs. Simplify callers based on new members. Add comments. Resolves: D15598
2022-08-09Cleanup: use own username in code-comment tagsCampbell Barton
2022-08-08Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
Rename vert -> vertex. Add `BM_uv_element_get_head`. See also: D15598
2022-08-08Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
Rename buf -> storage. See also: D15598
2022-08-07Cleanup: refactoring uvislands to prepare for python apiChris Blackbourn
See also: D15598
2022-08-06Cleanup: Simplify NULL handling for BKE_image_find_nearest_tileChris Blackbourn
Differential Revision: https://developer.blender.org/D15616
2022-08-03Cleanup: Remove unused function `uv_poly_copy_aspect`Chris Blackbourn
2022-07-30UV: Add options for uv select similar in island modeChris Blackbourn
In island selection mode, add new options for uv select similar: * Area UV * Area 3D * Face (number of faces in island) See also https://developer.blender.org/T47437 Differential Revision: https://developer.blender.org/D15553
2022-07-22Cleanup: add BKE_image_find_nearest_tile_with_offsetCampbell Barton
Every caller BKE_image_find_nearest_tile was calculating the tile offset so add a version of this function that returns the offset too.
2022-07-22UV: Edge support for select shortest path operatorSiddhartha Jejurkar
Calculating shortest path selection in UV edge mode was done using vertex path logic. Since the UV editor now supports proper edge selection [0], this approach can sometimes give incorrect results. This problem is now fixed by adding separate logic to calculate the shortest path in UV edge mode. Resolves T99344. [0]: ffaaa0bcbf477c30cf3665b9330bbbb767397169 Reviewed By: campbellbarton Ref D15511.
2022-07-19UV: add Snap Cursor to OriginTomek Gubala
Similar to snapping to the world origin in the 3D viewport. This can be found in the Shift+S pie menu and UV > Snap menu. Differential Revision: https://developer.blender.org/D15055
2022-07-19Fix T99794: regression from uv unwrap selectedChris Blackbourn
Restore only_selected_faces flag inadvertently changed by c0e453233132 Differential Revision: https://developer.blender.org/D15480
2022-07-14Fix T99684: Upgrade Averages Island Scale with options Scale UV and ShearChris Blackbourn
Differential Revision: https://developer.blender.org/D15421
2022-07-13Fix T99659: Improve UV Island calculation with hidden faces.Chris Blackbourn
Simplify interface, regularize implementation and some light cleanup. See also: T79304 and D15419.
2022-07-12UV: Box and lasso selection for partially intersecting edgesSiddhartha Jejurkar
In UV edge mode, box and lasso selections allow edge selections only when the entire edge is contained within the selection area. This doesn't consider any edges that partially overlap with the selection area. This is now fixed by adding a second pass, similar to how these operators work for edit-mesh selections. Now if both operators are unable to find any edges contained within the selection area, then they will perform a second pass which checks for edges that partially intersect with the selection area. Now edge selection in the UV editor matches edit-mesh edge-selection when drawing wire-frame. Resolves T99443. Ref D15362
2022-07-04Cleanup: spelling in commentsCampbell Barton
2022-07-04UV: Improve UV Straighten operatorChris Blackbourn
Improves UV Straighten in several ways: - Operate on entire selection. - One straighten for each selected island. - Prefers pins to anchor the endpoints of the resulting line. Differential Revision: D15121 Resolves: T78553
2022-07-04Cleanup(UV): Refactor UV Align and UV Straighten (No user visible changes)Chris Blackbourn
Move functionality into uvedit_uv_align_weld and uvedit_uv_straighten. Prep for D15121
2022-06-29Cleanup(UV): Remove unused parameter (no functional changes)Chris Blackbourn
Prep for D15263
2022-06-29Fix T78394: In UV Editor, UV Unwrap respects selectionChris Blackbourn
Differential Revision: D14945
2022-06-28Fix T98924: Skip saving selection properties for UV edge ring operatorSiddhartha Jejurkar
Oversight in rB7724251af81f. Skip saving selection properties for UV edge ring operator as it allows the operator to re-use the value that was previously set using the key-map. Reviewed By: campbellbarton Maniphest Tasks: T98924 Differential Revision: https://developer.blender.org/D15214
2022-06-28Fix T99156: UV parameterizer respects both Pins and SeamsChris Blackbourn
Rgression from: e6e9f1ac5a2d Reviewed By: Brecht Van Lommel Differential Revision: D15292
2022-06-23Cleanup: Clang tidyHans Goudey
Mainly duplicate includes and else after return.
2022-06-21Cleanup: Fix format on previous commitChris Blackbourn
2022-06-21UV: Add "Select Similar" operator in UV editorChris Blackbourn
Resolves T47437. Differential Revision: https://developer.blender.org/D15164
2022-06-16Fix T98239: During UV Unwrap, create unique indices for each pinned UVChris Blackbourn
Originally reported in T75007. Differential Revision: https://developer.blender.org/D15199
2022-06-03Cleanup: spelling in commentsCampbell Barton
2022-06-03Cleanup: remove unused, commented MTexFace assignmentsCampbell Barton
2022-06-03Merge branch 'blender-v3.2-release'Campbell Barton
2022-06-03Fix T98558: island selection in UV editor can crashPhilipp Oeser
Regression in [0]. When zoomed in, we can be within the face of an island but too far from an edge, in this case uv_find_nearest_face_multi_ex is used instead of uv_find_nearest_edge_multi with the consequence that hit.l cannot be used in uvedit_uv_select_test (it is NULL). Instead, use uvedit_face_select_test instead in this case. [0]: d356edf420ba13b3a544dcc598a0e31a36e1d86c Reviewed By: campbellbarton Ref D15100
2022-06-02Cleanup: replace ParamBool and PBool with bool for GEO_uv APIChris Blackbourn
Also improve const correctness and type correctness. Reviewed By: brecht Ref D15075
2022-06-01Cleanup: spelling in comments, use doxy sectionsCampbell Barton
2022-05-26Cleanup: `struct PHandle` merged with alias `typedef void ParamHandle`Chris Blackbourn
Reviewed By: brecht Ref D15021
2022-05-23Cleanup: remove "texture" from ED_mesh_uv_texture_* funcitonsCampbell Barton
This name made sense when UV's and textures were stored in the same layer (MTFace & TFace).
2022-05-18Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-18Fix T98214: UV selection crash with wire edgesChris Blackbourn
Regression in ffaaa0bcbf477c30cf3665b9330bbbb767397169 which removed the NULL pointer check.
2022-05-13Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-13Fix T89909: Circle Select tool status bar doesn't match the operationsCampbell Barton
Assign get_name functions for select picking and circle select so modifier keys show the result of holding the modifiers.