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-01-07Cleanup: remove redundant const qualifiers for POD typesCampbell Barton
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
2022-01-07Cleanup: Fix spelling in filenameAaron Carlisle
2022-01-07Cleanup: Add `bf_nodes_texture` libraryAaron Carlisle
For sake of consistencey with other node tree types, create its own cmake module. This change helps keep `bf_nodes` focused on generic nodes files. Texture nodes are end of life and hopefully for Blender 4.0 they can be removed. It is not expected that these will see the updates that the other nodes are getting. This change also helps isolate the end of life files, we may move some texture specific node tree execution code out of `node_exec` and into a `node_texture_exec` files. Differential Revision: https://developer.blender.org/D13743
2022-01-07Cleanup: Use new socket builder APIAaron Carlisle
This commit converts most shader or bsdf nodes.
2022-01-06Fix T94635: Sculpt Smooth in Surface mode with Anchored Stroke crashPhilipp Oeser
Sculpt Smooth in Surface mode (as opposed to Laplacian) needs a cache initialized on first time. In anchored stroke mode with spherical falloff this was skipped though (because this starts of with no PBVH nodes and an early return checks for this) and `first_time` was set to false before cache initialization. Now move the cache initalization to happen earlier (same as the cache initialization for automasking). Maniphest Tasks: T94635 Differential Revision: https://developer.blender.org/D13746
2022-01-06Fix Cycles updating display unnecessarily when stopping 3D viewportBrecht Van Lommel
Debug code accidentally committed in 466b50d. This was found while investigating issues with D13385.
2022-01-06Fix T94672: incorrect Workbench shadows with GPU subdivisionKévin Dietrich
The `lines_adjacency` IBO build in the GPU subdivision case was missing edges at the boundaries of open meshes. As it is used for the shadow pass, the shadows were then not clipped properly. This would also make X-Ray mode render differently in those cases. To fix this, we can simply reuse the buffer finalization routine from the non-subdivision case, as such edges are handled there.
2022-01-06GPU subdiv: fix wrong data sizes used for lines adjacency IBOKévin Dietrich
Function parameters were mismatched, causing an assertion failure in debug builds.
2022-01-06Depsgraph: only link 'IK Constraint -> Init IK Tree' if animated.Alexander Gavrilov
This relation is intended to ensure that the properties of the IK constraint are ready by the time the IK solver tree is built. This however can cause spurious dependency cycles, because there is only one init tree node for the whole armature, and the relation actually implies dependency on all properties of the bone. This patch reduces spurious dependencies by only creating the relation if any properties of the IK constraint specifically are animated. Differential Revision: https://developer.blender.org/D13714
2022-01-06Bone Overlay: support changing bone wireframe opacity.Alexander Gavrilov
When weight painting the bone overlay is extremely intrusive, effectively requiring either extensive use of hiding individual bones, or disabling the whole bone overlay between selections. This addresses the issue by adding a bone opacity slider that is used for the 'wireframe' armature drawing mode. It directly controls the uniform opacity as a straightforward option. Differential Revision: https://developer.blender.org/D11804
2022-01-06Depsgraph: fix spurious cycles with identically named idprops on bones.Alexander Gavrilov
If multiple bones have a custom property with the same name, depsgraph didn't distinguish between them, potentially leading to spurious cycles. This patch moves ID_PROPERTY operation nodes for bone custom properties from the parameters component to individual bone components, thus decoupling them. Differential Revision: https://developer.blender.org/D13729
2022-01-06Fix T94685: python error adding Space handlers for SpreadsheetPhilipp Oeser
Oversight in {rB9cb5f0a2282a}. Above commit made an entry in `rna_Space_refine()`, but the entry in `rna_Space_refine_reverse()` was missing (and this is what python uses for the Space callbacks). Maniphest Tasks: T94685 Differential Revision: https://developer.blender.org/D13751
2022-01-06Cleanup: use correct file namespace nameJacques Lucke
2022-01-06Cleanup: typos in code.Kévin Dietrich
2022-01-06Fix T94674: crash reading ORCOs from an Alembic animationKévin Dietrich
The crash is caused as the data is only for the first frame, but the mesh changes topology, so reading the data in subsequent frames causes a buffer overflow. To fix this, we check that the data size matches the mesh's vertex count.
2022-01-06Cleanup: USD/ABC, remove `const` from pass-by-value paramsSybren A. Stüvel
Remove `const` from pass-by-value parameters in function declarations. The variables passed as parameters can never be modified by the function anyway, so declaring them as `const` is meaningless. Having the declaration there could confuse, especially as it suggests it does have a meaning, training people to write meaningless code.
2022-01-06Cleanup: anim, remove `const` declarations from pass-by-value paramsSybren A. Stüvel
Remove `const` from pass-by-value parameters in function declarations. The variables passed as parameters can never be modified by the function anyway, so declaring them as `const` is meaningless. Having the declaration there could confuse, especially as it suggests it does have a meaning, training people to write meaningless code.
2022-01-06Cleanup: Replace FINISHED with CANCELLEDAntonio Vazquez
As the operator does nothing, better use cancelled.
2022-01-06Fix (unreported) crash in liboverride after yesterday's commit.Bastien Montagne
Own mistake in rBbfb760e16acb.
2022-01-06Cleanup: move public doc-strings into headersCampbell Barton
Some recent changes re-introduced public-style doc-strings in the source file.
2022-01-06Cleanup: quiet GCC stringop-overflow in bmesh_beautify.cCampbell Barton
Also elaborate on the doc-string.
2022-01-06Cleanup: sort cmake file listsCampbell Barton
2022-01-06Cleanup: remove unnecessary slashes and quotes from paths in CMakeCampbell Barton
2022-01-06Cleanup: remove redundant/unused assignmentCampbell Barton
SRC was being assigned invalid values then overwritten.
2022-01-06Cleanup: spelling in commentsCampbell Barton
2022-01-06Cleanup: remove declaration for removed functionCampbell Barton
2022-01-06Cleanup: compiler warningsCampbell Barton
2022-01-06CMake: add missing headersCampbell Barton
2022-01-06Correct error when moving doc-strings into headerCampbell Barton
Error in ffc4c126f5416b04a01653e7a03451797b98aba4, which moved doc-strings from implementation into headers. Some changes in BKE_animsys.h needed to done manually as there were already doc-strings in both the header and implementation (with overlapping information). When making these changes some doc-strings were removed unintentionally. Thanks for @sybren for the heads up.
2022-01-06Cleanup: Clang-tidy: modernize-redundant-void-argAaron Carlisle
2022-01-06Cleanup: Spelling/grammar in commentsHans Goudey
2022-01-06Cleanup: Use snake case for file namesAaron Carlisle
This is so that we can have "proper" file namespace names in D13466
2022-01-06In obj exporter test, fix a strncpy length and a stray test file left behind.Howard Trickey
2022-01-06Cleanup: Remove empty node socket template arrayAaron Carlisle
2022-01-06Cleanup: Use new socket builder APIAaron Carlisle
Instead of looping through the old socket template array looper through the node output listbase.
2022-01-06Fix: MSVC build errorRay Molenkamp
MSVC2017 and early 2019 versions are under the impression struct OGLRender is non trivial type due to the ThreadCondition field, not entirely sure why, but it is what it is. Differential Revision: https://developer.blender.org/D13742 Reviewed by: JacquesLucke
2022-01-05Cleanup: Use new socket builder APIAaron Carlisle
2022-01-05Cleanup: Use new socket builder APIAaron Carlisle
Also enables translation of socket names
2022-01-05Fix/workaround macOS Rosetta crash running Cycles AVX testsBrecht Van Lommel
Just disable these tests on macOS for now as fixing seems hard, and we want to be able to cross-compile and test x86_64 on Arm machines on the buildbot.
2022-01-05Fix Cycles AVX test failure with x86_64 build running on ArmBrecht Van Lommel
Don't create const avx vectors before validating if CPU supports AVX.
2022-01-05Fix T94563: Cycles standalone build error on with strict float/double castingBrecht Van Lommel
Thanks to John David for finding this.
2022-01-05Fix T93695: Discontinuous cutting with the knife toolCian Jinks
An important check to reject edge linehits when a vertex of that edge was already hit was accidentally removed in rB6e77afe6ec7b6a73f218f1fef264758abcbc778a
2022-01-05Cleanup: Remove unused `node_type_exec` for shader nodeAaron Carlisle
From what I can tell these are left over from Blender Internal render. Test still pass locally, also tested a couple eevee scenes. Reviewed By: JacquesLucke, brecht Differential Revision: https://developer.blender.org/D13732
2022-01-05Fix T94169: Missing grease pencil render with tiled renderingSergey Sharybin
Delay grease pencil for until after the render result is written to the Blender side. Differential Revision: https://developer.blender.org/D13740
2022-01-05Fix Cycles allocating result too earlySergey Sharybin
When tiled rendering was used the render result was allocated at the end of every view layer render as opposite of an intended end of all rendering. Modify the render_result_end so that it only ensures pixels are allocated if pixels are actually copied over.
2022-01-05Fix Cycles using Cancel semantic on final result writeSergey Sharybin
Seems like a copy-paste bug from another place.
2022-01-05Fix T94650: LibOverride: Bad handling of (auto)resync in case of single ↵Bastien Montagne
override. Overrides that are not created as part of an override hierarchy should not be handled through (auto)resync at all. users are responsible to hanlde those updates if they need it. This is achieved by flagging overrides created outside of a hierarchical process accordingly, and skipping them during resync process.
2022-01-05LibOverride: Cleanup some code.Bastien Montagne
No functional change.
2022-01-05Assets: disable automatic preview generation for node groupsJacques Lucke
The current preview generation is more confusing than useful. Therefore it is better to disable it until better preview generation methods are found. Differential Revision: https://developer.blender.org/D13728
2022-01-05Fix T94659: crash when deleting instancesJacques Lucke
The crash was caused by using `modify_geometry_sets` to modify instances, which does not generally work unfortunately. The intended behavior was wrong anyway. In instances mode, only top level instances should be deleted. Also removed the old error handling because it doesn't look like it ever worked. all_is_error remained false all the time. Furthermore, updating it was not thread safe. Differential Revision: https://developer.blender.org/D13736