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-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.
2022-10-31BLI_path: only operate on native path slashes for BLI_path_joinCampbell Barton
Previously both slashes were considered when joining paths, meaning slashes that were part of the path name could be stripped before joining the path. Prefer using the native path separator for low level path functions, callers can always convert slashes into the expected direction if they need. This also matches BLI_path_append behavior.
2022-10-31make_update: support updating "lib" as a single repositoryCampbell Barton
With a full SVN checkout of "../lib", updating all paths is slower than running an update on the whole repository at once. Also collect paths and run the update in separate passes, this avoids some duplicate checks such as checking the svn command exists.
2022-10-31make_update: add type hintsCampbell Barton
2022-10-31Cleanup: quiet warning building with MSVC (_CONCAT redefined)Campbell Barton
This is defined by a system header (xatomic.h) with MSVC.
2022-10-30Fix T102126 Regression: Grease Pencil: Broken 2D LayeringClément Foucault
This was because `stroke_id` was not using `vertex_start`. But since `vertex_start` is not 1 based like it used to be, we need to add 1 to it to avoid a fragment depth of `0.0` which would be equal to the background and not render.
2022-10-30Fix T102163: GPencil:Set start point Operator make stroke deletedAntonio Vazquez
There were two problems: * The stroke was deleted if the last point was selected. Now the stroke is flipped because is faster. * If the second point was selected, the first point was removed because the internal api, removed one point strokes by default. This was done becaus ethe tools that used this API did not need one point strokes as result. Now this optional and keep one point strokes.
2022-10-30DRW: Manager: Add possibility to record a framebuffer change inside a passClément Foucault
This is a convenience when one needs to often change the current framebuffer and avoid the overhead of creating many Main/Simple passes.
2022-10-30Fix T102160: Regression: GPencil gradient fill not workingClément Foucault
Was caused by uvs not being sourced from the correct buffer.
2022-10-30DRW: Manager: Allow custom draw command in PassMainClément Foucault
This allows using drawcalls with non default vertex range. These calls will be culled like any other instance by the GPU culling pipeline. But they will not be batched together since the vertex range is part of the group.
2022-10-30Cleanup: replace BLI string copy & append with BLI_path_join(..)Campbell Barton
Copying and appending is unnecessarily verbose with each call having to pass in the buffer size.
2022-10-30BLI_path: add BLI_path_append_dir (appends and ensures trailing slash)Campbell Barton
Avoid copying the string then calling BLI_path_slash_ensure afterwards.
2022-10-30Fix potential buffer overflow with BLI_path_slash_ensure useCampbell Barton
BLI_path_slash_ensure was appending to fixed sized buffers without a size check.
2022-10-30Fix T102132: Directory selection fails to add trailing slashCampbell Barton
Regression in [0], accessing the path from the file selector relied on BLI_join_dirfile adding a trailing "/" when the filename was empty. [0]: 9f6a045e23cf4ab132ef78eeaf070bd53d0c509f
2022-10-29make.bat: skip SVN update when running make code_updateRay Molenkamp
regression from rB116d7b0042bba7d6cabd8e04c7d020ac3816caf3
2022-10-29NLA: Push down Action names the Track after the ActionSybren A. Stüvel
When pushing down an Action to a new NLA track, the track is now named after the Action.
2022-10-29Cleanup: use STREQ macroCampbell Barton
2022-10-28Cycles: add Equiangular Cubemap Face camera projectionDamian Trebilco
This can be used for example for VR video formats that use this projection instead of perspective projection for cubemap faces. Differential Revision: https://developer.blender.org/D13525
2022-10-28Cleanup: formatCampbell Barton
2022-10-28Cleanup: quiet unused argument warnings and minor changes in GHOSTCampbell Barton
2022-10-28Fix error in leaving the tablet pointer set under WaylandCampbell Barton
Missed clearing the tablet pointer after updating removing the tablet manager.
2022-10-28GHOST/Wayland: code-commentsCampbell Barton
Note issues with track-pad event handling, add some other notes too.
2022-10-28Fix failure to clear DND in_use in rare cases under WaylandCampbell Barton
If opening a pipe failed, 'data_offer->dnd.in_use' wasn't cleared. Avoid early return where it duplicates logic in an error prone way.
2022-10-28Cleanup: use common prefix for static ghost/wayland variablesCampbell Barton
File level static variable names weren't well distinguished from others. Use `ghost_wl_` prefix for static variables.
2022-10-28GHOST/Wayland: improve code-commentsCampbell Barton
2022-10-28Cleanup: use plain 'char *' for mime types in GHOST/WaylandCampbell Barton
There wasn't much advantage in using C++ native types as all Wayland API's deal with C strings.
2022-10-28Cleanup: move GWL_DataOffer in_use to the 'dnd' structCampbell Barton
It wasn't clear that this is only used for drag & drop, also don't use an atomic type as all access is guarded by the drag & drop mutex.
2022-10-28GHOST/Wayland: postpone reading from the clipboard until neededCampbell Barton
A copy of the clipboard was always being, changes would re-read it. Now read the clipboard on request. This avoids having to keep a copy of the clipboard in memory as well as the need to keep a thread to running to read the clipboard for each data-offer. To prevent a deadlock when pasting from Blender's own clipboard. - Sending the clipboard (using write(..)) runs in a background thread. - Reading the clipboard uses a thread that performs round-trips to the Wayland server to prevent until the read is complete. This is an update to [0] that resolves the deadlock. [0]: c03838dbc8cc4a85cfc93914493a0f1562a53366
2022-10-28GHOST/Wayland: unlock clipboard mutex on failureCampbell Barton
When the Wayland pipe can't be opened, don't leave the mutex locked. Also skip checking wl_data_device_manager when reading from the primary clipboard.
2022-10-28Cycles: fix up logic in oneAPI devices filteringXavier Hallade
CYCLES_ONEAPI_ALL_DEVICES environment variable wasn't working as intended after 305b92e05f748a0fd9cb62b9829791d717ba2d57.
2022-10-27Fix T102085: X11 Startup crashAnton Raves
wl_registry_destroy does not enjoy being fed a null pointer. Added a null check to keep it out of trouble.
2022-10-27GPencil: Fix MSVC warning in lineart_cpp_bridge.ccRay Molenkamp
MSVC give a rather large warning when using blender::parallel_sort without using a lambda for the comparison. Fixed by using a lambda
2022-10-27Fix T102092: GPencil Sculpt Grab crash using Shift keyAntonio Vazquez
There was a problem with the hash table that was not created as expected. Also fixed an unreported memory leak in Grab tool not related to this crash but detected during debug.