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-11-03Fix T102221: Entering editmode invalidates the driver associated with that meshSergey Sharybin
The regression is caused by D13824 0f89bcdbebf5. This fix follows the code from Sybren (D7785) to make object-mode drivers from shapekey value to work. This intuitively makes sense since the D13824 made the edit mode evaluation and ownership follow the object mode more closely. Differential Revision: https://developer.blender.org/D16380
2022-11-03Merge remote-tracking branch 'origin/master' into tmp-vfx-platform-2023Ray Molenkamp
2022-11-03deps: USD 21.11Ray Molenkamp
also small patch to OpenVDB due to USD (C++14) and OpenVDB(C++17) running into trouble together.
2022-11-03Fix Wayland warning on startup when running X11Brecht Van Lommel
On Ubuntu 20.04 running X11, there was this message on every Blender startup: Unable to find 'wl_proxy_marshal_flags' in 'libwayland-client.so.0'. The reason is that we build against Wayland protocols 1.21, which in turns requires Wayland on the distribution to be 1.21+, which is not the case on Ubuntu 20.04. This simply silences the warning. An improvement would be to explain the user that their Wayland version is too old when neither X11 or Wayland can be found. Though that's not trivial and a situation with old Wayland and no XWayland seems unlikely to happen in practice. Differential Revision: https://developer.blender.org/D16266
2022-11-03Fix deprecation warnings in FFmpeg related codeSergey Sharybin
The non-deprecated API dates back to 2017, so it should be safe to simply migrate to it. Fixes verbose error prints, making it easier to see actual issues. Differential Revision: https://developer.blender.org/D16370
2022-11-03Cycles: Remove use of sprintf() in MD5 codeSergey Sharybin
The new Xcode declares the `sprintf()` function deprecated and suggests to sue `snprintf()` as a safer alternative. This change actually moves away from any formatted printing and uses inlined byte-to-hex-string conversion which is also safe and is (unmesurably) faster. Differential Revision: https://developer.blender.org/D16378
2022-11-03Merge branch 'blender-v3.4-release'Sergey Sharybin
2022-11-03Fix T102225: Crash opening menusSergey Sharybin
Seems to be introduced by 99e5024e97f. The crash is caused by the difference in the expected alignment of the `uiPopupMenu` which is 16 bytes and the actual alignment returned by the `MEM_mallocN()` which is 8 bytes due to the memory head. Now made it so that `MEM_new()` can be used for types with any alignment. Differential Revision: https://developer.blender.org/D16375
2022-11-03Revert "Blender 3.4 - Beta"Thomas Dinges
This reverts commit 666135c32af3032d1e6c62ee953d65f399da7d0f.
2022-11-03Merge branch 'blender-v3.4-release'Thomas Dinges
2022-11-03Blender 3.5 Alpha: Start of new release cycle.Thomas Dinges
2022-11-03Blender 3.4 - BetaThomas Dinges
* BLENDER_VERSION_CYCLE set to beta * Update pipeline_config.yaml to point to 3.2 branches and svn tags * Update and uncomment BLENDER_VERSION in download.cmake
2022-11-03CMake: workaround unsupported cmake_path(IS_PREFIX ..) in v3.20Campbell Barton
Add a macro that implements something similar to cmake_path's IS_PREFIX which isn't supported in older versions of CMake. This caused the build-bot to fail.
2022-11-03BLI_path: skip "/./" and "/." in BLI_path_name_at_indexCampbell Barton
This avoids having to run BLI_path_normalize before calling BLI_path_name_at_index.
2022-11-03Update RNA to User manual mappingsAaron Carlisle
2022-11-03Cleanup: replace BLI_join_path with BLI_join_stringCampbell Barton
There is no need to use path joining logic here.
2022-11-03BLI_string: C++ support for string joining macrosCampbell Barton
C++ doesn't support taking the temporary address of a temporary array, use inline functions instead. Also change array joining functions to return the length of the string instead of returning the pointer (matching BLI_path_join).
2022-11-03PyDocs: Upgrade Theme to 1.1.0Aaron Carlisle
Updates to kbd and breadcrumbs along with some fixes to API docs that should'nt affect us.
2022-11-03PyDocs: Upgrade Sphinx to 5.3.0Aaron Carlisle
Trivial changes, should not affect us in anyway.
2022-11-03UI: Bevel: Specify the width type as "Width Type" in the status bar.Aaron Carlisle
Part of T102224
2022-11-03Cleanup: cmake comment line lengthCampbell Barton
2022-11-03Tests: don't create byte-code cache when calling Python from SVNCampbell Barton
Creating `__pycache__` directories in SVN's lib/ directory can cause updating SVN to fail. Add the -B flag when TEST_PYTHON_EXE from LIBDIR is used so so Python doesn't generate this cache.
2022-11-03Mesh: Parallelize remesh reprojectionsErik Abrahamsson
In high poly meshes the reprojections after remesh can become slow. This parallelizes reprojection of face sets, paint mask and vertex paint. It also adds flags to disable dependency graph updates on setting remesh options to remove UI lag. Profiling of remeshing a 3.4M poly mesh (in sculpt mode): Before: 19.6s After: 8.7s Differential Revision: https://developer.blender.org/D15638
2022-11-03deps: openvdb 10.0.0Ray Molenkamp
2022-11-02USD export: fix curve widths calculation.Michael Kowalski
Now multiplying the curve radius values by the bevel radius when calculating curve widths. Change authored by Charles Wardlaw.
2022-11-02deps_builder: opensubdiv 3.5.0Ray Molenkamp
2022-11-02USD import: replace deprecated shape import code.Michael Kowalski
The static functions GetMeshPoints() and GetTopology() have been removed from the adapter classes in USD 22.11. In anticipation of this change, the code was updated to call the corresponding virtual functions instead. Change authored by Charles Wardlaw.
2022-11-02Fix empty menu title in some menus (e.g. Text Editor context menu)Julian Eisel
2022-11-02Fix arrow key menu navigation using wrong directionJulian Eisel
Steps to reproduce were: * Right click in 3D View (context menu) press up or down arrow. Or: * Ctrl+Shift+O (Open Recent menu) press up or down arrow.
2022-11-02Fix memory leak with Freestyle renders after recent changesBrecht Van Lommel
Render stored a shallow copy of the scene view layers and views for thread safety, without proper functions to free it. But with the CoW depsgraph this scene is already a copy of the original and an additional copy is not needed. Refactor to use the scene view layers and some other settings directly instead of making a copy.
2022-11-02Cycles: Add regression test for util_md5_stringSergey Sharybin
2022-11-02Refactor: Rename Object->imat to Object->world_to_objectSergey Sharybin
The goal is to improve clarity and readability, without introducing big design changes. Follows the recent obmat to object_to_world refactor: the similar naming is used, and it is a run-time only rename, meaning, there is no affect on .blend files. This patch does not touch the redundant inversions. Those can be removed in almost (if not all) cases, but it would be the best to do it as a separate change. Differential Revision: https://developer.blender.org/D16367
2022-11-02Fix: Crash adding rest positions to empty meshHans Goudey
The position attribute might not exist when the mesh is empty, which may be another problem, but there is no need to count on it here.
2022-11-02Realtime Compositor: Move shaders to compositor moduleOmar Emara
This patch moves the GLSL shaders and their infos to the compositor module as decided by the EEVEE & Viewport module. This is a non functional change. Differential Revision: https://developer.blender.org/D16360 Reviewed By: Clement Foucault
2022-11-02Realtime Compositor: Make vectors four dimensionalOmar Emara
Currently, the realtime compositor treat vector types as 3D vectors, which is true for most operations. However, some operations deal with vector types as 4D vectors that encode two 2D vectors or one 3D vector with the last component ignored. So this patch expands vector types to include a fourth component that is only sometimes used. Since we already stored vectors in RGBA textures, the necessary changes are straightforward and are mostly concerned with adjusting the Result class. Differential Revision: https://developer.blender.org/D16359 Reviewed By: Clement Foucault
2022-11-02Nodes: Reuse input sockets when creating new node groupsCsaba Boncsér
**Problem** Currently multiple input sockets are created when a new node group is made from selected nodes. Some of these are linked from the same source. It is not convenient to sort out and remove multiple input sockets that represent the same input. These inputs usually have meaningless names like 'value', 'x', etc. **Solution** Create common input sockets for each link starting from the same input. Move links inside the new group's node tree and reroute it to connect the common input socket to the original nodes. This is done by building up a mapping between the incoming link sources to the input interfaces created for them. The input interfaces are reused by the rest of the links having the same source. This patch also changes the way the input sockets get their names. Output socket names of the group nodes usually are specific and are given consciously. Use the output socket names from group nodes instead of the inputs where the links point to. Differential Revision: https://developer.blender.org/D15802
2022-11-02Geometry Nodes: Add index and value inputs to sample curve nodeHans Goudey
As described in T92474 and T91650, this patch adds two features to the sample curve node. First is an index input, to allow choosing the curve to sample for each point. Second is a custom field input, which is evaluated on the control points of the curve and then sampled like the other outputs. There is an "All Curves" option for the old behavior which takes the length of all curves into account. For invalid curve indices, the node outputs zeros (default values). Invalid lengths and factors are clamped. There have been various discussions about splitting the node up more, but this is an intuitive combination of options and will work well enough for current use cases. The node could still be generalized more in the future. Keep in mind that the source field is evaluated on curve control points, not the evaluated points used for sampling. This is necessary so that fields like "Index" work as expected. Differential Revision: https://developer.blender.org/D16147
2022-11-02Fix use-after-free in asset library storage destructionJulian Eisel
Would only appear when more than 4 asset libraries were loaded, because small buffer optimization would hide the issue.
2022-11-02Fix BLI_path_parent_dir returning success with a single period as inputCampbell Barton
While relatively harmless, BLI_path_parent_dir wasn't returning failure when passed in "./" which wouldn't succeed. Instead of adding a ".." and normalizing, normalize the path and remove the last directly. This is simpler than inspecting the resulting path to see if normalize removed it or not. Add additional tests which failed previously.
2022-11-02Tests: enable path tests for WIN32Campbell Barton
Tests for BLI_path_normalize, BLI_path_parent_dir & BLI_path_rel were disabled on WIN32 because of complications with slash direction. Enable these tests using character replacement to manipulate test data.
2022-11-02cmake: support ocio 2.2.0 on windowsRay Molenkamp
small changes in libnames and an extra new dependency.
2022-11-02deps_builder: OpenColorIO 2.2.0Ray Molenkamp
Also required updates for yamlcpp from 0.6.3 to 0.7.0 and a new mandatory dependency minizip-ng 3.0.7
2022-11-02Merge remote-tracking branch 'origin/master' into tmp-vfx-platform-2023Ray Molenkamp
2022-11-02Cleanup: use doxy sections for path testsCampbell Barton
2022-11-02Fix T102201: File selector shows "\" before folder names on WIN32Campbell Barton
Regression in [0] on WIN32 caused joining paths {"//", "path"} to result in "//\path". This made the file selector show paths with a "\" prefix. Add an exception for WIN32 where an initial path of forward slashes is joined without a back-slash. [0]: 8f7ab1bf46d5e8610b167180b7631ff62e718a08
2022-11-02Cleanup: formatCampbell Barton
2022-11-02Cleanup: spelling in commentsCampbell Barton
2022-11-01Fix BLI_path_parent_dir failing on paths ending with ".."Campbell Barton
The check for BLI_path_normalize having succeeded only checked for a trailing "../" which isn't correct. This caused going up a directory in the file selector to do nothing on directories ending with "..". This also caused an empty path to expand into "../" because BLI_path_extension_check didn't account for this case. Resolve using BLI_path_name_at_index which extracts the last component of the path without having to match the the surrounding slashes.
2022-11-01Fix BLI_path_normalize failing with "." and ".." in the pathCampbell Barton
The logic to go up a directory (using "..") ran before stripping "/./" from the path. This caused "/a/b/./../" to result in "/a/b/" instead of "/a/". Now redundant characters are removed before before checking for ".." in paths. Include test to ensure this works as expected.
2022-11-01Tests: add BLI_path_parent_dir tests, split BLI_path_normalize testsCampbell Barton
Also enable a test that was disabled with a fix FIXME comment but works.