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-03-24temp-sculpt-colors: fix data transfer modifierJoseph Eagar
2022-03-23temp-sculpt-colors:Joseph Eagar
* Updated reverse face colors to use color attribute api. * Updated rotate face colors to use color attribute api. * Fixed mask by color not redrawing. * Fixed duplicate mask by color keymap entry. * Change bunches of UI strings from "vertex color" to "color attribute." - But not in git submodules.
2022-03-22temp-sculpt-colors: Fix alpha being mangled for byte colorsJoseph Eagar
2022-03-22temp-sculpt-colors: Fix vertex paint color attributeJoseph Eagar
auto creation.
2022-03-22temp-sculpt-colors: Fix crash in redoing afterJoseph Eagar
undoing first stroke of paint brush.
2022-03-22temp-sculpt-colors: fix edit mode vcol drawingJoseph Eagar
2022-03-22temp-sculpt-colors: Fix smear brushJoseph Eagar
Smear brush now: * Walks two rings around vertices instead of one * Accumulates a single weighted average instead of blending individually. * Weights by how close vertices are to the desired smear distance, as well as their edge lengths (in the future edge length weighting will be replaced with either face areas or cotangent weights).
2022-03-22Merge branch 'master' into temp-sculpt-colorsJoseph Eagar
2022-03-22Fix pose-selection from menu not activating the objectCampbell Barton
Unlike the regression from T96663 selecting pose bones from menus never activated the object.
2022-03-22Fix T96663: Selecting a pose-bone doesn't activate the objectCampbell Barton
Regression in [0] that removed object selection changes while remaining in pose-mode. This unintentionally removed object activation. [0]: 859c062a2a3083f53d801fce4b722dcc52482e7e
2022-03-22Fix pose-bone menu selecting before activating the menuCampbell Barton
Regression in 1d88aeb95fc40771be7ef3a835af4206c845aa9b.
2022-03-22Cleanup: variable names for menu selectionCampbell Barton
- Rename baseCount to bone_count, was copy-pasted from object code. - Also rename baseCount to base_count for object selection, following snake case naming conventions. - Use int instead of short for counters, as there is no reason to use short ints.
2022-03-22Cleanup: add proper IMB_openexr.h instead of including file from intern/Brecht Van Lommel
2022-03-22Fix build error when WITH_OPENEXR=OFF, after recent refactorBrecht Van Lommel
2022-03-22Fix build when using WITH_TBB=OFF after recent changesBrecht Van Lommel
And wrap tbb::parallel_sort in blender namespace similar to other TBB functionality.
2022-03-22Cleanup: Clang tidyHans Goudey
2022-03-22Cleanup: Small changes to multires bake normals accessHans Goudey
- Order return arguments last, add `r_` prefix - Use explicit size on array argument - Avoid double negative in if statement
2022-03-22Fix T96401: Broken multires baked normals resultHans Goudey
A 7 year old commit, 2ec00ea0c1be1ace7c, used incorrect indexing for the optional array of precomputed poly normals. Apparently that code path was never used, or this issue would have been discovered earlier. Recent changes calculate normals on a temporary mesh and use those for the "low-res" layer, meaning the precomputed path was always taken.
2022-03-21Fix T96494: Array modifier with caps crash on curve objectsHans Goudey
Since 3b6ee8cee7080af20, a list of vertex groups cannot be retrieved from curve objects for merging because curve objects do not support vertex groups. Previously the empty list on the object was returned. Only mesh objects are supported for the caps.
2022-03-21Fix T96511: New OBJ exporter no longer groups faces by materialAras Pranckevicius
Old python exporter in 3.0 and earlier ordered faces by material, but the new C++ exporter in 3.1+ did not, and was just writing them in whatever is the order of the mesh data structure. This mostly does not cause problems, except in some apps e.g. Procreate -- for large enough meshes, this lack of "order by material" (which ends up having more usemtl lines) ends up creating more mesh subsets than necessary inside Procreate. The change is not computationally heavy, e.g. exporting 6-level subdivided Monkey mesh goes 1085ms -> 1105ms on my machine. Reviewed By: @howardt Differential Revision: https://developer.blender.org/D14368
2022-03-21Curves: new Add brushJacques Lucke
This adds a new Add brush for the new curves object type in sculpt mode. The brush is used to insert new curves (typically hair) on the surface object. Supported features: * Add single curve exactly at the cursor position when `Add Amount` is 1. * Front faces only. * Independent interpolate shape and interpolate length settings. * Smooth and flat shading affects curve shape interpolation. * Spherical and projection brush. This also adds the `surface_triangle_index` and `surface_triangle_coordinate` attributes. Those store information about what position on the surface each added curve is attached to: * `surface_triangle_index` (`int`): Index of the internal triangle that a curve is attached to. `-1` when the curve is not attached to the surface. * `surface_triangle_coordinate` (`float2`): First two numbers of a barycentric coordinate that reference a specific position within the triangle. Ref T96444. Differential Revision: https://developer.blender.org/D14340
2022-03-21UI: improve names and tooltips in viewport preferencesEthan-Hall
Rename OpenGL to GPU, Show to Text Info Overlay, and various other tweaks. Differential Revision: https://developer.blender.org/D14344
2022-03-21UI: Use title case for labelsHans Goudey
2022-03-21Cleanup: move render image and multilayer EXR write code to image_save.ccBrecht Van Lommel
These share a lot of logic with regular image saving and should be unified more in the future.
2022-03-21Cleanup: move image_save.c to c++Brecht Van Lommel
2022-03-21Cleanup: move OpenEXR channel name construction to OpenEXR codeBrecht Van Lommel
2022-03-21Cleanup: add image_format.cc for functions related to ImageFormatDataBrecht Van Lommel
Also fixes missing code to read/write/free/copy color management settings in various places. This can't be set through the UI currently, but still should be handled consistently.
2022-03-21GPU: Allow the user to set an anisotropic filtering setting below the ↵Ethan-Hall
implementation-defined value of `GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT` Allow the user to set an anisotropic filtering setting below the implementation-defined value of `GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT`. This bug-fix is also needed for 2.93 LTS. Reviewed By: fclem Differential Revision: https://developer.blender.org/D14392
2022-03-21Fix T96655: Bloom crashes EeveeHallam Roberts
This patch fixes T96655, bloom crashing Eevee. The error occurs because rB472fc0c55848b2e2d428cfb4f7debb80a4e12081 added `vec3 safe_color(vec3 c)` to `common_math_lib.glsl`. However, `vec3 safe_color(vec3 c)` already exists in `effect_bloom_frag.glsl`. This means `vec3 safe_color(vec3 c)` is duplicated within `common_math_lib.glsl` and `effect_bloom_frag.glsl`. {F12938060 size=full} The duplicate code in `effect_bloom_frag.glsl` can be removed since it's no longer needed. (I checked the remaining methods, there shouldn't be any additional duplicate code) Reviewed By: fclem Maniphest Tasks: T96655 Differential Revision: https://developer.blender.org/D14396
2022-03-21T84815: Missing preview image in compositing file output nodePierre Risch
Hello, I saw that this revision was stalled for a few months so I tried to update it. https://developer.blender.org/D10995 I added a function that adds a preview on the first connected input of the file output node. I removed the preview on the single layer format Thanks Reviewed By: #compositing, jbakker Maniphest Tasks: T84815 Differential Revision: https://developer.blender.org/D14219
2022-03-21Fix T96572: eevee crash with motion blur and stereoscopyJacques Lucke
This was a use-after-free bug due to dangling pointers.
2022-03-21Fix T96255: Node socket fails to dragCampbell Barton
This is a general issue exposed by moving from tweak to click-drag events [0], however this bug would have existed for both click & click-drag events beforehand. Since [1] the following behavior could occur: - Click-drag the cursor away from the button. - Leaving the button would flag it as disabled. - The disabled button would then break causing the event to be considered handled. - Once handled no click / click-drag action would be tested. The bug would only happen if the cursor left the button before the drag threshold was reached which tended to happen with an UI-scale 2 or more. Or with an increased drag threshold. Revert [1] (fix for T78503), which is no longer needed since as of [2]. [0]: 4986f718482b061082936f1f6aa13929741093a2 [1]: 6f96dd85766a8159d5ffb761cbb4dbd20b7cad00 [2]: 87c13ac68c477486adecd8d548a016309fc2b54d
2022-03-21Correct error in 3dc44f8c89acc082334034982ffc8bc802f23475Campbell Barton
The array for event.flag was too big, harmless but incorrect. Remove the size from the declaration as it's not needed.
2022-03-21Event System: improve event printingCampbell Barton
- Use set-style printing of modifier flags instead of booleans. - Include event.flag. - Print on a single line (so output can be more easily filtered).
2022-03-21Cleanup: cursor motion events now have value set to KM_NOTHINGCampbell Barton
In some cases value of cursor motion events was set from the last event written to the wmWindow.eventstate. Avoid potential errors by ensuring cursor motion events always have their value set to KM_NOTHING.
2022-03-21Fix T96510: ASAN failure when selecting text in Text EditorGermano Cavalcante
Regression in 541ba689913e8359216a61a67a60425837af88a9
2022-03-20Fix T96470 new obj exporter writing material groupsAras Pranckevicius
This is patch D14349 from Aras Pranckevicius. The logic in the code was _completely different_ from the documentation and what the python exporter in 3.0 did. The new code assumed that "export material groups" meant "append material name to the object name", and was only ever kicking in when the "export object groups" option was also checked. But the proper behavior (as in 3.0 exporter & the online docs), is to emit g objectname_materialname before each usemtl line. Which is something entirely else.
2022-03-20Fix T96415: new OBJ exporter was applying scaling factor incorrectlyAras Pranckevicius
This is patch D14347 from Aras Pranckevicius. Instead of scaling "the scene" (i.e. transform vertices by object matrix, then multiply by scale factor), it was instead first applying the scale factor in local space, and then transforming by the object matrix.
2022-03-20GPencil: Port main object shader to ShaderCreateInfoClément Foucault
This is quite a huge cleanup. Making use of the `common_gpencil_lib.glsl` to share more codes and use more consistent codestyle. The gpencil engine specifics are now out of the `gpencil_vertex()` function making it easier to add more features. There should be no regression as all workarounds are kept as is.
2022-03-20GPUSource: Fix failure case in the enum preprocessorClément Foucault
Some C headers might define the typedefs of the enum themselves. Even if they are guarded by preprocessor `#if`, our enum preprocessor has no idea of the validity of the statement. So we just bypass if there is a typedef just before any `enum` keywords. Note that the typedef matching is quite fragile.
2022-03-20DRW: Port improvements in common_math_lib.glsl from `eevee-rewrite`Clément Foucault
Mostly quality of life functions and macros.
2022-03-20DRW: Make use of shader shared headerClément Foucault
# Conflicts: # source/blender/draw/intern/draw_manager.h # source/blender/draw/intern/draw_manager_exec.c # source/blender/draw/intern/draw_shader_shared.h
2022-03-20DRW: Introduce GPencil common GLSL libraryClément Foucault
This library contains the needed functions to render GPencil object geometry. Centralizing these will make it possible for other draw engines (EEVEE, Overlay) to reuse the same vertex shader code and possibly the same fragment rejection methods.
2022-03-20GPencil: Use ShaderCreateInfo for fullscreen shadersClément Foucault
Simple port. Shouldn't break anything.
2022-03-20GPencil: Use ShaderCreateInfo for antialiasing shadersClément Foucault
Simple port. Shouldn't break anything.
2022-03-20GPencil: Use ShaderCreateInfo for vfx shadersClément Foucault
Simple port. Shouldn't break anything.
2022-03-20DRW: Add new texture from pool acquire/release mechanismClément Foucault
This adds a simple and more manageable temp texture behavior. The texture is garanteed to be available only between the acquire/release pair. This makes the same engine able to reuse the textures and even overlap the acquire & release calls.
2022-03-20DRW: GPU wrappers: Some quality of life improvementsClément Foucault
- Add name support to storage buffers - Delete view functions for TextureFromPool - Add support for different size acquire and assert on mulitple acquire - Allow multiple release
2022-03-19Fix T96430: new OBJ exporter wrong normals for non-uniform scale, and wrong ↵Aras Pranckevicius
face order for negative scale This applies patch D14343 from Aras Pranckevicius, with a description: The new 3.1+ OBJ exporter did not have correct logic when faced with non-uniform & mirrored (negative on odd number of axes) object scale: - Normals were not transformed correctly (should use inverse transpose of the matrix), and were not normalized, - Face order was not "flipped" when transform has negative scale on odd number of axes (visible when using "face orientation" viewport overlay).
2022-03-19Make Format ChangesHarley Acheson
Only formatting changes found by running "make format", no functional changes Committed without review, but with verbal approval by Hans Goudey