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-11Add support for XrSession (untested).temp-xr-virtual-camera-experimentJeroen Bakker
2022-11-11Revert incorrect change.Jeroen Bakker
2022-11-11Rename to virtual monitor.Jeroen Bakker
2022-11-11Fix corrupt rv3d.Jeroen Bakker
2022-11-09First setup of rv3d.Jeroen Bakker
2022-11-09Fixed using correct texture.Jeroen Bakker
2022-11-09Use Material flag to identify virtual camera.Jeroen Bakker
2022-11-09Add GPU debugging group.Jeroen Bakker
2022-11-02Initial implementation of 2 stage drawing.Jeroen Bakker
2022-11-02First iteration of a virtual camera node.Jeroen Bakker
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-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.
2022-11-01CMake/MSVC: Disable ASAN for developer buildsRay Molenkamp
ASAN is more often broken than working depending on the MSVC version you have. As it is causing too many support incidents of people that unknowingly turned ASAN on by running `make developer` and running into issues starting blender due to the broken ASAN support in MSVC. This commit changes the default not enable it for MSVC in the developer profile. Devs that still want to enable it can do so though turning WITH_COMPILER_ASAN on in their CMakeCache.txt or by running `make developer asan`
2022-11-01Fix T102018: find HIP library also in system library paths on LinuxBrecht Van Lommel
Previously it would use a hardcoded location where the AMD driver installs it, but Linux distributions may use other locations. Now look for both cases.
2022-11-01UI/Nodes: Update node add menu as assets get loadedJulian Eisel
Adds a listener to the node add menu so that it refreshes as assets get loaded asynchronously. Followup to cf985180551d, also see 99e5024e97f1 and the previous commit.
2022-11-01UI: Support C defined menu types to listen to notifiersJulian Eisel
Needed to dynamically load assets as menu items, see cf985180551d and 99e5024e97f1. The next commit will add the listener for the node add menu.
2022-11-01USD IO: replace deprecated primvars API.Michael Kowalski
Updated the code to use the UsdGeomPrimvarsAPI class to read and write mesh primvars instead of the now deprecated primvars accessors in UsdGeomImageable. This will be required to build with USD 22.11 in the future, where the deprecated functions have been removed.
2022-11-01UI: Support refreshing menu popupsJulian Eisel
This allows us to asynchronously load items into the menu, see cf985180551d. All menus spawned from Python using the `wm.call_menu` operator will be affected by this. We could avoid that and only refresh the menu we need to, but it's worth trying to get this to work as a general menu feature. This is a slightly risky change, so keeping an eye open for bugs.
2022-11-01Nodes: Add node group assets in add menuHans Goudey
This patch builds on the work from bdb57541475f to add node group assets directly in the node editor add menu. Assets are added after separators to distinguish them, but otherwise they look like any other node. The catalog trees from all configured libraries are used to build the menu hierarchy. Only catalogs with matching asset types are used though. There are a few limitations of this initial version. For now this only supports geometry nodes. Support for other built-in node systems just requires some refactoring of the corresponding add menu though. Lazy loading will be added in a followup commit. For now there is a label the first time the menu is opened. Like the search menu integration, re-saving asset library files in 3.4 is required, if it hasn't been done already. Implementation wise, there is a some ugly code here. A lot of that is because the asset system isn't complete. The RNA API doesn't work well yet, and the system isn't built to interact with multiple libraries at once. It's also ugly because of the way we combine automatic menu generation with builtin menus. As noted in a code comment, these two systems could be merged completely so that the menus for builtin nodes are also generated in the same way. Differential Revision: https://developer.blender.org/D16135
2022-11-01USD tests: replace deprecated imaging code.Michael Kowalski
UsdImagingCapsuleAdapter static functions GetMeshPoints() and GetTopology() have been removed in USD 22.11. In anticipation of this upcoming change, I've updated the test code to call the corresponding virtual functions instead.
2022-11-01Cleanup: Use bool for binary (true-ish/false-ish) return valueJulian Eisel
2022-11-01Build: bump expat version to 2.5.0 to address CVE-2022-43680Brecht Van Lommel
2022-11-01Fix T101062: sculpt curves crash using a paintcurve brushPhilipp Oeser
For one, paintcurves were not considered in curves sculpt mode at all (so you couldnt draw them). This is now enabled. And the second issue was that since curves sculpt mode uses the reguar paint_stroke_modal() [which handles paintcurves], this was actually excuted, freeing the PaintStroke from SculptCurvesBrushStrokeData (but not the CurvesSculptStrokeOperation) and immediately return OPERATOR_FINISHED from modal (resulting in a double MEM_delete of SculptCurvesBrushStrokeData -- in both invoke and modal). There might be better ways to handle the memory free, for now the double freeing is prevented by setting the operator customdata to NULL (and check for that later). Maniphest Tasks: T101062 Differential Revision: https://developer.blender.org/D16099
2022-11-01Command line: Tweaked doc of --gpu-backend.Jeroen Bakker
There was a trailing ')' without any '(' in the generated documentation.
2022-11-01Update OCLOC version used on WindowsSergey Sharybin
This only affects Windows since Linux uses pre-compiled OCLOC version.
2022-11-01Refactor: Rename Object->obmat to Object->object_to_worldSergey Sharybin
Motivation is to disambiguate on the naming level what the matrix actually means. It is very easy to understand the meaning backwards, especially since in Python the name goes the opposite way (it is called `world_matrix` in the Python API). It is important to disambiguate the naming without making developers to look into the comment in the header file (which is also not super clear either). Additionally, more clear naming facilitates the unit verification (or, in this case, space validation) when reading an expression. This patch calls the matrix `object_to_world` which makes it clear from the local code what is it exactly going on. This is only done on DNA level, and a lot of local variables still follow the old naming. A DNA rename is setup in a way that there is no change on the file level, so there should be no regressions at all. The possibility is to add `_matrix` or `_mat` suffix to the name to make it explicit that it is a matrix. Although, not sure if it really helps the readability, or is it something redundant. Differential Revision: https://developer.blender.org/D16328
2022-11-01Fix compilation error on Windows.Jeroen Bakker
Missing return statement in recent commit. Code is disabled by default, so might not have been noticed.
2022-11-01Fix T102194: unhandled number keys on AZERTY layout under WaylandCampbell Barton
Support layouts such as AZERTY where the shift key is held for number keys. Text entry remains unchanged but these keys now activate shortcuts as expected. This matches a fix in X11 for the same problem: T47228.
2022-11-01CMake: mark Wayland variables advancedCampbell Barton
2022-11-01Cleanup: spelling in commentsCampbell Barton
2022-11-01Cleanup: doxy comment formattingCampbell Barton
2022-11-01Cleanup: disambiguate naming for Wayland surfacesCampbell Barton
Name surfaces for their use.
2022-11-01GHOST/Wayland: support for multiple seats (one active seat at a time)Campbell Barton
This isn't full multi-seat support, instead set the active seat using pointer/tablet & keyboard enter handlers. This means that seats beside the first aren't prevented from having their events handled.
2022-11-01Cleanup: fix translation for rare UV unwrapping with unit scaleChris Blackbourn
Fixes very rare cases where the UV Cylinder Project, UV Sphere Project and UV From View might not set the translation correctly if the scale is exactly 1.0. Mainly fixed because this code might later be reused elsewhere.
2022-11-01deps: openPGL 0.4.1-betaRay Molenkamp
2022-10-31Build: ignore more CVEs from tiff command line tools that we don't useBrecht Van Lommel
2022-10-31Fix bpy wheel on buildbot being incomplete on WindowsBrecht Van Lommel
Need to explicitly install __init__.pyd for the case where the install folder is different than the build folder.
2022-10-31Fix bpy wheel build error on Windows, where there are no abi flagsBrecht Van Lommel
2022-10-31Geometry Nodes: Use attribute API in deform curves on surface nodeHans Goudey
Retrieve the surface UV coordinates with the attribute API instead of the helper function. This allows more flexibility of data types (and domains), which is helpful especially because geometry nodes can't write 2D vectors yet.
2022-10-31Nodes: Improve socket node lookup performanceHans Goudey
Use the newly added node topology cache to find the node that contains a socket rather than looping through all nodes every time. The change improves performance of drawing a some large node trees by 2-3x.
2022-10-31GPU: Add placeholder for Vulkan backend.Jeroen Bakker
This patch adds a placeholder for the vulkan backend. When activated (`WITH_VULKAN_BACKEND=On` and `--gpu-backend vulkan`) it might open a blender screen, but nothing should be visible as none of the functions are implemented or otherwise crash on a nullptr. This is expected as this is just a placeholder. The goal is to add shader compilation +validation to this backend as one of the next steps so we can validate changes to existing shaders on OpenGL, Metal and Vulkan at the same time. Reviewed By: fclem Differential Revision: https://developer.blender.org/D16338
2022-10-31Fix variable value assigned twice in successionGermano Cavalcante
Error introduced in rBa7aa0f1a0c24 Mentioned in https://pvs-studio.com/en/blog/posts/cpp/1004/ It could cause the absolute snap to the y direction to fail in some editor.
2022-10-31BLI_path: only operate on native path slashes for BLI_path_name_at_indexCampbell Barton
Prefer using the native path separator for low level path functions.