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-02-03Cleanup: Use utility function to access original modifier in RNASergey Sharybin
2022-02-03Despgraph: Remove asserts from object modifier backupSergey Sharybin
The modifiers are mapped between original and evaluated objects based on their session IDs. The pointer to original modifier is no longer needed for the backup: it remained from the initial implementation which was rewritten at some point. This is a preparation for removal of the pointer to original modifier.
2022-02-03Fix wrong function call in Cycles acceleration UI poll.Thomas Dinges
Thanks to Sergey for spotting this mistake.
2022-02-03Fix T93625: fallback tools don't work with RMB selectCampbell Barton
c9d9bfa84ad5cb985e3feccffa702b2f3cc2adf8 caused a regression in when the right-mouse select action was set to "Select & Tweak" (default). Now the fallback tool works with RMB select as it did before.
2022-02-02Fix (unreported) bug in liboverride resync code.Bastien Montagne
Part of the resynching code would access collections' objects base cache, which can be invalid at that point (due to previous ID remapping and/or deletion). Use a custom recursive iterator over collections' objects instead, since those 'raw' data like collection's objects list, and collection's children lists, should always be valid. Found while investigating a studio production file.
2022-02-02Draw Manager: Marked work around code.Jeroen Bakker
Mark the work around that was added for the VSE memory leak.
2022-02-02Workaround for VSE memory leak.Jeroen Bakker
This is a temp fix for a memory leak where the VSE isn't aware that a float representation of the image could exist. The VSE somehow doens't clears it (refcounter is still 1). The work around is just to let the image engine clean up all the data it created. Potential this would add more overhead when buffers are needed more than once.
2022-02-02BLI: fix memory leak in VectorSetJacques Lucke
The leak happened when the vector set had to grow when it was empty but it had allocated the keys array already.
2022-02-02Fix T95084: evaluate all output attributes before changing geometryJacques Lucke
This refactors how output attributes are computed in the geometry nodes modifier. Previously, all output attributes were computed one after the other. Every attribute was stored on the geometry directly after computing it. The issue was that other output attributes might depend on the already overwritten attributes, leading to unexpected behavior. The solution is to compute all output attributes first before changing the geometry. Under specific circumstances, this refactor can result in a speedup, because output attributes on the same domain are evaluated together now. Overwriting existing might have become a bit slower, because we write the attribute into new buffer instead of using the existing one. Differential Revision: https://developer.blender.org/D13983
2022-02-02Fix T95288: Shrinkwrap selection broken in edit modeSergey Sharybin
Mistake in the 974981a63704: f the edit data is not present then the origindex codepath is to be used. Added a brief note about it on the top of the file. More ideally would be to remove edit mesh from non-bmesh-wrappers but this would require changes in the draw manager to make a proper decision about drawing edit mode overlays.
2022-02-02Cleanup: Use correct identifier for ShaderParameters.Jeroen Bakker
Code use struct and class, but should only have used struct.
2022-02-02Fix T95378: Seek problems when timecodes are usedRichard Antalik
Function `IMB_indexer_get_seek_pos()` can return non 0 seek position for frame index 0. This causes seeking to incorrect GOP and scanning ends with failiure. Hard-code first frame index seek position to 0. Differential Revision: https://developer.blender.org/D13974
2022-02-02Fix T95353: Crash with proxy auto buildingRichard Antalik
Proxy building data were freed before process was started. Reviewed By: sergey Differential Revision: https://developer.blender.org/D13972
2022-02-01Fix T95278: Crash on startup because of GLSL recursionClément Foucault
Bypassing the defines which are only there for error checking.
2022-02-01Fix T91463: Separate points makes gap on cyclic strokeFalk David
If an entire cyclic stroke was selected, calling "Separate by Points" would leave a gap in the new object (making the new stroke non-cyclic). The patch makes sure that if we separate by points and all points are selected, we fall back to separate by stroke. Reviewed By: antoniov Maniphest Tasks: T91463 Differential Revision: https://developer.blender.org/D12527
2022-02-01Fix T95395: dangling parent pointer when creating node groupJacques Lucke
Differential Revision: https://developer.blender.org/D13981
2022-02-01Fix T89514: GP draw mode not saved when scene is not the active oneFalk David
This patch fixes the error that pops up (`Error: Unable to execute '... Mode Toggle', error changing modes`) when trying to switch to e.g. draw mode from a grease pencil object that was saved in draw mode in an inactive scene when the file was loaded. Note that this does not fix the bigger issue described in T91243. The fix makes sure that we reset all the mode flags on the grease pencil data when we set the mode to object mode. Reviewed By: antoniov Maniphest Tasks: T89514 Differential Revision: https://developer.blender.org/D12419
2022-02-01Silence draw manager warning.Jeroen Bakker
This message isn't useful for users so silenced it.
2022-02-01Cleanup: Remove unused datatoc definitions.Jeroen Bakker
2022-02-01Fix T95262: instances ignored in Frame Selected operatorJacques Lucke
The issue was that the code only looked at `dob->ob` instead of `dob->ob_data` which is necessary since rB5a9a16334c573c4566dc9b2a314cf0d0ccdcb54f. This now uses the same pattern that is used in other places where `BKE_object_replace_data_on_shallow_copy` is used.
2022-02-01Fix T95314: constant values not shown in spreadsheetJacques Lucke
2022-02-01Fix T95356: Crash in armature edit mode and certain conditionSergey Sharybin
Blender would have crashed when renaming bone in Edit Mode, Saving, and than selecting/deselecting. Caused by a mistake in the 0f89bcdbebf5: can not "short-circuit" the CoW update if it was explicitly requested. Safest for now solution seems to be to store whether the CoW component has been explicitly tagged, so that the following configuration can be supported: DEG_id_tag_update(id, ID_RECALC_GEOMETRY); DEG_id_tag_update(id, ID_RECALC_COPY_ON_WRITE); Differential Revision: https://developer.blender.org/D13966
2022-02-01Partial Fix: Showing Compositor Backdrop in node editor.Jeroen Bakker
Since splitting the depth and the color shader in the image engine the backdrop wasn't visible anymore. The reson is that the min max uv coordinates were never working for the node editor backdrop that uses its own coordinate space. This partial fix will ignore the depth test when drawing the color part of the backdrop. This will still have artifacts that are visible when showing other options as RGBA. Proper fix would be to calculate the the uv vbo in uv space and not in image space.
2022-02-01Fix T95376: Fix crash when switching to UV workspace.Jeroen Bakker
Can also happen in other places when the overlay engine is active. Some parts of the overlay engine uses builtin shaders, but disable the color space conversion to the target texture. Currently there the overlay engine has its own set of libraries it could include and defined a macro to pass-throught the color space conversion. The library include mechanism currently fails when it couldn't find the builtin library in the libraries of the overlay engine. This only happened in debug mode. This change will not fail, but warns the developer if a library could not be included. In the future this should be replaced by a different mechanism that can disable the builtin library. See {T95382}.
2022-02-01Fix T95185: Invalid normals after undo in sculpt modeCampbell Barton
Since d9c6ceb3b88b6db87490b08e0089f9a18e6c52d6 partial updates to normals in sculpt-mode were accumulating into the current normal instead of a zeroed value. Zero vertex normal values tagged for calculation before accumulation. Reviewed By: HooglyBoogly Ref D13975
2022-02-01Cleanup: remove duplicate vertex normal array in SculptSessionCampbell Barton
From investigating T95185, it's important the normal returned by SCULPT_vertex_normal_get always match the PBVH normal array. Since this is always initialized in the PBVH, there is no advantage in storing the normal array in two places, it only adds the possibility that changes in the future causing different meshes normals to be used. Split out from D13975.
2022-02-01Fix building with audaspace disabledCampbell Barton
2022-02-01Fix T93856: VP9 lossless render missing alphaRichard Antalik
Since 0ea0ccc4ffd5, `AV_PIX_FMT_YUV444P` pixel format was used for lossless renders, which did override `AV_PIX_FMT_YUVA420P` format when "RGBA" output is chosen. VP9 encoder doesn't seem to support `AV_PIX_FMT_YUVA444P` pixel format, so use `AV_PIX_FMT_YUVA420P` for lossless RGBA ouput instead. Reviewed By: sergey Differential Revision: https://developer.blender.org/D13947
2022-02-01Fix T94287: gaps between strips when adding moviesRichard Antalik
Currently, audio and video strips are synchronized based on data from media stream, which is nice, but this causes gaps between strips. This synchronization was implemented by moving movie strip position relative to sound, which doesn't make much sense for user which is mostly interested in editing video. Code was bit hard to read, so it has been simplified. Ideally video stream time would be easily accessible so synchronization could be done at any time, but this is not necessary at this point. Reviewed By: zeddb Differential Revision: https://developer.blender.org/D13948
2022-01-31Fix crash with non-closed meshes in recent bugfix for texture marginBrecht Van Lommel
Ref T95249, D13935
2022-01-31Fix Cycles assert in light samplingBrecht Van Lommel
There is no object transform on lights.
2022-01-31Fix: Unutilized curve mapping in vector shader nodeAaron Carlisle
This could result in a shading errors is some cases such as undo. Follow up to rB1405787142d1f87f18631114167675ed145f6d75
2022-01-31UI Papercut: Fix gap in node outlineLeon Schittek
Correct corner radius of the node outline to prevent a noticeable gap in some cases. --- Currently we make a small mistake in the creation of the node outline: We offset the rectangle describing the outline by the outline thickness, but we don't adjust the corner radius accordingly. Therefore the rounded corner of the outline and the node body are not concentric which can sometimes lead to a visible gap at the corner. How noticeable it is depends on the theme, the screen's dpi and the line thickness set in the preferences. Simply adjusting the corner radius for the outline to also be increased by the outline thickness fixes this small issue. | display, line thickness | **patch** | **master** | | --- | --- | --- | | 1080p, default/thin | {F12835304} | {F12835305} | | retina, thin | {F12835306} | {F12835307} | The issue was mentioned by @hitrpr Reviewed By: Blendify Differential Revision: https://developer.blender.org/D13955
2022-01-31Fix T95250: bake margin adjacent faces uses stale UV map in edit modeMartijn Versteegh
Use the evaluated mesh to generate the Adjacent Faces margin. Baking used the evaluated mesh, but generating the margin used the base mesh. This would lead to generating the margin from a stale UV map when the UV editor was open and the UV map was changed. Fix it by passing the same mesh as used for baking through to the margin generation. Differential Revision: https://developer.blender.org/D13938
2022-01-31Fix T95249: bake margin adjacent faces fails in some directionsMartijn Versteegh
The new adjacent faces method border lookup fails in some directions around 45 degrees * Use 8 Dijkstra directions (also diagonally) to determine which polygon is the closest to each pixel. Using only Manhattan distance lead to large parts of the texture which were matched with the wrong polygon. * Use neighbroing polygons for edge search. The Adjacent Faces algorithm needs to determine the closest edge, in UV space, each pixel. To speed this up first as map is built which finds the closest polygon for each pixel along horizontal, vertical and diagonal steps. Because this can sometimes be one edge off we first look in the polygon from the map, if that fails also check the edges of its neighbouring UV polygons. Differential Revision: https://developer.blender.org/D13935
2022-01-31Cleanup: remove wrong assertMartijn Versteegh
Was accidentally left in after refactoring. Fixes T95347 Differential Revision: https://developer.blender.org/D13963
2022-01-31Fix T95205: remove attribute only onceJacques Lucke
The bug was caused by a typo.
2022-01-31Fix T95341: BGL renders incorrect colorJeroen Bakker
Missing include statements of the gpu_shader_colorspace_lib.glsl in various shaders ignored the target texture color space.
2022-01-31Cleanup: Change NULL to nullptr.Jeroen Bakker
2022-01-31Fix (studio-reported) missing RNA path for EEVEE render passes.Bastien Montagne
For those EEVEE passes a bit of trickery with pointer offsets allows to get the owning viewlayer, so path generation is not too bad. Also moved ViewLayer path generation itself into a public utils, to avoid duplicating code. NOTE: Doing the same for AOV would be needed, but since pointer offsets won't help us here to find the owning viewlayer, not sure how to do it nicely yet (only solution I think is to loop over all AOVs of all ViewLayer of the scene to find it :( ). Reported by Beau Gerbrands (@Beaug), thanks.
2022-01-31Python: default to version to 3.10 for LinuxCampbell Barton
This doesn't bump the minimum version, see D13943.
2022-01-31Fix T95332: Crash loading older files.Jeroen Bakker
Image buffer was visible but buffer wasn't available. In the case the color only overlay of the render result was displayed the image buffer was not check to be valid. This patch adds a null pointer check to check in `IMB_alpha_affects_rgb` to solve this crash.
2022-01-31Image editor: Fix drawing artifacts with render results.Jeroen Bakker
Use the input depth texture to determine if the color of the texture should be shown.
2022-01-31Fix T95299: Empty render results show transparency checkerboard.Jeroen Bakker
When an image buffer cannot be read the checkerboard should not be drawn.
2022-01-31Image Editor: Fix background drawing of empty tiles.Jeroen Bakker
Empty (UDIM) tiles where drawn with a transparency checkerboard. They should be rendered with a border background. The cause is that the image engine would select a single area that contained all tiles and draw them as being part of an image. The fix is to separate the color and depth part of the image engine shader and only draw the depths of tiles that are enabled.
2022-01-30Fix T95328, new obj exporter not exporting custom normals.Aras Pranckevicius
Previously, the new obj exporter was only exporting per-vertex normals for faces marked as "smooth". But a face can have custom normals, as soon as the normals data layer exists. This change makes it follow the behavior of USD & Collada exporters and the old Python one, which also export per-vertex normals as soon as the layer is there. (From Patch D13957.)
2022-01-30Fix T95315: "Override Layers" panel open crash with null CacheFileKévin Dietrich
2022-01-29Fix: Eevee: Float Curve node causes issues with compiled shaderAaron Carlisle
This fixes a regression from rBa0edee712a79239133ff840f911f6416d4c41855. Issue being the curve map not being initialized in the GPU shader function. Fixes T95221
2022-01-29Fix memory leak when adding movie stripsRichard Antalik
Introduced by b45e71e22cc7.
2022-01-29Fix T94476: Threading/performance issue with curve to points nodeHans Goudey
For every spline, *all* of the normals and tangents in the output were normalized. The node is multithreaded, so sometimes a thread overwrote the normalized result from another thread. Fixing this problem also made the node orders of magnitude faster when there are many splines.