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-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 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-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-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-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
2022-04-28Cleanup: Make RNA function comment more readableJulian Eisel
This complex comment was hard to parse visually. There was some odd line breaking going on, and together with no indentation for the continued lines, it was just a blob of text with no visual structure. You wouldn't see easily where the description of an argument started or ended.
2022-04-28Fix T97679: Retrieving shape key normals modifies verticesHans Goudey
Caused by not using the proper duplicated `MVert` array. Error in b0aaf6ff4a9731e9142d8.
2022-04-28Geometry Nodes: Add default attribute name to field inputs/outputsHans Goudey
Geometry node group inputs and outputs get a new property that controls the attribute name used for that field input/output when assigning the node group to a modifier for the first time. If the default name is assigned to an input, the default "Use attribute name" is true . In order to properly detect when a node group is first assigned, the modifier now clears its properties when clearing the node group. Ref T96707 Differential Revision: https://developer.blender.org/D14761
2022-04-28UI: Sort VSE modifiers alphabeticallyPablo Vazquez
2022-04-28VSE: Add precise drag and drop and strip previewsSebastian Parborg
This patch adds the drag and drop strip previews in the VSE. It also adds two new functions to the drag and drop API. 1. "draw_in_view" for callbacks that wants to draw elements in local viewport coordinates 2. "on_drag_start" that can be used for prefetching data only once at the start of the drag. Reviewed By: Julian, Campbell Differential Revision: http://developer.blender.org/D14560
2022-04-28GPencil: Fix offset modifier performance regressionFalk David
When using an offset modifier on a grease pencil object, the performance could be impacted due to the randomize option introduced by rB6a2bc40e0131. Even if the option was not used (offset, rotation, scale set to zero), the modifier would still compute the random transformation matrix. The patch checks if the randomization is used and only then caluclates the matrix. Reviewed By: #grease_pencil, antoniov Differential Revision: https://developer.blender.org/D14553
2022-04-28Cleanup: fix warning due to unused variableJacques Lucke
This warning exists in gcc 9.4.0, apparently because the variable is not used in some `constexpr` code paths.
2022-04-28Blender 3.2 Beta - Subversion bumpThomas Dinges
2022-04-28Fix T96476: Equalize Handles not working on all keyframesKevin C. Burke
As the default handle type in Blender is 'Auto Clamped' the Equalize Handles operator will often appear to have no affect on the selected keyframes on which it is run. If either of the keyframes' handle types are 'Auto', 'Auto Clamped', or 'Vector', this patch will convert the handles to 'Aligned'. Reviewed By: sybren Maniphest Tasks: T96476 Differential Revision: https://developer.blender.org/D14345
2022-04-28Cleanup: spelling in commentsCampbell Barton
Also use back-slashes for doxy commands.
2022-04-28Cleanup: unbalanced doxy sections, add some sectionsCampbell Barton
2022-04-28Cleanup: formatCampbell Barton
2022-04-28Fix error holding stack memory in a uniformCampbell Barton
Caused by db622b5a0bea32cb3a78c0a4c7d4372a9178d27e
2022-04-28Cleanup: Reword comment, rename variablesHans Goudey
Use "transform" instead of "obmat", because the meshes don't necessarily come from objects.
2022-04-28EEVEE: Add shader compilation progress in the viewportClément Foucault
Since rBfa43c47c7cb8446b632a4c0f712162ba615fe51f the progress bar do not show the compilation progress. This was misleading as users could think it could be canceled or prevent rendering. Now we just show how many shaders are still in the compilation queue inside each viewport. This number is more accurate than the percentage that was previously displayed in the progress bar.
2022-04-28GPUMaterial: Rework the deferred compilation to not use double locksClément Foucault
This uses refcounter instead of double thread mutexes. This should be more robust and avoir use after free situation. Also remove redundant structures and the use of scene as the job owner.
2022-04-28GPUMaterial: Use GPU_MAT_CREATED as a defaultClément Foucault
2022-04-28Fix T97627: Revert Window Redraw When SavingHarley Acheson
Removal of the `WM_redraw_windows` call in `wm_file_write` introduced in rB7a9cfd08a8d7415ff004809cf62570be9152273e as that can cause crashing while saving from a script. See D14780 for more details. Differential Revision: https://developer.blender.org/D14780 Reviewed by Campbell Barton
2022-04-28Cleanup: Remove disabled optimization codeHans Goudey
Addressing the TODO from the comment isn't a priority at the moment, and should be solved a bit more generally anyway.
2022-04-27Fix T97235: PBVH draw cache invalidation bugJoseph Eagar
The PBVH draw cache wasn't being invalidated in all cases. It is now invalidated whenever a PBVH node's draw buffers are freed.
2022-04-27Fix T93285: Wrong instance order when instancing a collectionGermano Cavalcante
At least on the Mac, `std::sort` sometimes passes the same value in the `a` and `b` parameters. The `true` return is only for cases where `a` is less than `b`.
2022-04-27GPUCodegen: Fix broken materials after rB478eb3a0e6edClément Foucault
2022-04-27Fix broken obj tests from earlier commitKévin Dietrich
rB08731d70bf66 was not properly checking if subdivision needs to be evaluated on the CPU. Thanks Ray Molenkamp for noticing.
2022-04-27GPUCodegen: Keep copy of attribute name in the GPUCodegenCreateInfoClément Foucault
This is to avoid use after free when the `GPUPass` gets compiled after the original `GPUMaterial` used to create it was freed. The issue was introduced by rBfa3bd17ae873
2022-04-27GPUCodegen: Use spin lock to protect the pass refcounter.Clément Foucault
This is not performance critical so using the same global lock should not pose any issue.
2022-04-27Fix T96434: bad performance with viewport statistics and GPU subdivisionKévin Dietrich
The subdivision is always recomputed on the CPU when displaying stats if the mesh is animated which leads to bad performance. This caches the subdivision topology counters from the draw code in the mesh runtime and uses them for the viewport statistics. Differential Revision: https://developer.blender.org/D14774
2022-04-27Fix T96327: data transfer crash with GPU subdivisionKévin Dietrich
The crash is caused as the subdivision wrapper does not have loop normals, which are generally computed at the end of the modifier stack evaluation via `mesh_calc_modifier_final_normals`. (Note that they are initially computed, but deleted by the subdivision wrapper creation.) This records in the mesh runtime whether loop normals should have been computed and computes them alongside the subdivision wrapper. Differential Revision: https://developer.blender.org/D14489
2022-04-27Cleanup: formatKévin Dietrich
2022-04-27Metal: GLSL Compatibility - Hosting default uniform values.Jason Fielder
There are a number of shaders, most notably grid_frag.glsl, which rely on default assignments to uniform values within shaders. This is not currently supported by the shader uniform push model implemented for the Metal backend, wherein uniform updates are pushed as a singular block of data. Any default assignment would become over-written. As such, adding assignments of these default values in the high-level, to ensure the correct value is written for all APIs. This likely impacts Vulkan push-constants as well. Authored by Apple: Michael Parkin-White Ref T96261 Reviewed By: fclem Maniphest Tasks: T96261 Differential Revision: https://developer.blender.org/D14555
2022-04-27Metal: MTLTexture core implementation for Metal backend, with minimal ↵Clément Foucault
surrounding functionality. This covers implementation of the GPUTexture abstraction for the Metal backend, with additional utility functionality as required. Some components have been temporarily disabled pending dependencies on upcoming Metal backend components, and these will be addressed as the backend is fleshed out. One core challenge addressed in the Metal backend is the requirement for read/update routines for textures. MTLBlitCommandEncoders offer a limited range of the full functionality provided by OpenGLs texture update and read functions such that a series of compute kernels have been implemented to provide advanced functionality such as data format conversion and partial/swizzled component updates. This diff is provided in full, but if further division is required for purposes of code review, this can be done. Authored by Apple: Michael Parkin-White Ref T96261 Reviewed By: fclem Maniphest Tasks: T96261 Differential Revision: https://developer.blender.org/D14543
2022-04-27Fix T96283: last disabled subsurf is used for GPU subdivisionKévin Dietrich
When more than one, consecutive, subdivision modifier is used on a Mesh, the last subsurf modifier is used for GPU subdivision even though it might be disabled. This is because retrieving the last subsurf modifier in the draw code did not check whether the modifier was disabled or not. To fix this, the session UUID of the modifier which delegated evaluation to the GPU code is cached and used in the draw to select the right subsurf modifier. Differential Revision: https://developer.blender.org/D14488
2022-04-27Cleanup: Use bool, remove unnecessary struct keywordsHans Goudey