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
path: root/source
AgeCommit message (Collapse)Author
2021-01-06Merge branch 'master' into clip_prop_removeAaron Carlisle
2021-01-05Fix T83094: Alternate rows in the Sequencer are green (macOS)Yevgeny Makarov
The issue is that `UI_GetThemeColorBlendShade4fv()` creates a color with alpha, but there is not any background underneath to blend in with. The solution is just to draw an opaque background first, which also halves the number of rects to draw. Note that the brighter rows get very slightly darker after this change. Differential Revision: https://developer.blender.org/D9947
2021-01-05Fix T79146: Sculpt Mode lags until the entire mesh is visiblePablo Dobarro
This was caused when the BKE_pbvh_draw_cb function was used with update_only_visible set to false. In that case, all nodes with the flag were updating, but the update flag was only cleared for visible nodes. This was causing constant updates per redraw in no visible nodes until they enter the view frustum and their flag was cleared. In order to fix this and prevent it from happening again: - Updating the buffers, flushing the updates and clearing the flags are now part of the same function. It does not make sense to do these in separate places. - The BKE_pbvh_draw_cb function was refactored so the pbvh_update_draw_buffers is only called once. It should now be easier to understand what the function does when it is used to update only visible nodes or all nodes. Reviewed By: mont29 Maniphest Tasks: T79146 Differential Revision: https://developer.blender.org/D9935
2021-01-05Cleanup: Reduce variable scopeHans Goudey
2021-01-05Cleanup: Undo code: `poll` function.Bastien Montagne
Remove obviously outdated comment, and explictely set `poll` to `NULL` in the one case it is not actually defined (sculpt undo).
2021-01-05Cleanup: UndoType: use `size_t` for memory size of structs.Bastien Montagne
2021-01-05Fix T84389: RGB Curves node shows "tone" option outside of compositorPhilipp Oeser
Since the introduction in rB4de7c0c3105a, the option is only used in the compositor, it has no effect elsewhere [texture nodes, shader nodes]. Now only show the option for the compositor. Maniphest Tasks: T84389 Differential Revision: https://developer.blender.org/D10005
2021-01-05Cleanup: clang tidyJacques Lucke
2021-01-05Fix: tried to set error message on modifier that does not existJacques Lucke
Without this, the example file in T83730 crashes in a debug build when deleting the hair edit bake in the particle settings.
2021-01-05Compositor: Alpha ModeJeroen Bakker
{D9211} introduced pre-multiplying the color for the keying node. This pre-multiplication should also be done by other keying nodes and should be the default operation for alpha node. This patch will change the logic of keying nodes (Cryptomatte Node, Channel Matte, Chroma Matte, Color Matte, Difference Matte, Distance Matte, Luminance Matte) and breaks old files. The Set alpha node has a mode parameter. This parameter changes the logic to `Apply Mask` the alpha on the RGBA channels of the input color or only replace the alpha channel (old behavior). The replace mode is automatically set for older files. When adding new files the the multiply mode is set. Reviewed By: Sergey Sharybin Differential Revision: https://developer.blender.org/D9630
2021-01-05Fix T83282: division by zero when creating psys tasksJacques Lucke
2021-01-05Cleanup: Compositor comment styleJeroen Bakker
2021-01-05Fix T84367: Fix crash when showing invalid/legacy constraintsPhilipp Oeser
Exposed by rBeaa44afe703e. Definition for CONSTRAINT_TYPE_NULL is not totally clear (it is set for constraints without data, see an old comment from Ton), but for these, a TypeInfo cannot be fetched. Avoid processing those constraints in UI code, just do nothing instead. Maniphest Tasks: T84367 Differential Revision: https://developer.blender.org/D9987
2021-01-05Eevee Cryptomatte: Store hashes in render result meta dataJeroen Bakker
Stores cryptomatte hashes as meta data to the render result. Compositors could use this for lookup on names in stead of hashes. Differential Revision: https://developer.blender.org/D9553
2021-01-05Fix T84053: Mask overlay in image editor not workingJeroen Bakker
The mask overlay wasn't part of the overlay engine. The reasoning nehind this was that more editors used the mask overlay and most of them used old drawing code. This patch adds the mask overlay drawing to the draw overlay engine. This code path will only be used by the image editor VSE, Compositor and Movie Clip editor will still use the previous method. During this patch some alternatives have been researched: 1. `ED_mask_draw_region`: this would lead to different code paths when drawing in the image editor, and some hacks to retrieve the correct framebuffer. 2. Add mask drawing to image engine: Would lead to incorrect color management when viewing the mask. 3. Add mask drawing to image engine and overlay engine: Would lead to duplicated code. 4. Add mask drawing to overlay engine and for combined overlay select the correct framebuffer. Option 4 was chosen as the exception (switching framebuffers) can be done without hacks. The code stays clean.
2021-01-05Fix T84404: Crash when using Skin Resize in mesh without Skin modifierGermano Cavalcante
Caused by rB54ee4109143b Before that commit `TD_SKIP` was marked for all vertices. Now skip the whole operation as all vertices are skipped.
2021-01-05Asset browser: workspace in the wrong categoryPhilipp Oeser
Workspaces [FILTER_ID_WS] were in the `Environment` category IDFilterBoolean, whereas they are in the `Miscellaneous` category in `rna_def_fileselect_asset_params`. Make this consistent ['Miscellaneous'] in both cases. (note this was already done in rB2c317457cbf2 for the file browser case) Spotted while looking into T83983. Maniphest Tasks: T83983 Differential Revision: https://developer.blender.org/D9911
2021-01-05Sculpt: use distance threshold for dyntopo symmetrizeCampbell Barton
This was only used for non-dyntopo symmetrize. There is no reason to use a hard-coded value in this case.
2021-01-05Cleanup: remove UNUSED(..) from public function declarationsCampbell Barton
This doesn't serve any purpose and can become out of sync with the function it's self without reporting warnings.
2021-01-05Cleanup: remove redundant RNA_types.h header from UI_interface.hCampbell Barton
2021-01-05Fix T84364: Sculpt symmetrize fails with shape keysCampbell Barton
Use the BMesh symmetrize operator instead of using the modifier code. While we could support shape-keys with the existing code used by the mirror modifier, we'd need to add code-paths for evaluated mesh & bmesh conversion to handle shape-keys differently just for this one case, since we want to avoid copying & processing shape-keys layers for evaluated meshes in general.
2021-01-05Fix T84018: bulk selection (box, circle, lasso) - unwarranted selectionPhilipp Oeser
of islands in vertex mode if "UV Sync Selection" is on Caused by rB72b422c1e101: UV: support select linked with sync-select in vert/edge modes If you had island selection mode enabled in the UV editor with UV Sync Selection off, and switch UV Sync Selection on, then in vertex selection mode all bulk selection ops (box, circle, lasso) will be selecting whole islands. Prior to culprit commit, for sync selection ON plus island selection ON, BM_uv_vert_map_create would always return a NULL vmap (it was called with `use_select` = True, no faces tagged selected). After said commit, for sync selection ON plus island selection ON, BM_uv_vert_map_create would return a valid vmap (it is now called with `use_select` = False, no faces tagged selected - but if `use_select` is False, all UVs will be added here). If I am not mistaken, it is never wanted to actually select islands with box/lasso/circle when sync selection is turned ON [after all you dont have the UI for it showing], so solution is now to check for this earlier and not even call uv_select_linked_multi in those cases. (Maybe in the future this can be unified and we dont need separate selection modes fo UV and 3D?) Maniphest Tasks: T84018 Differential Revision: https://developer.blender.org/D9917
2021-01-05Cleanup: Enum for mask overlay modeJeroen Bakker
2021-01-05Fix T84216: Drawing a paintcurve [vertexpaint / weightpaint] failsPhilipp Oeser
Caused by rB35e3dc9192e7. Above commit moved 'Weight Paint' & 'Vertex Paint' keymap also before 'Paint Curve' keymap. This way, paintcurve.add_point_slide would be overriden by: - paint.vertex_paint (inverted) - paint.weight_sample Now move 'Paint Curve' above again. Reviewers: campbellbarton Maniphest Tasks: T84216 Differential Revision: https://developer.blender.org/D9939
2021-01-05BMesh: Add shape-key support to edit-mesh symmetrizeCampbell Barton
Symmetrize now flips shape-keys too since using the un-flipped locations creates an overlapping surface which isn't useful.
2021-01-05BMesh: add use_shapekey to BMesh transform operatorsCampbell Barton
Currently unused, needed for symmetrize to support shape keys.
2021-01-05Cleanup: use scale's 'space' argument instead of two transform callsCampbell Barton
2021-01-05Fix bmesh.mirror operatorCampbell Barton
Checks for merging vertices assumed all the geometry was being mirrored.
2021-01-05Cleanup: typos (repeated words)Campbell Barton
2021-01-05VSE: Fix incorrect condition for skipping prefetch framesRichard Antalik
This error was overlooked in commit be69f23b687a.
2021-01-05Cleanup: Use flag type explicitlyHans Goudey
Using the `uiButtonGroupFlag` type explicitly can avoid the need to look up which enum should be used as an argument.
2021-01-05Cleanup: Remove unused variables in transform mesh skin codeHans Goudey
Differential Revision: https://developer.blender.org/D9992
2021-01-05Fix T84382: Geometry Nodes: Vertex group attributes are removedHans Goudey
In the report, the geometry is copied because it has two users and the final join node needs to write to it. The join node also happens to remove attributes apparently, because it exposed a mistake in the "copy" method of the `MeshComponent` class. The copy is supposed to be a deep copy, but the vertex group name map was not duplicated. Differential Revision: https://developer.blender.org/D9991
2021-01-05Fix T84183: Dark area in the bevel custom profile widgetPi Lanningham
If there was a control point at an extreme position when drawing a curve profile (in the bottom corner), the fill's trianglulation could fail, giving a misleading view of the curve. This is because the extra points added to create a closed shape were exactly on the border of the view. This commit adds a small margin to those points, so the triangulation doesn't fail because the line overlaps itself. Another possible solution is to use a different algorithm to fill the polygon, such as scanfill, which is used by curve objects. This seemed simpler, and seems to work fairly robustly. Differential Revision: https://developer.blender.org/D9989
2021-01-04Fix T84376: Skin Resize(Ctrl + A) does not work in SymmetryGermano Cavalcante
Since the `TransData` converted from vertices is the same used for other transform modes (Move, Rotate, Resize), the logic used for mirroring focused only on the position of the vertices. The solution here is to create a specific `TansData` for `CD_MVERT_SKIN`.
2021-01-04Fix T83876: blender crashes when baking particles + smoke simJacques Lucke
This was introduced in rBe5c0d4613a8943c712b57fb336997ecd78e6508e. The issue is that the new fluid system does not use the pointcache system for caching anymore, but still relies on pointcache for other things. For example, it uses DEG_add_collision_relations which internally creates relations with pointcache. Not sure if there are other issues. Ideally, this dependence should be resolved in one way or another at some point, but that is out of scope for this fix. Differential Revision: https://developer.blender.org/D9984 Reviewers: brecht
2021-01-04Fix T84260: NURBS edit mode lines not showingFalk David
When in edit mode, the edit lines for de-selected surfaces did not show up. The bug was caused by the is_gpencil bool which reused another flag. Both grease pencil and nurbs surfaces use the edit_curve_handle shader. A dedicated flag was added to make sure the is_gpencil bool is set correctly. Reviewed By: fclem Maniphest Tasks: T84260 Differential Revision: https://developer.blender.org/D9985
2021-01-04Fix T84095: Eevee vextex color isn't working with hairJeroen Bakker
Regression introduced by {c766d9b9dc56}. When converting the vertex buffer to a texture buffer the fetch mode wasn't checked and the short was bitwise interpreted as a float. This change checks the fetch_mode and select the correct texture buffer. This could also be added to other places when needed. At this time it is only added here to support vertex colors when used with hair particles.
2021-01-04Fix: Update normals when switching scene qualityJeroen Bakker
Recent commits also updated normals for metaballs, curves and volumetric objects. This change tags will tag to generate geometry for these new types.
2021-01-04GPU: Enable HQ normal work around for AMD PolarisJeroen Bakker
THe high quality normals work around is enabled for Polaris cards using the official drivers. Since driver version 2.11.2 they fail to render using low quality normals. The detection of polaris cards is done by matching the opengl renderer. The renderer strings have been extracted from various reports linked to {T82856} but isn't complete as some reports are missing the exact renderer as users don't always report via the help menu.
2021-01-04GPU: Add HQ normals workaround.Jeroen Bakker
This change makes it possible for platforms to only support high quality normal rendering. This is part of {T82856} where current AMD drivers running on the polaris architecture does not support the low quality setting due to a driver bug. In a next commit the work around will be enabled.
2021-01-04Fix mistake in rBef90a8e12caf in data transfer code.Bastien Montagne
Old mistake from 2.80 era when we got rid of DerivedMesh... Not critical, but could be backported to 2.90LTS too.
2021-01-04Fix T84362: Crash when use Vertex Paint in subdivide strokesAntonio Vazquez
Maniphest Tasks: T84362 Differential Revision: https://developer.blender.org/D9983
2021-01-04Fix T84345: Transforming the cursor fails with absolute grid-snapCampbell Barton
Absolute grid snapping was using the pivot, which doesn't make sense when transforming the cursor.
2021-01-04DrawManager: High quality normals for non meshesJeroen Bakker
This adds high quality normals for non meshes. These include * Volumetric Object Wireframe * Metaballs * Extracted Curves * Curves in edit mode This is in preparation to fix a regression in recent AMD drivers where the `GL_INT_2_10_10_10_REV` data type isn't working in Polaris cards.
2021-01-04Fix T84106: attribute mix node worked incorrectly on float attributesJacques Lucke
2021-01-04Fix imbuf.new & resize allowing zero & negative dimensionsCampbell Barton
2021-01-04Cleanup: remove unused optional argument to imbuf.newCampbell Barton
While this didn't cause any problems, it was incorrect.
2021-01-04Fix T84191: remove python API limits for Image.scale() dimensionsPhilipp Oeser
Since the introduction in 2c23bb838979131667c922df1f01738e02e6ca16, these were set to 10000 each. This seems like an arbitrary limit (BKE_image_scale / IMB_scaleImBuf don't have limits and I couldn't spot similar size restrictions in image relating functions), now match what we do for creating images (rna_Main_images_new), use INT_MAX. Ref D9950
2021-01-04Fix crash reading files with unknown modifier ID'sCampbell Barton
Missing NULL check for the modifier type.