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-09-03UDIM: Show the UV grid even when images are loadedJesse Yurkovich
Allow the UDIM grid to be shown and adjusted when there are images loaded in UV edit mode. Right now the grid feature disappears once an image is loaded and many have found this to be confusing. Based on community and artist feedback, there was support to change this behavior[1] This patch does the following: - Allows the grid to be shown even when images are present - The max allowable dimensions for the grid has been increased from 10x10 to 10x100 to match the underlying maximum UDIM range that blender supports Note: This should not affect other Image editor modes like Paint/Mask or the Render Result viewer etc. Future work in this area is currently documented in a dedicated design task[2] [1] https://devtalk.blender.org/t/the-udim-tile-grid-design-and-feedback-thread/20136 [2] https://developer.blender.org/T90913 Differential Revision: https://developer.blender.org/D11860
2021-09-01Cleanup: Better names for eDRWColorManagement.Jeroen Bakker
Names describe better what will be applied. Previous names were extracted from the original code, that weren't accurately named.
2021-09-01Cleanup: Use nullptr.Jeroen Bakker
2021-08-31Cleanup: pass value by ref in draw_color_managementJeroen Bakker
2021-08-31Cleanup: DRW color management seperated in multiple functions.Jeroen Bakker
2021-08-31Cleanup: Moved DRW_vieport_colormanagement_set to draw_color_management.Jeroen Bakker
2021-08-31Cleanup: Converted draw_color_management to CPP.Jeroen Bakker
2021-08-31Cleanup: Draw Manager remove do_color_management from drawing context.Jeroen Bakker
The do_color_management option was set, but never read.
2021-08-31Cleanup: Remove unused DRW_state_do_color_management.Jeroen Bakker
Function wasn't used since we migrated to the new color management pipeline. It is also not expected it would be needed in the current design.
2021-08-31Fix crash in recent commit.Jeroen Bakker
Crash introduced by {rB8e00db42961297facd521139762fe8c42042fc5c}, fixed with a null check. Object can be null.
2021-08-31Fix: Weightpaint overlay not visible when display type wire/boundbox.Jeroen Bakker
When the object display type was set to wireframe or boundbox the depth buffer wasn't updated resulting in not visible weightpaint overlay. Thanks to Demeter Dzadik for mentioning it.
2021-08-30Fix T90742: Gpencil ghost point on selectionHenrik Dick
Reviewed By: fclem, filedescriptor Maniphest Tasks: T90742 Differential Revision: https://developer.blender.org/D12259
2021-08-26Cleanup: warningsCampbell Barton
2021-08-26Cleanup: spelling in commentsCampbell Barton
2021-08-26Cleanup: clang-formatCampbell Barton
2021-08-25BLF: Remove ASCII-only Code PathsHarley Acheson
Remove redundant code for drawing text strings that contain only ASCII. See D12293 for much more detail. Differential Revision: https://developer.blender.org/D12293 Reviewed by Campbell Barton
2021-08-24Render: Lazily allocate render passes pixels storageSergey Sharybin
The idea is to only allocate pixel storage only when there is an actual data to be written to them. This moves the code forward a better support of high-res rendering when pixel storage is not allocated until render engine is ready to provide pixel data. Is expected to be no functional changes for neither users no external engines. The only difference is that the motion and depth passes will be displayed as transparent for until render engine provides any tile result (at which point the pixels will be allocated and initialized to infinite depth). Differential Revision: https://developer.blender.org/D12195
2021-08-23Cleanup: move the buffer list to 'MeshBufferCache'Germano Cavalcante
The cache is used to fill the buffer list.
2021-08-23Cleanup: Isolate the batch list struct into a struct called MeshBatchListGermano Cavalcante
This allows for a simplification of macros and combines with `MeshBufferList`.
2021-08-23Cleanup: rename 'MeshBufferExtractionCache' to 'MeshBufferCache'Germano Cavalcante
Matches the existing `MeshBatchCache`.
2021-08-23Cleanup: rename 'MeshBufferCache' to 'MeshBufferList'Germano Cavalcante
`MeshBufferList` is more specific and can avoid confusion with `MeshBufferExtractionCache`.
2021-08-23Cleanup: Move 'tris_per_mat' member out of 'MeshBufferCache'Germano Cavalcante
`MeshBufferCache` is a struct representing a list of buffers. As such, `GPUIndexBuf **tris_per_mat` is out of place as it does not represent one of the buffers in the list. In fact this member should be close to `GPUBatch **surface_per_mat` as they are related. The code for dependencies between buffer and batch had to be reworked as it relies on the member's position. Differential Revision: https://developer.blender.org/D12227
2021-08-23Fix T90772: Image Editor not sampling color from the the currentlyPhilipp Oeser
selected pass Caused by {rBebaa3fcedd23}. Seems this above commit assumed an ImageUser's multi_index is only used for Multiview/Stereo? This is not the case, multi_index also stores the index for layer/pass combination. If we call both BKE_image_multilayer_index and BKE_image_multiview_index (even though this is not appropriate/needed for multilayer images?), we might end up overwriting multi_index again. note: looking at this I was also wondering why we update the ImageUser in image-buffer-aquiring funnctions [and not from the UI, e.g. template_image_layers, but that is a whole different story I guess, see comment in T90772 as well] note2: this could also use a utility function (this is not the only place where this is done), this is fo a cleanup commit. Maniphest Tasks: T90772 Differential Revision: https://developer.blender.org/D12267
2021-08-23Fix T90651: camera reconstruction crash without scene cameraPhilipp Oeser
This was working differently in 2.79, tried tracking this down and it seems this was wrong since the 2.8 beginning in {rB7907dfc40018}. This would not only crash without an active scene camera, but would also result in different tracks from different camera's constraints could not be selected. So select id depends on corresponding camera, remove the dependency on scene camera completely. Maniphest Tasks: T90651 Differential Revision: https://developer.blender.org/D12230
2021-08-21Cleanup: spelling in comments & minor cleanupCampbell Barton
Also hyphenate 'mouse-move' use doxy sections in render_update.c & move function comment from the header to the source.
2021-08-18T73434: Improve Weight Paint Overlay Drawing.Jeroen Bakker
Master multiplied the weight paint on top of the rendered image. This reduced readability. This patch removes the multiplication for weight painting and adds a hint of the geometry below the overlay. Reviewed By: Mets, pablodp606, campbellbarton Maniphest Tasks: T73434 Differential Revision: https://developer.blender.org/D12170
2021-08-18Fix wireframe overlay not blending over paint overlay correctlyPablo Dobarro
When using wireframe opacity, the paint overlay needs to be drawn before the wireframes in order to alpha blend correctly. Sculpt overlays were also affected by this, so this commit refactors this part of the code in case other overlays needs to be added in the future. Reviewed By: Mets Differential Revision: https://developer.blender.org/D12235
2021-08-16Fix wrong usage of 'sizeof'Germano Cavalcante
The intention was to use `ARRAY_SIZE`. No functional changes.
2021-08-13Cleanup: fix typos in static variablesGermano Cavalcante
_desps --> _deps
2021-08-13Fix FTBFS on mips64el architectureMatteo F. Vescovi
While trying to get Blender 2.93.x LTS to build fine on all release architectures in Debian, I noticed that the misleading use of "mips" as integer variable caused problems when compiling on mips64el. The patch should fix the issue. Reviewed By: fclem Differential Revision: https://developer.blender.org/D12194
2021-08-12Add Extras Dropdown Menu to ConstraintsHenrik Dick
Add Apply Constraint, Duplicate Constraint, and Copy To Selected operators, and include them in a menu similar to the menu for modifiers. The shortcuts in the extras menu are also matched to modifiers. All the here added operators are intended to work exactly like the analogous ones for modifiers. That means the apply operator should apply a constraint as if it was first in the list, just like modifiers do. I have added the same warning message as for modifiers when that happens. The decision to use this approach of appling the constraint as if it was first, was made for consistency with modifiers. People are already used to how it works there. Is also provides more intricate control over the applied transforms, then just applying all constraints up to that one. Apply all constraints is already kinda implemented in Bake Animation. Reviewed By: HooglyBoogly, sybren, #user_interface Differential Revision: https://developer.blender.org/D10914
2021-08-12Cleanup: spelling in commentsCampbell Barton
2021-08-09UI: Image Editor: Fix missing 2D cursor in mask edit modeAaron Carlisle
The 2D cursor should be visible in both mask and uv edit modes. This was likely and oversight when splitting the image editor into the UV and Image editors
2021-08-06Cleanup: clang tidyJacques Lucke
`bugprone-signed-char-misuse`
2021-08-05DRW: New Select Debug EngineGermano Cavalcante
This is a simple engine used only to debug the texture of select ids. It is only used when the `WITH_DRAW_DEBUG` option is enabled and the debug value is 31. Reviewed By: fclem Differential Revision: https://developer.blender.org/D5490
2021-08-05Cleanup: remove redundant parenthesisCampbell Barton
2021-08-05Cleanup: make formatAaron Carlisle
2021-08-04GPencil: New Brush option to define Caps typeAntonio Vazquez
This is used to set the default caps type for the stroke. Before always was rounded and only could be changed later in Edit mode Two new buttons has been added to topbar. NOTE: New icons are been designed (T90414) The buttons are expanded to list in Properties panel. Reviewed By: mendio, HooglyBoogly Differential Revision: https://developer.blender.org/D11999
2021-08-04Fix T90427: Center View to Mouse brokenGermano Cavalcante
rBfb87d236edb7 made the values returned by `projmat_dimensions` more standardized following the documentations. But the functions in Blender that called `projmat_dimensions` followed a proposal that these values corresponded to a distance of 1m of clip. Adjust these functions to follow the new algorithm.
2021-08-04Viewport normal drawing with constant lengthJeroen Bakker
Patch for: T37878 {F10169694} Reviewed By: fclem Differential Revision: https://developer.blender.org/D11487
2021-08-03Fix select engine buffer having wrong vertex sizeGermano Cavalcante
The theme used was wrong and the vertex size is twice as set in the theme.
2021-07-30Cleanup: remove redundant ifdef checkCampbell Barton
The define that was tested no longer exists.
2021-07-30Cleanup: clang-format (re-run after v12 version bump)Campbell Barton
2021-07-29Fix T90295: inconsistent render pass order between Cycles and EeveeBrecht Van Lommel
2021-07-26Cleanup: Rearrange mesh extraction filesGermano Cavalcante
In the draw module, it's not easy to identify what its header is, and where the shared functions are. So move `draw_cache_extract_mesh_extractors.c` and `draw_cache_extract_mesh_private.h` to the same folder as the extractors and rename these files to make them more identifiable. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11991
2021-07-26Cleanup: clang tidyJacques Lucke
2021-07-26Cleanup: spelling in commentsCampbell Barton
2021-07-23Cleanup: code comments punctuation / spacingCampbell Barton
2021-07-22Cleanup: Silence warning - unused parameterGermano Cavalcante
2021-07-21Draw Cache: extract tris in parallel rangesGermano Cavalcante
The `ibo.tris` extraction in multithread is currently only done if the mesh has only 1 material. Now we cache a map indicating the index of each polygon after sort and thus allow the extraction of tris with materials in multithreaded. As caching is a heavy operation and was already being performed in multi-thread for triangle offsets, no significant improvements are expected. The benefit will be much greater when we can skip updating the cache while transforming a geometry. **Profiling:** ||master:|PATCH: |---|---|---| |large_mesh_editing_materials:|Average: 13.855380 FPS|Average: 15.525684 FPS ||rdata 9ms iter 36ms (frame 71ms)|rdata 9ms iter 29ms (frame 64ms) |subdiv_mesh_final_only_materials:|Average: 28.113742 FPS|Average: 28.633599 FPS ||rdata 0ms iter 1ms (frame 36ms)|rdata 0ms iter 1ms (frame 35ms) 1.1x overall speedup Differential Revision: https://developer.blender.org/D11445