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
path: root/source
AgeCommit message (Collapse)Author
2022-02-14Merge branch 'blender-v3.1-release'Bastien Montagne
2022-02-14Fix T95601: Missing handling of keyingsets ID pointers in ↵Bastien Montagne
lib_query/foreach_id code. This will have to be backported to 2.93 and possibly 2.83 if possible.
2022-02-14Merge remote-tracking branch 'origin/blender-v3.1-release'Sybren A. Stüvel
2022-02-14Fix segfault calling `id_properties_ui("prop").update()`Sybren A. Stüvel
Fix segfault when calling `some_id.id_properties_ui("propname").update()`, i.e. call the `update()` function without any keyword arguments. In such a case, Python passes `kwargs = NULL`, but `PyDict_Contains()` is not `NULL`-safe.
2022-02-14Merge branch 'blender-v3.1-release'Jeroen Bakker
2022-02-14Cleanup use c style comments.Jeroen Bakker
2022-02-14Fix T95725: Changing render slot doesn't update displayed image.Jeroen Bakker
Fixed by checking the requested pass, layer and view against the previous used one.
2022-02-14Phase out IMA_GPU_REFRESH.Jeroen Bakker
IMA_GPU_REFRESH is replaced by BKE_image_partial_update_mark_full_update and should not be used anymore.
2022-02-14Merge branch 'blender-v3.1-release'Jeroen Bakker
2022-02-14Fix T95699: Compostior backdrop not updated.Jeroen Bakker
The Viewer marked the gpu texture to be out of date. But it should have used the mark_full_update as the gpu textures are only used by the render/draw engines. The image/node editor uses the image engine that have its own GPU textures.
2022-02-14Image Engine: Remove region_uv_bounds.Jeroen Bakker
They have been replaced by clipping_uv_bounds. Using region_uv_bounds could lead to problems when drawing the compositor backdrop.
2022-02-14Image Engine: Limit the number of interal textures.Jeroen Bakker
Currently one a single texture slot is used to update the screen. Current design is implemented to use multiple textures. for now limit the number of texture slots to 1.
2022-02-14Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-14Fix T95749: missing update when normal node changesJacques Lucke
This node is a bit of a weird case, because it uses the value stored in an output socket as an input. So when we want to determine if the Dot changed, we also have to check if the Normal output changed. A cleaner solution would be to refactor this by either storing the normal on the node directly (instead of in an output socket), or by exposing it by a separate input. This refactor should be done separately though.
2022-02-13Cleanup: Clang tidyHans Goudey
Use using instead of typedef, remove redundant string init, use "empty", address qualified auto, use nullptr.
2022-02-13Cleanup: Optimize gl query code pathJesse Yurkovich
Currently whenever gl queries are performed for the viewport, a large 1024 byte array is allocated to store the query results (256 of them). Unfortunately, if any gizmo using a `draw_select` callback is active (e.g. the transform gizmos), these queries (and allocations) will occur during every mouse move event. Change the vector to allow for up to 16 query results before making an allocation. This provides enough space for every built-in gizmo except Scale Cage (which needs 27 queries). It also removes unnecessary allocations from two other related vectors used during query processing. Differential Revision: https://developer.blender.org/D13784
2022-02-12Fix (unreported): Issues with 'SNAP_NOT_SELECTED' for pose and edit modesGermano Cavalcante
This is a regression partially introduced in rB0a6f428be7f0. Bones being transformed into edit mode were snapping to themselves. And the bones of the pose mode weren't even snapping. (Curious that this was not reported).
2022-02-12Fix T94860: GPencil - Avoid drift in Sculpt when mouse/pen is not movedAntonio Vazquez
This fix avoid the drif checking if the previous position is equals to new one, in this case, the pen has not moved and can be canceled. Differential Revision: https://developer.blender.org/D13870
2022-02-11UI: Improve node drop shadowLeon Schittek
Improve the nodes' drop shadow by making it scale with the view and replace the loop for the alpha calculation with something more explicit. The amount of drop shadow softness was scaled with the zoom level and therefore had a fixed screen space size. DPI and UI scale weren't taken into account either. This patch fixes both issues by basing the shadow softness on the `widget_unit` that scales correctly in zoomable views and takes UI scale etc. into account. Differential Revision: https://developer.blender.org/D13356
2022-02-11Fix (studio-reported) liboverrides potential infinite loop in hierarchy root ↵Bastien Montagne
doversion. Drivers make it way too easy to create dependenciy loops between IDs, so need to use the same trick as in other dependency-following code in this file to prevent those infinite loops. hard to predict for sure how bad of a hierarchy root this can end up producing, but in general cases think this should be OK.
2022-02-11LibOverride: Add partial resync.Bastien Montagne
Reduce compute effort of liboverrides resync process by only re-syncing the parts of the override hierarchy that actually need it. The main change compared to existing code (which was systematically resyncing a whole override hierarchy), is that resyncing now operates over several sub-hierarchies at once, each defined by their own 'resync root' ID. This ensures that we do not get several new overrides for the same data inside of the same hierarchy. Implements T95682. Differential Revision: https://developer.blender.org/D14079
2022-02-11Remap multiple items in referenced data.Jeroen Bakker
This patch increases the performance when remapping data. {D13615} introduced a mechanism to remap multiple items in a single go. This patch uses the same mechanism when remapping data inside ID datablocks. Benchmark results when loading the village scene of sprite fright on AMD Ryzen 7 3800X 8-Core Processor Before this patch 115 seconds When patch applied less than 43 seconds There is still some room for improvement by porting relink code. Reviewed By: mont29 Maniphest Tasks: T95279 Differential Revision: https://developer.blender.org/D14043
2022-02-11Helper functions for IDRemapper.Jeroen Bakker
Adds helper functions to debug IDRemapper data structure. `BKE_id_remapper_result_string` converst a given IDRemapperApplyResult to a readable form for logging purposes. `BKE_id_remapper_print` prints out the rules inside a IDRemapper struct.
2022-02-11Merge remote-tracking branch 'origin/blender-v3.1-release'Kévin Dietrich
2022-02-11Fix T95698: deadlock with GPU subdivisionKévin Dietrich
Multithreaded tasks have to be isolated when holding a mutex, which was missing for the generation of the subdivision wrapper.
2022-02-11Cleanup: add descriptions to the IDRemapperApplyOptions.Jeroen Bakker
2022-02-11Merge branch 'blender-v3.1-release'Peter Kim
2022-02-11Fix excessive re-creation of VR viewport texturesPeter Kim
Due to the freeing and re-creation of textures performed when binding offscreen viewports, VR viewport textures would be needlessly re-created every drawing iteration, leading to a negative impact on VR frame rate. This was brought to light by 6738ecb64e8b, which introduced an additional texture clear operation on initialization and was prohibitively costly on some systems when performed every frame. Now, the textures for VR viewports will not be always re-created during offscreen binding, but only when necessary using a pre-drawing step (`wm_xr_session_surface_offscreen_ensure()`). Reviewed By: jbakker, fclem Differential Revision: https://developer.blender.org/D14059
2022-02-11Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-11Geometry Nodes: show indicator when realize instances node is in legacy modeJacques Lucke
For the majority of node groups created in Blender 3.0 the behavior does not change. So far we only found a single file where this setting has an effect. Differential Revision: https://developer.blender.org/D14078
2022-02-11Fix compile warnings.Jeroen Bakker
We should change the API of ntree so we can check with a const. I added this as a todo for now and used a const cast.
2022-02-11Refactoring of `BKE_library_id_can_use_idtype` to use filter_id.Jeroen Bakker
For an upcoming project we would want to match multiple id types in a single go. To not replicate the implementation using other types we introduce `BKE_library_id_can_use_filter_id` that returns all supported types as a filter. Not all ID types have a filter_id (ID_LI, ID_KE, ID_SCR) These exceptions are not available in the filter_id function. Reviewed By: mont29 Maniphest Tasks: T95279 Differential Revision: https://developer.blender.org/D14061
2022-02-11File headers: manually convert files to use SPDX headersCampbell Barton
Also add BSD-2-Clause to SPDX license list.
2022-02-11File headers: add missing copyright, add MIT to SPDX licensesCampbell Barton
2022-02-11File headers: add license to Python scriptsCampbell Barton
2022-02-11File headers: use SPDX for Zlib licenseCampbell Barton
2022-02-11Cleanup: remove white-space before headersCampbell Barton
2022-02-11Cleanup: Remove unused mesh mask definitionsHans Goudey
Maintaining and understanding these can be a burden, so the fewer we have, the better. These particular masks haven't been used for years.
2022-02-11Revert "Split Python OBJ importer and exporter, enabling only the importer."Howard Trickey
This reverts commit ff9dc1986e6c9a54fd0bb228e8813551e6baa042.
2022-02-11Revert "Split Python OBJ importer and exporter, enabling only the importer."Howard Trickey
This reverts commit ff9dc1986e6c9a54fd0bb228e8813551e6baa042.
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2022-02-11Cleanup: clang-formatCampbell Barton
2022-02-11Cleanup: Clang tidyHans Goudey
Mismatched parameter names and else after return.
2022-02-11Fix: Missing changes in recent "Curves" renameHans Goudey
More missing changes in fe1816f67fbc6aaf3. This will hopefully fix a Python API docs build error, and fixes the "Object Types Visibility" popover.
2022-02-11Merge branch 'blender-v3.1-release'Henrik Dick
2022-02-11Fix: Enable edge bevel weight in solidify if neededHenrik Dick
Complex Solidify creates edge bevel weights on the rim if the according vertex has some vertex bevel weight. If there are no edge bevel weights, they were left disabled even if vertex bevel weights are used.
2022-02-11Fix: Bevel vertex didn't use weights in some casesHenrik Dick
Bevel Vertices did not use vertex/bevel weights if the Width Type was set to Width or Depth.
2022-02-10Fix: Incorrect size used for reading curves dataHans Goudey
Copy and paste mistake in fe1816f67fbc6aaf383ec
2022-02-10Merge branch 'blender-v3.1-release'Hans Goudey
2022-02-10Fix T95458: Line art ignores curve objects with no evaluated meshHans Goudey
Some curve objects don't have an evaluated mesh at all, but line art currently assumes that all curve objects have one before converting it to a mesh internally. Fix this by checking if the curve object has an evaluated mesh before skipping it. The remaining problem is that evalauted from non-mesh objects or evaluated curves from non-curve objects, etc. will be ignored if "Allow Duplicates" is off. That's a different problem though. Differential Revision: https://developer.blender.org/D14036