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-11-12Tests: disable audio system for performance testsBrecht Van Lommel
2021-11-12Fix T91893, T92455: wrong transmission pass with hair and multiscatter glassBrecht Van Lommel
We need to increase GPU memory usage a bit. Unfortunately we can't get away with writing either reflection or transmission passes because these BSDFs may scatter in either direction but still must be in a fixed reflection or transmission category to match up with the color passes.
2021-11-12Fix T92002: no Cycles combined baking support for filter settingsBrecht Van Lommel
2021-11-12Fix T93029: OptiX denoising artifacts at high sample counts in specific scenesPatrick Mours
Partially reverts commit rB440a3475b8f5410e5c41bfbed5ce82771b41356f because "optixDenoiserComputeIntensity" does not currently support input images that are not packed (the "pixelStrideInBytes" field is not zero). As a result the intensity calculation would take into account data from other passes in the image, some of which was scaled by the number of samples still and therefore produce widely incorrect results that then caused artifacts in the denoised image. Maniphest Tasks: T93029
2021-11-12UI: (Performance) Avoid drawing buttons out of viewJulian Eisel
The UI was always drawing all buttons in a layout, no matter if they were scrolled out of view (as in, outside of the visible part of the region) or not. This means it's doing quite some work that can be avoided. UI drawing generally isn't a big bottleneck in Blender, so I don't expect huge speedups from this. But while playing back animation, we do redraw a fair bit of the UI, so in cases where there are many buttons out of view, it may bring a little FPS boost. E.g. say in complex node trees (the node editor is redrawn on animation playback in case there are animated values that need updated UI feedback). This also mitigates the issue in T92922 significantly. Differential Revision: https://developer.blender.org/T92922 Reviewed by: Brecht Van Lommel
2021-11-12UI: Do not shade alpha when blending colorsYevgeny Makarov
UI_GetThemeColorBlendShade4fv incorrectly changing alpha by the amount of the shading offset. See D9944 for more details. Differential Revision: https://developer.blender.org/D9944 Reviewed by Hans Goudey
2021-11-12Fix T93007: Cycles not updating for animated Object properties like colorBrecht Van Lommel
2021-11-12Fix Cycles ray visibility panel missing for volume objectsBrecht Van Lommel
2021-11-12Assets: Store Action sub-type in asset metadataSybren A. Stüvel
Blender 3.0 will only support single-frame Actions in the pose library. The goal of this patch is to lay the groundwork for making it possible for the Asset Browser to reject/hide "animation snippet" Action assets. Determining whether an Action has one or more frames (i.e. whether it has a single pose or animation) requires inspecting the Action itself, and thus loading the data-block itself. This would make it impossible to quickly determine from the asset browser. To solve this, the Action is inspected before saving, and a `"is_single_frame"` boolean (well, 0/1 integer) IDProperty is added. Reviewed by: Severin Differential Revision: https://developer.blender.org/D13202
2021-11-12Gizmo: adjust when gizmo protection flags are displayedCampbell Barton
Restore behavior reverted in 0ea60cf6b813f8b792a253e10a6c2edaf7fb689f but only for location as it makes sense to use protection flags in global mode in that case.
2021-11-12Fix gizmo protection flag use in object modeCampbell Barton
Channel protection flags were only used in global mode, this doesn't make any sense, especially for rotation and scale. Follow pose-bones, only using protection flags for local & gimbal orientation.
2021-11-12Fix T93008: Cycles: Huge memory spike when saving tile to diskSergey Sharybin
The root of the problem lies in bug in OIIO which we can work around from our side (which does not affect pack memory usage). Thanks Brecht for finding the root cause! Differential Revision: https://developer.blender.org/D13186
2021-11-12Fix crash in asset browser when switching from file browserSybren A. Stüvel
When the file browser is in asset browser mode, it sets the callback `filelist->prepare_filter_fn` to an asset browser specific function. This function will segfault if there is no current asset library. Switching back from asset browser to file browser would not reset that callback to `NULL`, causing it to be called and crash Blender. This is now fixed.
2021-11-12Fix T92601: Disable profiling when the profiler is deemed not active.William Leeson
Adds a method to profiler that can be used to check if it is active. This is used to determine if stop_profiling and start_profiling should be called. | patch | Juans Scene UI 256 samples | Juans Scene bg 256 samples | junkshop UI | junkshop bg | | No patch | 6:16.59 | 4:05.37 | 2:08.48 | 1:59.7 | | D13187 | 4:12.15 | 3:57.36 | 2:07.25 | 1:58.16 | | D13185 | 4.11.18 |3:54.74 | 2:07.44 | 1:58.03 | | D13190 | 4:12.39 | 3:55.42 | 2:07.62 | 1:58.68 | UI - means rendered from within Blender bg - means rendered from the command line using ##blender -b scene.blend -f 1## Reviewed By: sergey, brecht Maniphest Tasks: T92601 Differential Revision: https://developer.blender.org/D13190
2021-11-12Cleanup: remove redundant loop-index accessCampbell Barton
Use a counter for loop indices as they're being iterated in order.
2021-11-12Fix T91444: Edge Loop Preview fails with two Mirror ModifiersCampbell Barton
The mirror modifiers merge option caused unnecessary re-ordering to the vertex array with original vertices merging into their copies. While this wasn't an error, it meant creating a 1:1 mapping from input vertices to their final output wasn't reliable (when looping over vertices first to last) as is done in BKE_editmesh_vert_coords_when_deformed. As merging in either direction is supported, keep the source meshes vertices in-order since it allows the vertex coordinates to be extracted.
2021-11-12Fix crash saving blend files in background modeCampbell Barton
Reading the windows pixels was attempted in background mode.
2021-11-12Cleanup: use term sequence_strip instead of vse_stripCampbell Barton
2021-11-11Fix: Attribute Transfer node does not work with a single indexJacques Lucke
Differential Revision: https://developer.blender.org/D13194
2021-11-11Fix: Incorrect modifier warning with non-geometry input firstHans Goudey
The code assumed that any geometry input that wasn't the first input was a second geometry input. Fix by separating the warning for the first input and for the number of geometry inputs.
2021-11-11Fix: wrong field inferencing with unavailable socketsJacques Lucke
2021-11-11Fix T93005: Cycles shadow catcher not inherited by instancesBrecht Van Lommel
2021-11-11UI: Updated Blender Light theme for SpreadsheetPeter Sergay
This patch adds list colors to the light theme for the spreadsheet, which are needed for the data set region. Addresses T92492. Differential Revision: https://developer.blender.org/D13090
2021-11-11Fix: Prevent use of uninitialized memory when creating Bezier splineMartijn Versteegh
When Constructing bezier splines from dna, the positions of the left/right handles were set directly in the internal vectors, by requesting a reference to them. The problem is that BezierSpline::handle_positions_left() calls ensure_auto_handles() before returning the reference. That function does some calculations on uninitialized memory if the positions array is not yet filled. Differential Revision: https://developer.blender.org/D13107
2021-11-11Fix T92868: Cycles catcher with transparency crashesSergey Sharybin
The issue was caused by splitting happening twice. Fixed by checking for split flag which is assigned to the both states during split. The tricky part was to write catcher data at the moment of split: the transparency and shadow catcher sample count is to be accumulated at that point. Now it is happening in the `intersect_closest` kernel. The downside is that render buffer is to be passed to the kernel, but the benefit is that extra split bounce check is not needed now. Had to move the passes write to shadow catcher header, since include of `film/passes.h` causes all the fun of requirement to have BSDF data structures available. Differential Revision: https://developer.blender.org/D13177
2021-11-11Fix (unreported) bad handling of reports in `libraries.load` code.Bastien Montagne
rB60fee69682ac39 only partially fixed the issue, `BlendFileReadReport bf_reports` was now properly stored in `BPy_Library` `self` for the lifetime of the context, but its `reports` member was still referencing local variable to `bpy_lib_enter` function.
2021-11-11Fix T92867: Gimbal rotation broken when used for multiple objectsCampbell Barton
Support gimbal orientation for objects & bones.
2021-11-11Cleanup: split gimbal_axis into pose and objectCampbell Barton
Allow access to a single bones gimbal matrix.
2021-11-11Cleanup: spelling in commentsCampbell Barton
2021-11-11Cleanup: typo in function nameCampbell Barton
2021-11-11Fix T92954: Loop Cut Tool preview line visible during operationCampbell Barton
Apply a local-workaround instead of adding support for this use-case since pre-selection isn't the intended purpose of gizmos. This also resolves a glitch where poly-build and loop cut would briefly show loop-cut or poly-build pre-selection after transforming. See gizmo_preselect_poll_for_draw note for more details.
2021-11-11Fix T89313: Attribute search crash with animation playbackHans Goudey
rBc473b2ce8bdbf8fa42 improved the situation somewhat, but attribute search still crashes during animation playback, because the UI search data references stale memory. The proper solution is to allow the search to own data rather than just referencing it, but I would prefer not to do that for 3.0. In the meantime, just disable attribute search when animation is playing. Differential Revision: https://developer.blender.org/D13179
2021-11-11Fix wrong device check in HIP kernel compile.Thomas Dinges
Also cleanup some related code, that was falsely copied from CUDA. Differential Revision: https://developer.blender.org/D13180
2021-11-10Cycles: enable HIP device and binaries on WindowsBrecht Van Lommel
We've now done testing to confirm this works with RDNA and RDNA2 AMD GPUs on Windows. The AMD driver needed for this will soon be released publicly.
2021-11-10Cycles: disable graphics interop for HIP devicesThomas Dinges
This is due to a driver bug, so disable it for now until it gets resolved in a future driver release. Ref T92972 Differential Revision: https://developer.blender.org/D13167
2021-11-10Fix T92972: Cycles HIP wrong render display after a recent refactorBrecht Van Lommel
It's unclear why this fails. Maybe the size of half4 is not the expected 8 bytes and adjacent pixels are overwritten. Or there is some bug in the HIP compiler writing a struct into global memory, which we probably don't do elsewhere in the kernel. Thanks to Thomas, William and Jeroen for helping investigate this.
2021-11-10Fix Cycles assert in denoising fallback to OIDNBrecht Van Lommel
2021-11-10Cleanup: Use bool instead of intHans Goudey
2021-11-10Geometry Nodes: Clarify modifier node group errorsHans Goudey
This commit adds modifier error messages to some of the cases where the node group is configured improperly. It also clears the geometry set when there is an error with the node group. This is consistent to what we do in nodes themselves, and feels more intuitive than passing the input geometry through the node group silently. Fixes T87142
2021-11-10Fix: Incorrect translation search for modifier error messagesHans Goudey
This function was renamed in rB2bb9a465e6c0e1ca765, but it looks like that commit missed changing the corresponding translation regular expression. Differential Revision: https://developer.blender.org/D13171
2021-11-10Fix T91518: crash when recalculating looptris after clearing geometry.Jeroen Bakker
When clearing geometry the runtime mutexes of a mesh were freed. This resulted in crashes afterwards. The clear geometry is an RNA function so would only effect when using from scripts. This patch separates init/freeing of the mutexes from other code so they can be used when needed. Reviewed By: mont29 Maniphest Tasks: T91518 Differential Revision: https://developer.blender.org/D13142
2021-11-10Fix T92864: curve object does not sync correctly in cyclesJacques Lucke
The issue was that the `object_is_geometry` method was used in two different contexts that expected the function to behave differently. So a recent change that fixed `object_is_geometry` for one context, broke it for the other context. The two contexts are: * Check if a "real" object can contain a geometry to check if it has to be tagged for sync after an update. * Check if an object/instance actually is a geometry that cycles can work with. I created a new `object_can_have_geometry` method for the first use case, instead of trying to adapt the existing object_is_geometry method to serve both uses. Additionally, I changed it so that a BObjectInfo is passed into `object_is_geometry` to make it more explicit when this method is supposed to be used. Differential Revision: https://developer.blender.org/D13135
2021-11-10Fix T92979: Emission Strength Animation read wrong in 3.0Philipp Oeser
First this was wrong for files written in 2.93 read into blender in 3.0 after the CyclesX merge. Then this was fixed by versioning in rB6321dd3d4007. But this caused files written in 3.0 to have this versioning applied as well (leading to socket shifting). Now only do the versioning for files created before the CyclesX merge. Maniphest Tasks: T92979 Differential Revision: https://developer.blender.org/D13173
2021-11-10Fix T92874: Custom normals reset when vertex is deletedCampbell Barton
Storing and restoring custom normals was broken by 39b2a7bb7e815e051348bf5c5ec777d091324164 This also caused "Sharp Edge" option for Weld by Distance to fail, reported as T92875.
2021-11-09Fix: Incorrect assert in dot grid drawingHans Goudey
It's totally valid for the grid levels to be zero.
2021-11-09Fix: Crash with no active object after recent commitHans Goudey
rBaa13c4b386b13111 added a check for the active object in drawing code, but it missed adding a check for the active base before trying to retrieve its object.
2021-11-09tests/benchmarks: Fix operation on windowsRay Molenkamp
The test script did not work on windows since it had some trouble importing the api module on the blender side of things. turning the file path to the module into a raw string literal sidesteps the backslash issue in the path. Differential Revision: https://developer.blender.org/D13163 Reviewed by: brecht
2021-11-09Fix T92908: print warning when instance recursion limit is reachedJacques Lucke
Currently we have a fixed instance recursion limit. While we want to lift this limitation at some point, that is out of scope for a bug fix. For now just print a warning to make it easier to detect the issue. Differential Revision: https://developer.blender.org/D13162
2021-11-09UI: use plural form of "Gizmo" in Gizmo display menusAaron Carlisle
Because the menus list several gizmo visibility settings it makes grammatical sense that the panel name is plural. This also matches the "Overlays" menu.
2021-11-09Cycles: mark both RDNA and RDNA2 as support for HIPBrecht Van Lommel