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-10-15Fix Cycles Python error with pinned materials in properties editorBrecht Van Lommel
2021-10-15Fix T92128: Cycles CUDA wrong hair attributes, after recent changesBrecht Van Lommel
2021-10-15Geometry Nodes: fix getting mutable geometry componentJacques Lucke
The previous code did not take into account that they geometry component may not be mutable because it is shared between multiple geometry sets.
2021-10-15Fix wrong DNA struct element lookup in versioningJulian Eisel
The type of the element is `short`, not `int`. Harmless since this was checking for a specific version anyway.
2021-10-15Fix T92131: handle node declaration in material propertiesJacques Lucke
The issue was that this menu was only looking at socket templates, but not at the new node declarations. This fix is to just check those as well. The fix comes with a small refactor that makes the memory management a bit simpler. Differential Revision: https://developer.blender.org/D12866
2021-10-15UI: Fix offset of vertical scale indicatorsPablo Vazquez
`BLF_height_max()` uses the tallest character in the font, and many characters in our font are taller than numbers. Use `BLF_height` with `0` as reference instead. Fix by @harley, thanks!
2021-10-15Cleanup: Commonize code for checking scene lights/world settingsJesse Yurkovich
There were several places attempting to check to see if scene lights and world were enabled for display. This tries to find a common place for both of these to reduce duplication. Honestly, I couldn't find a really good spot for these and settled on DRW_engine. It's not the best spot since they're not strictly drawing related, but let's start here. Reviewed By: fclem Differential Revision: https://developer.blender.org/D12658
2021-10-15Fix T92226 EEVEE: AO misaligned on first sampleClément Foucault
Caused by tricky state tracking. `GPU_framebuffer_bind()` is updating the framebuffer on first time and will reset the viewport state of it.
2021-10-15Fix is_repeat being set for in between mouse-move eventsCampbell Barton
2021-10-15Fix crash using menu search without an active areaCampbell Barton
2021-10-15Fix some property shortcuts not showing in tooltipCampbell Barton
Shortcut lookups for property buttons were only supported for a subset of RNA types. Replace inline data-path calculation with WM_context_path_resolve_property_full. Now the shortcut for the 3D View's overlay toggle (for e.g.) is shown.
2021-10-15Cleanup: use const for context argumentCampbell Barton
2021-10-15Cleanup: clang-tidyCampbell Barton
2021-10-15UI: View2D: Align vertical indicators to viewPablo Vazquez
In editors with vertical scale indicators, such as Graph Editor, Drivers, or VSE, display the values aligned to the view. Also add a shadow (similar to the 3D View info) to improve readability when the text is on top of curves, strips, or other content. {F10987240, size=full} Reviewed By: Severin Differential Revision: https://developer.blender.org/D12809
2021-10-14Geometry Nodes: Order selection inputs after geometry inputsHans Goudey
While there may be arguments for different positions of the selection inputs, it's important to be consistent, and putting them right after the corresponding geometry works well when there are multiple geometry inputs. Addresses T91646.
2021-10-14Geometry Nodes: Create empty components less oftenHans Goudey
Avoiding creating empty components can be a hassle for code that interacts with a geometry set. One easy way to do that was calling the functions that retrieved mutable access to geometry data directly, like get_mesh_for_write. This commit makes it so that sort of direct function does not create an empty component if there is no data. Another way to create an empty component was calling the replace_* methods with a null pointer. It's more convenient to have a nice API that handles those cases without creating an empty component. It's still convenient that the regular get_component_for_write adds the component if it doesn't exist, because that's often a nice way to add data to the geometry set. Differential Revision: https://developer.blender.org/D12862
2021-10-14Geometry Nodes: Merge Conflict CleanupJohnny Matthews
Removing a line that remained from a merge.
2021-10-14Geometry Nodes: Rename Nodes ID Names + Menu OrgJohnny Matthews
Re-alphabetize the main add menu. Rename Node ID Names: FloatCompare => CompareFloats AttributeCapture => CaptureAttribute Boolean => MeshBoolean CurveFill => FillCurve CurveFillet => FilletCurve CurveReverse => ReverseCurve CurveSample => SampleCurve CurveResmaple => ResampleCurve CurveSubdivide => SubdivideCurve CurveTrim => TrimCurve MaterialReplace => ReplaceMaterial MeshSubdivide => SubdivideMesh EdgeSplit => SplitEdges Differential Revision: https://developer.blender.org/D12865
2021-10-14Geometry Nodes: Field version of mesh to curve nodeHans Goudey
This commit adds a fields version of the mesh to curve node, with a field for the input selection. In order to reduce code duplication, it adds the mesh to curve conversion to the new geometry module and calls that implementation from both places. More details on the geometry module can be found here: T86869 Differential Revision: https://developer.blender.org/D12579
2021-10-14Python API: implement `PoseBone.children` via `Bone.children`.Alexander Gavrilov
Currently `PoseBone.children` is implemented by a linear scan of the list of armature bones. This is doubly inefficient, since not only is it scanning all bones, the `obj.data.bones` list is actually synthetic and generated from Bone children lists. Instead, use the `Bone.children` native RNA property. Differential Revision: https://developer.blender.org/D12727
2021-10-14Fix another error in rB5e12e62a6a4eGermano Cavalcante
The code was ignoring the icremental with small distances.
2021-10-14Fix error in rB5e12e62a6a4eGermano Cavalcante
2021-10-14GPUTexture: Fix assert when using stereo viewport with EEVEEClément Foucault
Stereo viewport means the depth buffer is use twice as often as a framebuffer attachment.
2021-10-14Fix regression with incremental snap in Graph EditorGermano Cavalcante
Regression introduced in {rBb0d9e6797fb8}. Previously the Graphics Editor had a conflict with two different snap types. Auto-Snap and Snap with Ctrl. It is now clearer which snap should prevail.
2021-10-14Functions: Generic array data structureHans Goudey
Sometimes it's useful to pass around a set of values with a generic type. The virtual array data structures allow this, but they don't have logical ownership. My initial use case for this is as a return type for the functions that interpolate curve attributes to evaluated points, but a need for this data structure has come up in a few other places as well. It also reduced the need for templates. Differential Revision: https://developer.blender.org/D11103
2021-10-14Fix T92030: crash when hovering over socketJacques Lucke
This is the same fix as in rB24a965bb16c22e33752dfb6c22105b96a8649aeb.
2021-10-14Cycles: Kernel address space changes for MSLMichael Jones
This is the first of a sequence of changes to support compiling Cycles kernels as MSL (Metal Shading Language) in preparation for a Metal GPU device implementation. MSL requires that all pointer types be declared with explicit address space attributes (device, thread, etc...). There is already precedent for this with Cycles' address space macros (ccl_global, ccl_private, etc...), therefore the first step of MSL-enablement is to apply these consistently. Line-for-line this represents the largest change required to enable MSL. Applying this change first will simplify future patches as well as offering the emergent benefit of enhanced descriptiveness. The vast majority of deltas in this patch fall into one of two cases: - Ensuring ccl_private is specified for thread-local pointer types - Ensuring ccl_global is specified for device-wide pointer types Additionally, the ccl_addr_space qualifier can be removed. Prior to Cycles X, ccl_addr_space was used as a context-dependent address space qualifier, but now it is either redundant (e.g. in struct typedefs), or can be replaced by ccl_global in the case of pointer types. Associated function variants (e.g. lcg_step_float_addrspace) are also redundant. In cases where address space qualifiers are chained with "const", this patch places the address space qualifier first. The rationale for this is that the choice of address space is likely to have the greater impact on runtime performance and overall architecture. The final part of this patch is the addition of a metal/compat.h header. This is partially complete and will be extended in future patches, paving the way for the full Metal implementation. Ref T92212 Reviewed By: brecht Maniphest Tasks: T92212 Differential Revision: https://developer.blender.org/D12864
2021-10-14Fix T91743: Unify behavior of 'Auto Set Preview Range'Philipp Oeser
This is available in the DopeSheet, GraphEditor, and NLA Editor. Currently: - Dopesheet advertises to take selection into account... -- ...but doesnt - which might be a mistake in rBe3842d1ca4dd - Graph Editor does not mention selection... -- ...and also does not take it into account - NLA does not mention selection... -- ...but takes it into account Now: - make them **all** take selection into account (you can still do a quick 'Select All' prior to get the full range -- better than not being able to set this based on selection) - mention this for all in the tooltip - also reword to 'Set Preview Range to Selected' since using the term 'Auto' impilies this would change on selection change. Maniphest Tasks: T91743 Differential Revision: https://developer.blender.org/D12651
2021-10-14Geometry Nodes: Add White Noise textureCharlie Jolly
Port White Noise shader to geometry nodes. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D12719
2021-10-14Cleanup: fix const discard warningSybren A. Stüvel
No functional changes.
2021-10-14Nodes: add boilerplate for image socketsCharlie Jolly
The sockets are not exposed in any nodes yet. They work similar to the Object/Collection/Texture sockets, which also just reference a data block. Based on rB207472930834 Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D12861
2021-10-14Cleanup: asset browser, remove invalid assertionSybren A. Stüvel
Remove `BLI_assert_unreachable()` in a spot that is actually easily reachable. To reach, follow these steps: - Configure three asset libraries (say A, B, and C) in preferences - Set the asset browser to library C and save the file - Remove asset library C from the preferences - Reopen the file.
2021-10-14Filebrowser: Expose file select functions for File Browser to Python API.Paul Golter
This patch adds activate_file_by_relative_path(relative_path="") and deselect_all() function to the space api of the File Browser. While the first sets the active file and adds it to the selection based on a relative path to the current File Browser directory the second one deselects all files but does not change the active file. Differential Revision: https://developer.blender.org/D12826 Reviewed by: Julian Eisel
2021-10-14Geometry Nodes: Reorganize Add MenuJohnny Matthews
- Move Converters to 'From' menus - Create Instances Menu - Realphabetize the Curve Menu Differential Revision: https://developer.blender.org/D12860
2021-10-14Alembic: avoid crash when Cycles is not enabledSybren A. Stüvel
The Alembic/CacheFile modifier supports Cycles procedurals when Cycles is configured to use experimental features; the check for this would segfault on builds with `WITH_CYCLES=OFF`. This is now fixed by adding an extra NULL check.
2021-10-14Fix T91398 Overlay: Camera BG jitter offset (regression)Clément Foucault
This was caused by camera background being rendered in world space, causing floating point imprecision issues when camera was far from origin. Adding a uniform to change vertex shader to process everything in viewspace to fix the problem.
2021-10-14Fix T92200: VSE: 2D Cursor position missing viewport updatePhilipp Oeser
Was using notifier from wrong space (copy-paste error in rBd04d27b406b8).
2021-10-14Fix shadow catcher behind transparent object on GPUSergey Sharybin
The assumption about absent shadow path was wrong. The rest of the changes are to ensure shadow paths are finished prior to the split, so that they write to the proper passes. The issue was caught by running regression tests on OptiX. Differential Revision: https://developer.blender.org/D12857
2021-10-14WM: quiet output of delete object operatorCampbell Barton
Object deletion was reporting the number of objects deleted, causing tests to print noisy output. Now this is information is only included when invoked.
2021-10-14Cleanup: remove historic reference from makesdna.cCampbell Barton
We have mostly removed information about original authors, as this information isn't so useful.
2021-10-14Cleanup: use dot-points for appdir platform specific pathsCampbell Barton
2021-10-14Cleanup: reserve C++ comments for disabled codeCampbell Barton
2021-10-14Cleanup: silence Clang missing-braces warning.Ankit Meel
2021-10-14Geometry Nodes: Add Offset Option to Set PostionJohnny Matthews
Add a boolean field to the Set Position Node. This value allows for each point to either have its position set to the input position value or have the input value added to the current position. Differential Revision: https://developer.blender.org/D12773
2021-10-14Cleanup: avoid using size for array length in namingCampbell Barton
Confusing when array allocation takes two kinds of size arguments.
2021-10-14Cleanup: pass the sizeof(..) as the second arg for array allocationCampbell Barton
By argument naming and convention this is the intended argument order.
2021-10-14Fix compile error with 'WITH_CXX_GUARDEDALLOC'Germano Cavalcante
2021-10-14Cleanup: clang-tidy, clang-format & spellingCampbell Barton
2021-10-14Fix reference counting error for world drag & dropCampbell Barton
Error in 986d60490c0694941e27c070780c55f07b7b4842
2021-10-14Fix invalid arguments to ED_gizmotypes_snap_3d_context_ensureCampbell Barton