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-09-12Attributes: Add function to retrieve span without adding attributeHans Goudey
Previously, the only versions of attribute access that gave a span would also add the attribute when it doesn't exist, which isn't always wanted.
2022-09-12Merge remote-tracking branch 'origin/blender-v3.3-release'Sybren A. Stüvel
2022-09-12Fix T100918: change min value for NLAStrip startThibault de Villèle
The bug was contained in BKE/intern/nla.c, where the wrong macro was used as the minimum frame value. Instead of `MINAFRAMEF`, `MINFRAMEF` was used (the former is around -10k, the latter is 0, both fp32). Differential Revision: https://developer.blender.org/D15940
2022-09-12Fix macOS incomplete Python install after recent changesBrecht Van Lommel
After 2c23b4e0bff0 the meaning of PYTHON_LIBPATH changed.
2022-09-12UI: Cleanup/Fixes of some UI messages.Bastien Montagne
2022-09-12Fix T100999: GPencil Copy paste stroke(s) does not respect autokeyingAntonio Vazquez
The operator was not checking the status of the Autokey button.
2022-09-12Fix T100851: Sync markers does not work for numinputPhilipp Oeser
special_aftertrans_update would always use TransInfo values (not the values_final -- we need the final values to follow numinput, snapping, etc). Maniphest Tasks: T100851 Differential Revision: https://developer.blender.org/D15893
2022-09-12Cleanup: Remove unused DerivedMesh functionsHans Goudey
2022-09-12Fix T100874: improve uv unwrap of degenerate geometryChris Blackbourn
Provide reasonable defaults for UV unwrap for triangles with zero area: * Three vertices are arranged in a line. * Two vertices are at the same 3D location. * All three vertices are at the same 3D location. Change fixes quads / ngons which have triangulations with zero area. Change fixes both "Angle Based" method and "Conformal" method. Differential Revision: https://developer.blender.org/D15922
2022-09-12Cleanup: remove unused ImBuf.next/prev pointersCampbell Barton
2022-09-12Cleanup: replace BLI_snprintf with BLI_path_joinCampbell Barton
Also use a larger buffer to account for the unlikely case of the buffer not being big enough for the appended directories.
2022-09-12Tests: add tests for leading (relative) slashes for BLI_path_joinCampbell Barton
Also note that leading slashes are kept in the doc-string.
2022-09-12UV: support uv seams when computing uv islandsChris Blackbourn
An edge can be marked BM_ELEM_SEAM, which means the UV co-ordinates on either side of the edge are actually independent, even if they happen to currently have the same value. This commit optionally add support for UV Seams when computing islands. Affects UV sculpt tools, individual origins, UV stitch and changing UV selection modes etc. Required for upcoming packing refactor which requires seam support when computing islands. Differential Revision: https://developer.blender.org/D15875
2022-09-11Fix T100974: Remesh operators reset mesh propertiesHans Goudey
Caused by 21f2bacad977d3fd8 which copies a few more values to the original meshes from the "nomain" meshes. The "nomain" meshes created from the originals need to copy some values as well.
2022-09-10Apply formatting, remove unneeded changes.Monique
2022-09-10Adding `const Scene*` parameter in many areas.Monique
Related to {D15885} that requires scene parameter to be added in many places. To speed up the review process the adding of the scene parameter was added in a separate patch. Differential Revision: https://developer.blender.org/D15930
2022-09-10GPencil: New Set Start point operatorAntonio Vazquez
This operator allows to set the start point for any cyclic stroke. This is very handy to fit interpolation issues or use thickness modifier. Note: There is small change in this commit to fix a typo error in the name of the operator. Reviewed By: mendio, frogstomp Maniphest Tasks: T100827 Differential Revision: https://developer.blender.org/D15881
2022-09-10Python: on macOS, stop requiring framework for building bpy moduleBrecht Van Lommel
Build against Python from precompiled libraries by default, instead of requiring framework from python.org package install. The resulting bpy module can still be used with any Python install of the same version. Use the same CMake find module as Linux. This simplifies code, and makes it possible to manually set PYTHON_* variables in CMake configuration. Remove WITH_PYTHON_FRAMEWORK option for regular Blender build, as this doesn't work well due to missing required Python packages. Advanced users can still set PYTHON_ROOT_DIR=/Library/Frameworks/Python.framework/Versions/3.10 for the same result.
2022-09-10Cleanup: replace strncpy with BLI_strncpyCampbell Barton
Also replace strncpy+strcat with BLI_string_join
2022-09-10Cleanup: remove unnecessary strcat useCampbell Barton
2022-09-10WM: update comment for wm_autosave_location auto-save fallbackCampbell Barton
2022-09-10BKE_appdir: add function attributesCampbell Barton
2022-09-10Fix possible NULL pointer dereference in bookmark operatorsCampbell Barton
Although unlikely, the result of BKE_appdir_folder_id_create may be NULL. Check this for bookmark operators & move writing bookmarks into a shared utility function.
2022-09-10Cleanup: remove redundant NULL checksCampbell Barton
Checking if a property exists only makes sense for generic callbacks that apply to multiple operators.
2022-09-10Cleanup: spelling in commentsCampbell Barton
2022-09-10Cleanup: early return when directories can't be foundCampbell Barton
Also reduce variable scope and assert when an invalid argument is passed to BKE_appdir_folder_id_create.
2022-09-10Fix: Missed return in ASSET_OT_bundle_install item enumeratorJesse Yurkovich
Discovered from inspection. Differential Revision: https://developer.blender.org/D15699
2022-09-10Mesh: Avoid saving redundant generic material index attributeHans Goudey
This attribute is still read and written in the legacy format which puts it inside of `MPoly`. Missed in f1c0249f34c4171ec.
2022-09-10PyGPU: expose 'GPU_SHADER_3D_IMAGE_COLOR'Germano Cavalcante
This shader is required by some addons that need to modulate the alpha of images.
2022-09-09Merge branch 'master' into temp-T73411-add-scene-parametersJeroen Bakker
2022-09-09Add scene parameterMonique
2022-09-09Mesh: Move bevel weight out of MVert and MEdgeHans Goudey
As described in T95966, the goal is to move to a "struct of arrays" approach rather than gathering an arbitrary set of data in hard-coded structs. This has performance benefits, but also code complexity benefits (this patch removes plenty of code, though the boilerplate for the new operators outweighs that here). To mirror the internal change, the options for storing mesh bevel weights are converted into operators that add or remove the layer, like for some other layers. The most complex change is to the solidify modifier, where bevel weights had special handling. Other than that, most changes are removing clearing of the weights, boilerplate for the add/remove operators, and removing the manual transfer of bevel weights in bmesh - mesh conversion. Eventually bevel weights can become a fully generic attribute, but for now this patch aims to avoid most functional changes. Bevel weights are still written and read from the mesh in the old way, so neither forward nor backward compatibility are affected. As described in T95965, writing in the old format will be done until 4.0. Differential Revision: https://developer.blender.org/D14077
2022-09-09Cleanup: Simplify BKE_mesh_nomain_to_meshHans Goudey
- Remove "take ownership" argument which was confusing and always true - The argument made ownership very confusing - Better to avoid boolean arguments that switch a function's purpose - Remove "mask" argument which was basically wrong and not used properly - "EVERYTHING" was used because developers are wary of removing data - Instead use `CD_MASK_MESH` for its purpose of original mesh data - Remove use of shallow copied temporary mesh, which is unnecessary now - Split shape key processing into separate functions and use C++ types - Copy fields explicitly rather than using memcpy for the whole struct - Use higher level functions and avoid redundant code - The whole idea is pretty simple and can be built from standard logic - Adjust `CustomData` logic to be consistent with "assign" expectations - Clear the layer data from the source, and moves the anonymous ID Differential Revision: https://developer.blender.org/D15857
2022-09-09Subdiv: Avoid quadratic runtime for loose edgesHans Goudey
Currently, when subdividing every single vertex on every loose edge, Blender iterates over all other edges to find neighbors. This has quadratic runtime and can be very slow. Instead, first create a map of edges connected to each vertex. With about 10000 edges, the performance goes from very slow to very smooth in my tests. Because of the nature of quadratic runtime, the improvement will depend massively on the number of elements. The only downside to this is that the map will still be built when there are only a couple loose edges, but that case is probably not so common. Differential Revision: https://developer.blender.org/D15923
2022-09-09Cleanup: remove BLI_make_file_stringCampbell Barton
This function did multiple things making it difficult to know what was intended by the caller: - Directory & file join. - Expand relative '//' prefix to an optional directory. - Expand drive letters on windows (guessing with fall-backs). - Switch slashes to native direction. This functionality wasn't needed as the full directory was always passed in, so guessing the drive letter wasn't needed. If functionality to add drive letters onto paths is needed in the future a function that only does this can be added.
2022-09-09Correct error building on WIN32Campbell Barton
Mistake in f7a4ede79f9512f39db8632ff112e08a93f3a9d4.
2022-09-09Cleanup: remove unnecessary use of BLI_make_file_stringCampbell Barton
Use BLI_join_dirfile instead, also reduce right-shift.
2022-09-09Fix use-after-free error when exiting on WIN32Campbell Barton
The logging API was freed before calling wm_autosave_delete that called BKE_appdir_folder_id_create to get the auto-save location (when the temporary directory wasn't found). Detecting BLENDER_USER_AUTOSAVE would log details about the path, which would read data freed by CLG_exit. Resolve by calling CLG_exit last.
2022-09-09Realtime Compositor: Implement bokeh blur nodeOmar Emara
This patch implements the bokeh blur node for the realtime compositor. The patch is still missing the Variable Size option because it depends on the Levels node, which is yet to be implemented. In particular, it requires the computation of global texture properties like the maximum color. Differential Revision: https://developer.blender.org/D15768 Reviewed By: Clement Foucault
2022-09-09Realtime Compositor: Allow inputs to skip realizationOmar Emara
This patch adds support for the skip realization option of the input descriptor. Inputs that request skip realization will not be realized on the operation domain of the operation and will not contribute to its computation, and consequently, they can't be a domain input. An example is the bokeh input of the Bokeh Blur node, which is actually a resource that is decoupled from the rest of the inputs and should not affect or be affected by their domain. Differential Revision: https://developer.blender.org/D15767 Reviewed By: Clement Foucault
2022-09-09Realtime Compositor: Implement scale nodeOmar Emara
This patch implements the Scale node for the realtime compositor. Differential Revision: https://developer.blender.org/D15758 Reviewed By: Clement Foucault
2022-09-09Add scene parameterMonique
2022-09-09Realtime Compositor: Implement blur nodeOmar Emara
This patch implements the blur node for the realtime compositor. The patch is still missing the Variable Size option because it depends on the Erode/Dilate node, which is yet to be implemented. Furthermore, there are a number of optimizations that can be implemented, the most important of which is the IIR implementation of the Fast Gaussian filter, as well as the use of hardware filtering and thread local memory. The latter of which was attempted but was not robust enough, so it will be submitted as separate patch. Differential Revision: https://developer.blender.org/D15663 Reviewed By: Clement Foucault
2022-09-09Nodes: fix memory leakJacques Lucke
2022-09-09Readfile: avoid confusion when debugging a memory leakJacques Lucke
2022-09-09Realtime Compositor: Implement pixelate nodeOmar Emara
This patch implements the pixelate node for the realtime compositor. Differential Revision: https://developer.blender.org/D15662 Reviewed By: Clement Foucault
2022-09-09Fix T100697: Curve nodes change colors at identity settingsOmar Emara
Shader and compositor curve nodes change their inputs even if they are at identity settings. That is because shader and compositor curve nodes evaluate their curve map texture samplers at the normalized input directly, disregarding the fact that the samplers are evaluated using linear interpolation. This causes the output to be slightly different that it should be. This patch remaps the evaluation parameters such that the texture sampler is evaluated at the center of the pixels. Differential Revision: https://developer.blender.org/D15811 Reviewed By: Clement Foucault
2022-09-09Cleanup: readfile: use correct typeJacques Lucke
2022-09-09Cleanup: Remove unused attribute in draw manager.Jeroen Bakker
There are no plans to use the object attribute anymore.
2022-09-09Fix Auto-offset for nodes: Revert "Cleanup: Return early"Dalai Felinto
This "cleanup" commit broke Auto-offset for nodes. This reverts commit e3ef6a6660032ca18af53dd24cd19bf36e56a85c.