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-04-29Cleanup: fix various Cycles build warnings with non-default optionsBrecht Van Lommel
* Float/double promotion warnings were mainly meant for avoiding slow operatiosn in the kernel. Limit it to that to avoid hard to fix warnings in Hydra. * Const warnings in Hydra iterators. * Unused variable warnings when building without glog. * Wrong camera enum comparisons in assert. * PASS_UNUSED is not a pass type, only for pass offsets.
2022-04-29Cleanup: Simplify job custom data query APISergey Sharybin
There were two calls to access job's custom data. One of them ignored job type, the other one ignored job owner. Now there is a single function to access job's custom data. If the job type or owner is not relevant NULL or WM_JOB_TYPE_ANY can be passes explicitly. Differential Revision: https://developer.blender.org/D14803
2022-04-29NLA: Key influence when pushing down to NLASybren A. Stüvel
When pushing down an Action onto an NLA track, set the new Strip's influence to the Action's influence. This is done by setting a key due to the way the NLA Strip influence works (it's either animated, or ignored). Reviewed By: sybren, RiggingDojo Differential Revision: https://developer.blender.org/D14719
2022-04-29Fix: Incorrect custom data maxlayers in rare filesHans Goudey
For a single day in 2015 between rBff3d535bc2a6309 and rB945f32e66d6ada, custom data structs could be written with an incorrect maxlayer field. This means that custom data structs read from those files would think they have more space to add new layers than they actually did, causing a crash if more layers were added. This was found while investigating a crash from D14365 which adds new face corner layers in versioning. The fix is to reset all maxlayer integers to totlayer, which is done when writing files in current Blender anyway. The file tests/render/motion_blur/camera_zoom_blur_perspective.blend has this problem as it was added on 2015-07-21, right between the two commits. Adding three custom data layers in versioning code would crash. The problem was originally found and investigated by Martijn Versteegh (@Baardaap), thanks! Differential Revision: https://developer.blender.org/D14786
2022-04-29Cleanup: fix unused parameter warningSybren A. Stüvel
Fix 'unused parameter' warning when building without OpenColorIO. No functional changes.
2022-04-29Fix CMake error in new builds after previous NanoVDB fixBrecht Van Lommel
2022-04-29Fix wrong cast from uint to int (2)Germano Cavalcante
Error in rB3d877c8a0d06
2022-04-29Fix wrong cast from uint to intGermano Cavalcante
Error in rB3d877c8a0d06
2022-04-29T95386: Add Discontinuity (Euler) filter to Dope Sheet.Demeter Dzadik
Add the Discontinuity (Euler) Filter operator to the Dope Sheet->Key menu, so it's not only available from the Graph Editor->Key menu. On request of @pablico, see T95386. This required changing a poll function which is used by a bunch of other operators, which seemed scary at first, but my thinking is that if an operator can execute in the Graph Editor, then it should also be able to execute in the Dope Sheet. I think the only reason this wouldn't be true is if we were storing animation data in the UI itself, which of course we don't. So I hope this is okay. Reviewed By: sybren Differential Revision: https://developer.blender.org/D14015
2022-04-29Select Engine: port shader to use 'GPUShaderCreateInfo'Germano Cavalcante
Simple port with a few cosmetic changes: - Attribute named "color" for indices VBO is now called "index" - The indices VBO is now composed of `int`s instead of `uint`s (this simplifies the source) Differential Revision: https://developer.blender.org/D14800
2022-04-29Fix missing NanoVDB patch for HIP support, after unifying with OpenVDBBrecht Van Lommel
This patch has also been contributed upstream, so will not be needed anymore soon. Also automatically clear cached variables for new nanovdb location in libs.
2022-04-29CMake: harvest nanovdb from its new locationSybren A. Stüvel
NanoVDB is now bundled with OpenVDB (since rBb9c37608a9e) instead of a separate package. This still doesn't include our patch to support AMD HIP; that'll be committed separately soon.
2022-04-29Fix Cycles versioning code after recent changeSergey Sharybin
Need to use get() instead of is_property_set() for properties which are not defined as Property.
2022-04-29Cleanup: Remove old filter property.Thomas Dinges
It was kept for forward compatibility during 2.7x. Reference rB5a45ccaf3e5102ee571599fa9f26a78ac1f6d0f4
2022-04-29GLState: Avoid possible undefined behavior in state comparisonClément Foucault
The bitwise XOR used to compute the delta (`changed`) might produce NaN and thus produce undefined behavior when comparing to another float (because of float promotion).
2022-04-29Fix T97097: Color filter saturate affects non-colorsJoseph Eagar
Saturation is now tested for > 0.001 instead of != 0. We may wish to turn the limit into an operator property in the future.
2022-04-29Fix T97120: Gizmo fails to select in orthographic viewCampbell Barton
Regression in exposed by 49fc4449e734842cc3ccd797e6ece73ea64f34e4.
2022-04-29Fix T97608: Sculpt sample color op is missing pmapJoseph Eagar
Add missing call to BKE_sculpt_update_object_for_edit.
2022-04-29Fix T62945: Hotkeys not showing up in brush tooltipsJoseph Eagar
2022-04-29Fix T97124: Area light size gizmo unselectableCampbell Barton
Workaround for MS-Windows NVidia/LLVMPipe combination failing to select the gizmo unless depth-test was used.
2022-04-29Cleanup: use 'use_' prefix for RNA booleanCampbell Barton
2022-04-29Cleanup: missing declaration warnings & spelling in commentsCampbell Barton
2022-04-29shader_builder: fix build issue on windowsRay Molenkamp
shader_builder had no manifest set, leading to the classic common control version being loaded which in turn caused an import error and made the executable fail to initialize.
2022-04-29Build: disable Metal for USD libraries also, it fails to build without OpenGLBrecht Van Lommel
This only affects macOS. Ref D14792
2022-04-29Cleanup: silence unused variable warningsGermano Cavalcante
2022-04-28Fix: Missing translation in node socket inspectionHans Goudey
2022-04-28Fix: Socket inspection error for data-block socketsEthan-Hall
After rB47276b847017, for certain socket types such as object or material, the name of the item is not obtained correctly leading the tooltip to display random non-character memory values as text. Differential Revision: https://developer.blender.org/D14762
2022-04-28Fix T97151: Curve vertex parenting crash with dependency cycleHans Goudey
When the object's position depends on the geometry and the geometry depends on the object's position, we can't count on the object's evaluated geometry to be available. Lattices and mesh objects have equivalent checks in this vertex parenting function. Differential Revision: https://developer.blender.org/D14781
2022-04-28Cleanup: Overlay: Avoid local variable shadowingClément Foucault
2022-04-28Overlay: Port UDIM Grid shader to shaderCreateInfoClément Foucault
Simple Straight forward port.
2022-04-28Overlay: Port Grid shader to shaderCreateInfo and other code cleanupClément Foucault
Along with the port to createInfo this also: - Packs constant uniforms in a UBO. - Share enum declaration and unify names - Makes codeflow easier to undestand. - Split grid data to its own struct. # Conflicts: # source/blender/draw/engines/overlay/overlay_grid.c
2022-04-28Fix T93899: Incorrect decorator buttons for geometry nodes vector/colorsHans Goudey
For properties exposed to the geometry nodes modifier, decorators didn't work at all for colors and it only worked on the X component of vectors. The fix is to use -1 for the RNA index of the decorator button instead of 1, which lets the UI code figure out what to do with arrays.
2022-04-28UI: Fix consistency issues with attribute tooltips and iconsEthan-Hall
This patch modifies tooltips of attributes and UV maps to resolve inconsistencies. It also restores the vertex color icon that went missing from the UI lists when color attributes replaced vertex colors. Fixes T97614 Differential Revision: https://developer.blender.org/D14768
2022-04-28Fix T94467: Cycles baking of normal pass slower than before cycles-xBrecht Van Lommel
2022-04-28Fix T93546: Fill curve node ignores last point of non-cylic curvesHans Goudey
The node is meant to consider all curves cyclic, which means that it shouldn't account for one fewer segment on non-cyclic curves.
2022-04-28Fix: Incorrect conversion from C bitfield syntaxHans Goudey
Recent cleanups 9a8669ac81b99b2 and 1c790555a02bfc3 incorrectly interpereted the bitfield width syntax as a default value. Also resolve two other compilation warnings.
2022-04-28Ensure BSDF evals and pdfs are zero on invalid samplesSebastian Herholz
Currently, the `eval` and `pdf` are not explicitly set to zero when a BSDF sample is invalid (e.g., below the upper hemisphere), when calling `bsdf_sample` or `bsdf_eval`. It is assumed that `eval` and `pdf` are set to zero before these functions are called, which can cause problems if not. This patch fixes this potential problem by explicitly setting `eval` and `pdf` to zero when the sampled direction is invalid. I also added a sanity check if `eval` and `pdf` are valid (i.e., >= 0.f). The check is activated when build in debug mode and with the `WITH_CYCLES_DEBUG` set to `ON`. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D14776
2022-04-28Fix: Sky models can return negative valuesSebastian Herholz
When converting from XYZ to RGB it can happen, in some sky models, that the resulting RGB values are negative. Atm, this is not considered and the returned values for the sky model can be negative. This patch clamps the returned RGB values to be `= 0.f` Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D14777
2022-04-28Fix T97056: Cycles MNEE caustics treated as direct instead of indirect lightChristophe Hery
This fixes wrong render passs and bounce limits. Differential Revision: https://developer.blender.org/D14737
2022-04-28Fix T97142: When Exporting GPencil, File Dialog Shows No SubfoldersAntonio Vazquez
The export had missing the `FILE_TYPE_FOLDER` flag.
2022-04-28Cleanup: Fix compiler warningsHans Goudey
2022-04-28UI: Improvements to "Add Color Attribute" menuEthan-Hall
Allow the session to save the choice for domain and data type since it is highly likely that the user intends to use the same settings for subsequent color attributes. Use expanded button selectors for domain and data type since there are only two options for each. Differential Revision: https://developer.blender.org/D14785
2022-04-28Snap Gizmo: update props using gizmo's snap_stateGermano Cavalcante
A snap state can be replaced by another snap state of a gizmo or cursor. The snap gizmo should only change its state, not the current state. It's not really a problem currently.
2022-04-28Deps:Specify versions for implicit python modulesRay Molenkamp
D14686 added autopep8 which implicitly dragged in toml and pycodestyle which were not versioned, this diff adds explicit versions of these deps so there won't be any version changes if we rebuild in the future. Reviewed By: brecht, sybren Differential Revision: https://developer.blender.org/D14793
2022-04-28Fix T97527: multiview camera suffix not working with more than 4 charactersBrecht Van Lommel
Thanks to Germano Cavalcante for finding the solution.
2022-04-28Fix non-face oriented snap cursor in dragdropGermano Cavalcante
If the measure gizmo is enabled, its snap state is used in the snap update. As it does not require a plane, the orientation of the plane is not calculated. However, the calculation of the plane's orientation must prevail over the states.
2022-04-28CMake: Reduce dependencies of USDSybren A. Stüvel
`PXR_ENABLE_OSL_SUPPORT=OFF`: OpenShadingLanguage is an optional dependency of the Imaging module. However, since that module was included for its support for converting primitive shapes (sphere, cube, etc.) to geometry, OSL is not necessary. Disabling it will make it simpler to build Blender; currently only Cycles uses OSL. `PXR_ENABLE_GL_SUPPORT=OFF`: GL support on Linux also links to X11 libraries. Enabling it would break headless or Wayland-only builds. OpenGL support would be useful if someone wants to work on a Hydra viewport in Blender; when that's actually being worked on, we could patch in a new PXR_ENABLE_X11_SUPPORT option (to separate OpenGL from X11) and contribute it upstream. `PXR_BUILD_OPENIMAGEIO_PLUGIN=OFF`: It's used for loading image textures in Hydra Storm / Embree renderers which we don't use. Reviewed By: LazyDodo, brecht, makowalski Differential Revision: https://developer.blender.org/D14792
2022-04-28Snap Cursor: split 'ED_view3d_cursor_snap_data_get'Germano Cavalcante
Split 'ED_view3d_cursor_snap_data_get' into 'update' and 'get' functions Sometimes we just want to update and sometimes we just get the result. Make it clear.
2022-04-28VSE: Add option to limit timeline view heightRichard Antalik
When height is limited, it is defined by space occupied by strips, but at least channels 1 to 7 will be always visible. This allows it to easily overview timeline content by zooming out to maximum extent in Y axis and panning in X axis. More channels can be "created" on demand by moving strip to higher channel. When strip is removed and highest channel becomes empty, view will stay as is until it is moved down. Then new highest point is remembered and it is not possible to pan upwards until strip is moved to higher channel. Limiting takes into account height of scrubbing and markers area as well as scrollers. This means that when zoomed out to maximum extent, no strips are obstructed by fixed UI element. Fixes T57976 Reviewed By: Severin Differential Revision: https://developer.blender.org/D14263
2022-04-28Cleanup: Improve const correctness of shape key functionsHans Goudey