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
2020-12-24Cleanup: compiler warningBrecht Van Lommel
2020-12-24Cycles: remove surface area computation for meshes with OSLBrecht Van Lommel
This is relatively expensive and as per the OSL spec, this value is not expected to be meaningful for non-light shaders. This makes viewport updates a little faster. As a side effect also fixes T82723, viewport refresh issue with volume density.
2020-12-24Fix T84016: Cycles baking crash with OptiX after recent changesBrecht Van Lommel
This worked for CPU + GPU, but not GPU only.
2020-12-24Bake: vertex color baking support for CyclesBrecht Van Lommel
In the Bake > Output panel, there is now a choice between Image Textures and Vertex Colors. The active vertex color layer is used for baking. This works with both existing per-corner and sculpt per-vertex vertex colors.
2020-12-24Cleanup: refactoring of bake code in preparation of vertex color bakingBrecht Van Lommel
Split of internal/external image bake target code off into smaller functions and refactor associated data structures for clarity. Designed so that a vertex color bake target is easy to fit in. Also avoid passing in a huge number of arguments into the main baking function, pass a struct instead.
2020-12-24Audaspace: port accuracy improvement from upstream.Jörg Müller
2020-12-24Fix T83997: Duplicated audio does not sound the sameJörg Müller
The issue was that sounds were always faded from 0 volume when they started and depending on the currently used buffer size, the fading took longer or shorter. The solution stores whether the sound has ever been played back and consequently does not fade when starting to play back.
2020-12-23Cleanup: Clang formatHans Goudey
2020-12-23Geometry Nodes: new Rotate Points nodeJacques Lucke
This node updates the "rotation" attribute on points. Multiple ways to specify the rotation are supported. Differential Revision: https://developer.blender.org/D9883 Ref T83668.
2020-12-23Workaround T84084: Assert/crash when undoing from Sculpt mode to Object one.Bastien Montagne
Disclaimer: This workaround avoids crashing with current state of the code and is only committed as temporary band-aid until we can assess the full issue and decide if/how it needs to be adressed.
2020-12-23Fix T84002: Sculpt: Masking operations crash if multires is in play.Bastien Montagne
This fixes the main issue there (essentially a followup to rB90e12e823ff0: Fix T81854: crash when undoing switch between sculpt and edit mode). We basically remove more (hopefully all the remaining!) modifications of orig mesh from `sculpt_update_object`, as those done here will not be immediately available in the evaluated data (that specific bug happened because masking data was added to orig mesh there, but not flushed to depsgraph evaluated one). This also goes towards a better separation between handling of evaluated data and orig one. Note that modification of orig mesh data can still happen, e.g. values in some cdlayers, but at least all pointers should now be valid in the evaluated mesh. There are still some issues, e.g. we now get an assert/crash in `multires_reshape_assign_final_coords_from_ccg` when undoing out of the Sculpt mode, presumably because subdiv_ccg data remains unchanged then (and hence still has the `has_mask` flag set), while actual mesh data do not have that cdlayer anymore... This commit also cleans up/simplifies some code, `ED_object_sculptmode_enter_ex` was (indirectly) calling `BKE_sculpt_face_sets_ensure_from_base_mesh_visibility` twice e.g.
2020-12-23Fix T84063: crash reading pointer properties in Attribute shader nodeBrecht Van Lommel
Path resolving can find e.g. a datablock rather than a float or integer, treat that as a failure to find a valid property.
2020-12-23Fluid: Added new viscosity solverSebastián Barschkis
Mainly updated the Mantaflow version. It includes the new viscosity solver plugin based on the method from 'Accurate Viscous Free Surfaces for Buckling, Coiling, and Rotating Liquids' (Batty & Bridson). In the UI, this update adds a new 'Viscosity' section to the fluid modifier UI (liquid domains only). For now, there is a single 'strength' value to control the viscosity of liquids.
2020-12-23Fix crash closing File Browser window after closing temporary render windowJulian Eisel
This seems to be a longer standing issue. Steps to reproduce were: * With factory settings, Ctrl+O then F12 * Close the render window using the window close button * Close the File Browser window using the window close button This could be OS specific though, at least on macOS this caused a crash.
2020-12-23Fix incorrect debugging text in extra operator icons for buttonsJulian Eisel
2020-12-23Cleanup: Move functions to new ED (editor) operators file & general cleanupJulian Eisel
With the new `ed_util_ops.c` introduced in 2250b5cefee7, existing code can be cleaned up to use it. * Move new ID preview operators to `ed_util_ops.c` * Move ED operator registration to `ed_util_ops.c` * Use doxygen sections in `ed_util_ops.c` * Rename ID related ED operators to use `ED_OT_lib_id_` prefix. * Remove unused `#include`s
2020-12-23Fix T84013: Crash closing maximized File Browser opened from PreferencesJulian Eisel
After 1e799dd26ec1, the logic to recognize a temporary File Browser window didn't work correctly anymore. It would recognize a maximized File Browser inside a temporary window as a temporary File Browser window, and attempt to close this (rather than returning to the previous layout). The logic there was pretty weak, and still is I think. A more stable solution would need bigger refactoring. With this, it's also not possible to maximize or fullscreen an area within a temporary window (Preferences, File Browser, render window) anymore. Think that won't make a noticable difference, since you couldn't open multiple areas there anyway, and the area seems to be maximized already. Cleaned up the code a bit to not become more confusing with the changes.
2020-12-23Sculpt Undo: Fix broken memory size and potential use of uninitialized ↵Bastien Montagne
variables. That code looked really like a joke tbh... Random reported memory usage is not really that important, but the uninitialized items counts was potentially fairly severe.
2020-12-23Cleanup: Reduce Variable scope clip_buttonsAaron Carlisle
2020-12-22Cleanup: Use true and false for booleansHans Goudey
2020-12-22WM: minor optimization for when there is a large number of notifiersBrecht Van Lommel
Don't add the same stats refresh notifiers multiple times, it can be slow to search the full list of notifiers for duplicates when there are many. Fundamentally the time complexity in searching for duplicates is still bad. Inspired by D9901 from Erik Abrahamsson
2020-12-22UI: keep image open button always visible in image editor datablock selectorBrecht Van Lommel
Does not need to be hidden in the menu.
2020-12-22Cleanup: Reduce variable scope in object.cHans Goudey
2020-12-22Fix Cycles OptiX runtime compilation broken after shader raytracingBrecht Van Lommel
Need to pass the appropriate flags as we do for compilation as part of the CMake build.
2020-12-22Fix T84006: Cycles AOV not written with some mix shader node set upsBrecht Van Lommel
2020-12-22RNA: make `bpy.data.orphans_purge()` return number of deleted datablocksSybren A. Stüvel
Sometimes multiple calls to `bpy.data.orphans_purge()` are needed to delete all orphans, because a call can turn previously-used datablocks into orphans. Returning the number of deleted datablocks makes it possible to keep looping until nothing can be deleted any more. This patch keeps track of deletions in `id_delete()` so that it can be returned up the call stack. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D9918
2020-12-22VSE: handle IO errors when reading disk cache header and versionSybren A. Stüvel
Respond to return values of `fscanf()` and `fread()` to detect and handle I/O errors. Not only is error handling a good idea, this also prevents warnings from GCC that `fread()` and `fscanf()` return values are ignored. Reviewed By: ISS Differential Revision: https://developer.blender.org/D9915
2020-12-22Animation: Bake Action, improved discontinuity filter for bonesSybren A. Stüvel
Perform the same filtering as e5528904f12104ee31e7b67b54f2a4b3f14cec1e introduced for object rotations, for bone rotations.
2020-12-22VSE: Fix animation versioning for bezier F-curvesRichard Antalik
`seq_convert_transform_animation()` converted only keyframed value, but when bezier interpolation is used, posotion of handles was unchanged. This caused significant difference in animation. I have checked only linear interpolation when testing versioning originally.
2020-12-22UI: Properties editor popover and outliner syncNathan Craddock
This adds a popover to the properties editor. Currently the only setting is for controlling outliner to properties syncing. Because we cannot define a perfect heuristic to determine when properties editors should change tabs based on outliner icon selection, we need an option to enable or disable this behavior per properties editor. There are 3 options for controlling the syncing. Auto uses the heuristic to only allow tab switching when a properties editor and outliner share a border. On and off enable and disable syncing respectively. Differential Revision: https://developer.blender.org/D9758
2020-12-21Nla Refactor: Better blend function parm namingWayde Moss
**Renames parms**: | **old name** | **new name** | old_value | lower_value | target_value | blended_value | value | strip_value | inf | influence **Reason**: {D8296} allows full nla stack evaluation with proper keyframing support. These names should make it more intuitive how all the data gets processed and inverted. Note, that I do use the term "strip_value" instead of something like "fcurve_value" of the tweak strip. Technically, "strip_value" is closer to what is solved for. For example, if a noise fmodifier was active for the fcurve, then the remapping would appear to be wrong. In the future, further solving can be done afterward, outside of the nla system, to remove the effects of fmodifiers. **Renames functions**: | nla_invert_blend_value | nla_blend_get_inverted_strip_value | nla_invert_combine_value | nla_combine_get_inverted_strip_value **Reason**: D8296 adds get_inverted_lower_value() variants, so "invert" alone is too vague. **Renames NlaKeyframingContext member**: | nla_channels | lower_eval_data **Reason**: D8296 evaluates the upper stack. This name makes it more obvious what data is stored there. No functional changes (relative to the dependency below) Split from {D9247} Depends on {D9694} since the code was so close to eachother. Reviewed By: sybren Differential Revision: https://developer.blender.org/D9695
2020-12-21Fix/workaround geometry nodes not working with deformation motion blurBrecht Van Lommel
Always assume geometry nodes produce potentially animated meshes or point clouds. In general it is hard to check if geometry nodes are animated, and for modifiers this was already weak. The better solution will likely involving checking which geometry was modified by the depsgraph on frame change, to replace the current mechanism of manually checking for certain types of modifiers and animation.
2020-12-21Weight Paint: fix Multi-Paint weight display after rB5502517c3.Alexander Gavrilov
Weight Paint Multi-Paint definitely depends on the weight specific flag, and vertex group locking also involves group name symmetry via BKE_object_defgroup_mirror_selection. These two are also features implemented by me so I feel confident. The rest of object_vgroup.c possibly should be changed too, but that requires more consideration than these obvious cases.
2020-12-21Cleanup: Reduce indentationHans Goudey
2020-12-21UI: make light spot shape panel consistent between Cycles and EeveeMatteo Falduto
Differential Revision: https://developer.blender.org/D9906
2020-12-21UI: Use better icon for identifying assetsJulian Eisel
Use the `ASSET_MANAGER` icon which is more appropriate than the current one which was just an unused icon that seemed sorta fitting, but was only meant to be temporary. The `ASSET_MANAGER` icon is already used for the Asset Browser, so it's being reused which we normally avoid. So we may still want to create a dedicated one, maybe a variation of this one.
2020-12-21Fix part of T84004: Some 2.92 alpha UI strings can't be translated.Bastien Montagne
Adding 'new' (?) `heading` parameter of some UILayout functions...
2020-12-21Fix T84010: Missing scale animation versioning codeRichard Antalik
Code was removed in 247b10e6a25b but it was incorrect in first place. Conversion was done for `offset_x` and `offset_y` channel originally, but it should be done for `scale_x` and `scale_y`
2020-12-21Fix part of T84004: Some 2.92 alpha UI strings can't be translated.Bastien Montagne
Not sure why, but py files from `bl_operators` were never considered for i18n string extraction... They do define some UI strings though.
2020-12-21Some more UI messages fixes...Bastien Montagne
2020-12-21Fix some UI messages and update i18n spellcheck utils.Bastien Montagne
2020-12-21install-deps: Install OIIO utils, re-enable package on RPMs.Bastien Montagne
OIIO utils are mandatory for a whole set of tests (Cycles, VSE), and it's a small package, no reason to not install it. Also re-enabling package handling of OIIO on RPM-based distro, not sure why it was disabled but this has become a fairly stable and standard library now, would not expect issues anymore.
2020-12-21Unix/macOS: support building with CcacheMatt Hill
This adds an option (WITH_COMPILER_CCACHE) to build using Ccache if it's found. Makefiles-based, Ninja-based and Xcode generators are supported. Pass `-DWITH_COMPILER_CCACHE=ON` to cmake to enable Ccache. Utility option in GNUmakefile is also added: for e.g., `make ninja ccache`. Reviewed By: brecht, ankitm Differential Revision: https://developer.blender.org/D9665
2020-12-21Fix T83989: Attribute Math node ignores its operation settingGarry R. Osgood
T83989 observes that the Attribute Math node always adds its operands regardless of its operator setting. This was caused by an oversight committed in rB23233fcf056e42, which overlooked adjusting the exec function to use the new storage location. Differential Revision: https://developer.blender.org/D9909
2020-12-21Cleanup: Correct commentHans Goudey
2020-12-20fix T83880: Added check for valid context object to avoid null pointer ↵Gaia Clary
exception when no object in scene
2020-12-20UI: Fix text padding in some list widgetsYevgeny Makarov
Normally, pure text buttons have no padding at their edges so they align with edges of buttons, see D9058. However, in several cases there are labels aligned to the right side of a list widget row, so they're missing padding against the right edge. The fix is to use emboss = 'NONE' for such labels, which changes the drawing style, adding padding on the right edge. (Normally so labels aligned with the text from non-embossed buttons). This is not necessarily intended, but it works properly. For more information, see the revision. Differential Revision: https://developer.blender.org/D9874
2020-12-20UI: Slightly improve alignment in selection tool iconsHans Goudey
Parts of the tool icons for box, circle, lasso, and tweak select that were meant to be flat or at a 45 degree angle were slightly misaligned, making the edge look blurry.
2020-12-20VSE: Add options to select neighboring handlesPeter Fog
Options added to `sequencer.select_handles()` operator. Reviewed By: ISS Differential Revision: https://developer.blender.org/D7707
2020-12-20UI: Reorder enums in render results image editor headerYevgeny Makarov
The convention is to put the label at the bottom of the enum, or in the spot furthest away from the button. This commit reorders the items in the "Slot", "Layer", and "Pass" menus to be consistent with this convention. It also reorders the numbering so that higher numbers are lower. The original patch was by Adrian Newton (@TFS), with slight changes and additions. Differential Revision: https://developer.blender.org/D7142