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-05-05Fix T86823 Eevee: refraction depth shared between different materialsClément Foucault
This was caused by the material grouping system which was missing a per material uniform update in the opaque case.
2021-05-05Fix T86037 EEVEE: SSR option changes render passes resultClément Foucault
This was caused by the SSR option resetting the accumulation. But the render passes were only cleared in the init phase. This means that when SSR was resetting the taa_render_sample the actual renderpasses would still contains 1 sample. This means the renderpasses were always divided by the wrong number of samples. The fix is to clear just before accumulation if the sample is 1. The fact that it works for motion blur is kind of a blessing. This is because we check stl->effects->ssr_was_valid_double_buffer before resetting the sampling. So this only happens on the first motion step and does not affect the rest of the rendering. Reviewed by: jbakker Differential Revision: https://developer.blender.org/D11033
2021-05-05LibOverride: More fixes to properly ignore non-overridable ID pointers.Bastien Montagne
2021-05-05LibOverride: Tag base's object pointer as not overridable.Bastien Montagne
2021-05-05LibQuery: Cleanup: Document more fields of `LibraryForeachIDData` struct.Bastien Montagne
2021-05-05LibOverride: Fix usage of IDProps that are not overridable.Bastien Montagne
Not all python-defined ID properties are overridable (yet), this needs to be detected by libquery 'foreach id' code, such that those ID pointers can be ignored by override code when working on override hierarchies. Fixes part of the issues found while investigating studio files (namely, some py-defined ID pointer properties from rigify that are not currently overridable would cause issues and false detections during resync).
2021-05-05LibOverride/LibQuery: Refactor 'non-overridable' status management.Bastien Montagne
Move the detection/decision of whether an ID pointer should be taken into account in library override hierarchy processing to the LibQuery area of code, by introducing a new callback flag. This allows to factorize the test logic, be explicit in liboverride code about ID relationships that can be ignored when exploring the override hierarchy, and adds the possibility to do more checks about pointers to be tagged as non-overridable in the future. Note that all but the 'special' ID pointers (loop-back, embedded, etc.) should be overridable. If some is not, relevant IDType 'foreach_id' callback code is reponsible to tag it properly. Python-defined IDProperties however are not systematicaly overridable (yet), so this should allow us to detect that case and act accordingly in an incomming commit. No behavioral change expected in this commit.
2021-05-05Cleanup: clang formatPhilipp Oeser
Missing from rB04905c56523a, sorry for the noise.
2021-05-05Fix PlayAnim error applying cache limiterCampbell Barton
Each frame display would add an item to the cache limiting list without checking if it was already in the list. Limiting would then free image buffers when the length of the list exceeded USE_FRAME_CACHE_LIMIT (currently 30). In practice this meant short animations would free and reload frames during playback.
2021-05-05PlayAnim: add in missing define checkCampbell Barton
2021-05-05VSE: Set view transform based on strip colorspaceRichard Antalik
In some cases, users start video editing work from General template, where Filmic view transform is chosen by default. Currently, this causes issue when working with sRGB footage, which are not properly decoded into linear working space and final render looks miscolored. When adding first strip, check it's colorspace and if it corresponds to colorspace for byte images, ensure that view transform is set to default value, which is Standard. Reviewed By: brecht Differential Revision: https://developer.blender.org/D11151
2021-05-04DRW: Fix issue with batch reusing freed VBO indices.Clément Foucault
Some discard of vertbuf were not correctly followed by discards of the GPUBatches that were using them. This lead to a use-after-free situation where GPUBatches would reuse old VBO information. This did not crash immediatly because the VBO indices were cached by our VAO caching system. It kept working on some implementation because VBO reference in the VAO (probably) preventing the VBO from being freed by reference counting. This fixes T85977 NVidia: Random crashes in 'DrvPresentBuffers'
2021-05-04Fix missing header & footer toggle chevrons in SpreadsheetJulian Eisel
The little chevron tab to open a hidden region wouldn't show up in the Spreadsheet editor. Cause was an incorrect GPU-scissor usage: While drawing regions, the scissors should be kept enabled, just the scissor rectangle should be updated - and afterwards reset to what it was before.
2021-05-04Fix missing background of buttons after reportsJulian Eisel
Reports would change the active emboss of the Block, to make some of its buttons appear without background. But it didn't reset it so that buttons added afterwards wouldn't use the correct embossing.
2021-05-04Fix T87489: Text Data-Blocks get deleted on Recursive PurgeSebastian Parborg
Text data block were not considered special in the recursive purge function. So they would get deleted if they had no actual users. To fix this we instead make text data block use "fake user" so that addon authors can specify script files that should be removed if nothing is using it anymore. Per default, new text object have "fake user" set. So functionality wise, the user has to explicitly specify that they want the text object to be purge-able. Reviewed By: Bastien Differential Revision: http://developer.blender.org/D10983
2021-05-04Fix (unreported): 'CoInitializeEx' being called without 'CoUninitialize'Germano Cavalcante
Problem introduced in {rB1f223b9a}. This was possibly causing random crashes in Blender file browser when compiled with ASAN. Microsoft documents indicate that any call to `CoInitializeEx` must be balanced by a corresponding call to `CoUninitialize`. https://docs.microsoft.com/en-us/windows/win32/api/combaseapi/nf-combaseapi-coinitializeex#remarks
2021-05-03Fix T87982: crash switching render slots while render is in progressBrecht Van Lommel
2021-05-03Fix T88005: GPencil inverse fill leaves unwanted line at viewport edge.Antonio Vazquez
There was a function to set 2 pixels wide for inverse filling, but this must not be done in the borders of the image. Now, the borders are checked before set 2 pixels.
2021-05-03Fix T87969: crash accesing FaceMaps / PaintMask data in editmodePhilipp Oeser
Workaround for crash when accessing FaceMaps / PaintMask data in editmode, just disallow access in editmode as is done with UVs. Same fix as in {rB3e2619b3e72a}. Maniphest Tasks: T87969 Differential Revision: https://developer.blender.org/D11146
2021-05-03Fix compilation error after recent compositor fixSergey Sharybin
Apparently, there is no emplace semantic available in the Vector in the stable branch.
2021-05-03Fix T87989: Crash using OpenCL in compositorSergey Sharybin
Initial report was mentioning the Classroom demo scene, but this is probably because the scene was pre-configured to be used with OpenCL. Would expect any OpenCL compositing to be failing prior to this fix. The reason why crash was happening is due to OpenCL queue being released from OpenCLDevice destructor. Is not that obvious, but when Vector (including std::vector) is holding elements by value a destructor will be called on "old" memory when vector capacitance changes. Solved by making forbidding copy semantic for compositor devices and forcing move semantic to be used. Also use emplace semantic in the devices vector initialization.
2021-05-03LibOverride: temporarily fix the material driver workaround with a hack.Alexander Gavrilov
Currently overriding properties within material node trees is not supported. However there is a workaround that allows feeding values through drivers via an intermediate custom property, as described in T82404. The workaround relies on the behavior of the ID copying code that always patches datablock self-references even without any overrides. Unfortunately, this broke during development of 2.93. This happened because a call RNA_struct_override_matches added in rB2281db72b0157 detects that no override exists, and 'restores' the self-reference to point to the original datablock. To avoid this, mark the Material.node_tree property with the PROPOVERRIDE_IGNORE flag to stop RNA_struct_override_matches from recursing into the currently unsupported node tree sub-block. This flag should be removed when this is properly supported. This was confirmed to fix the workaround and discussed with @mont29.
2021-05-02Fix T87554 Exact Boolean performance bug.Howard Trickey
There was a quadratic algorithm extracting triangles from a coplanar cluster. This is now linear. Also found and fixed a bug in the same area related to the triangulator added recently: it didn't get the right correspondence between new edges and original edges.
2021-05-02GPencil: Fix unreported problem when save file in Curve Edit modeAntonio Vazquez
This is related to T87905
2021-05-02Fix T82824: Draw sensor size with correct alphaRobert Guetzkow
Previously the option in the camera's //Object Data Properties > Viewport Display > Sensor// would not display the sensor in camera view. This seemed to be caused by the theme color `TH_VIEW_OVERLAY` having zero set for the alpha channel and alpha blending being active, resulting in no visible output. Hence `immUniformThemeColorShade(TH_VIEW_OVERLAY, 100);` is replaced with `immUniformThemeColorShadeAlpha(TH_VIEW_OVERLAY, 100, 255);`. Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D11075
2021-05-01Fix T87905: GPencil modifiers not applied if saved with multiframeAntonio Vazquez
When saving a file in Edit mode with Multiframe enabled, the render did not include the modifiers. Now the multiframe is not enabled if it's doing a render.
2021-05-01Fix T86450: Random dark UI elements when redrawingCampbell Barton
Resolves occasional glitch/flicker drawing dark buttons in the UI. Regression in 405a5d3bd7ada5dd5af605b59ba07c7144f144a2 which removed shader unbinding when the batch is drawn. GPU_shader_bind could run with the sRGB uniform in an unexpected state. Reviewed By: fclem Ref D11124
2021-04-30LibOverride: Make drivers' 'mute' flag overridable.Bastien Montagne
Request from Blender studio for cached pipeline.
2021-04-30LibOverride: Fix infinite resync loop in some invalid file cases.Bastien Montagne
Multi-overrides of a same linked ID in a same override hierarchy are currently not supported and can cause all kind of issues. In some cases they could lead to infinite loop trying to resync the same ID over and over, this is now prevented. Found in some Blender studio production files.
2021-04-30Revert "Fix crash running constraint, modifier, fx from missing NULL check"Campbell Barton
This reverts commit f4d5a69cf8512aafcc697d1b09f65489015b6af4. This causes bpy.ops.object.modifier_apply.poll() to fail as well as modifier binding operators (breaking tests).
2021-04-30Fix T85470: Simple deform modifier causes artifacts at low anglesHenrik Dick
The formula used to compute the bend did subtraction of two big numbers to get the position. Changed to find the delta and add that, by rearranging the formula into a more numerically stable form. Reviewed By: mano-wii, campbellbarton Ref D11074
2021-04-30Fix/Workaround T87511: snap gizmo flickers on Ctrl-DragCampbell Barton
Hack to bypass drag events, eventually the gizmo API should support this use case without hacks.
2021-04-30Fix crash running constraint, modifier, fx from missing NULL checkCampbell Barton
None of these generic poll functions had NULL pointer checks, since all operators that use these functions expect a valid constraint, modifier .. etc. Add the NULL check to the poll function. Ref D11126 Reviewed By: mont29, Severin
2021-04-30Fix potential buffer overrun in drw_shader_dependencies_getCampbell Barton
Logical error let this function to write one past the buffer bounds.
2021-04-30Fix missing NULL check in grease-pencil clear strokesCampbell Barton
2021-04-30Fix sculpt mask operator crash running without a 3D viewCampbell Barton
Add missing operator poll, depend on the 3D view for all sculpt paint/mask operators.
2021-04-30Fix crash running window operators in background modeCampbell Barton
2021-04-30Fix uninitialized memory use in GLDrawListCampbell Barton
GLDrawList::init() used MDI_INDEXED which checks base_index_.
2021-04-30Fix uninitialized local-view flag on object creationCampbell Barton
Local view return argument to ED_object_add_generic_get_opts was left uninitialized.
2021-04-30Cleanup: quiet shadow variable warningCampbell Barton
2021-04-29Fix: crash when creating GPU texture from image failsBrecht Van Lommel
2021-04-29Fix T86335: Knife tool fails on object with zero scaled axisCampbell Barton
Use invert_m4_m4_safe_ortho for the knife tool to support operating on objects with a single zero scaled axis.
2021-04-29Fix T86799: Boolean crashes duplicating object with "Fast" solverCampbell Barton
BMesh intersect could leave invalid items in the selection list, causing a crash. The list is now cleared since boolean is such a destructive operation, it's unlikely the selection order would be useful. Thanks to @lukastoenne for finding the root cause.
2021-04-29Fix T87779: Asymmetric position vertices in circles primitives.Campbell Barton
Incrementing a floating point value in a loop resulted in the vertex locations for circles in primitives being slightly asymmetric.
2021-04-29Fix macOS arm crash in scaling images with ffmpegBrecht Van Lommel
Ref T78710
2021-04-29Fix T87808: Connected proportional editing includes hidden geometryCampbell Barton
Regression in 21b9231d7f5a248027c32dcc7daab3318390c20f
2021-04-29Fix build error: use of unintialized variableWannes Malfait
Differential Revision: https://developer.blender.org/D11115
2021-04-29Fix T87592: Mirror fail with bisect, axis object & non-uniform scaleCampbell Barton
Bisect-plane calculation needed to take non-uniform scale into account.
2021-04-29Fix T87823: Select similar doesn't work with small facesCampbell Barton
FLT_EPSILON was added to the threshold when comparing values, this caused problems selecting similar small faces since the areas can be very small in this case. Also increase the displayed precision so it's easier to use smaller numbers.
2021-04-29UI: increase precision of bisect thresholdCampbell Barton
The default value of `0.0001` was displaying as `0.000`, increase the display precision to 5 since this value often needs to be small.