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-09-13Fix: Multires crash after recent face set refactorHans Goudey
Missing null check when retrieving face sets for multires automasking. Caused by b5f7af31d6d474c3b455b.
2022-09-12USD IO: fixed compiler warningsMichael Kowalski
2022-09-12Fix T100886: error saving side-by-side stereo EXR image of depth passBrecht Van Lommel
The stereo saving code that combines two image buffers into one did not work correctly when the number of channels is not equal to 4.
2022-09-12Sculpt: Fix T100941: Draw cache invalidation loopJoseph Eagar
PBVH draw was invalidating the draw cache even when disabled (e.g. if modifiers exist).
2022-09-12Cleanup: obj: rename MTLMaterial & MTLTexMapType membersAras Pranckevicius
The members were named after .mtl file syntax ("d") instead of their meaning ("alpha"). In preparation for extending OBJ code for more PBR parameters support, rename them for clarity. No functionality changes, just a pure rename.
2022-09-12Cleanup: Comment formattingHans Goudey
Also include a small cleanup to the previous commit missed from review.
2022-09-12Sculpt: Fix T100608: SCULPT_UNDO_FACE_SETS broken for redoJoseph Eagar
Always swap values when restoring sculpt undo data.
2022-09-12When these features aren't used, there is no sense in storing theHans Goudey
corresponding data layers and using their values for computations. Avoiding that should increase performance in many operations that would otherwise have to read, write, or propagate these values. It also means decreased memory usage-- not just for sculpt mode but for any mesh that was in sculpt mode. Previously the mask, face set, and hide status layers were *always* allocated by sculpt mode. Here are a few basic tests when masking and face sets are not used: | Test | Before | After | | Subsurf Modifier | 148 ms | 126 ms | | Sculpt Overlay Extraction | 24 ms every redraw | 0 ms | | Memory usage | 252 MB | 236 MB | I wouldn't expect any difference when they are used though. The code changes are mostly just making sculpt features safe for when the layers aren't stored, and some changes to the conversion to and from the hide layers. Use of the ".hide_poly" attribute replaces testing whether face sets are negative in many places. Differential Revision: https://developer.blender.org/D15937
2022-09-12Sculpt: Fix T101008: Missing CD_MDISPS layerJoseph Eagar
sculpt_update_object now auto-creates a CD_MDISPS layer if missing. Note that it is possible for the depsgraph to provide a multires ccg context without a CD_MDISPS. This causes a PBVH_GRIDS pbvh to be built instead of falling back to PBVH_FACES, which is why this bug happens (of course falling back to PBVH_FACES would still be a bug).
2022-09-12Fix T100956: Cycles GPU context assert after recent changesBrecht Van Lommel
We don't need to be on the main thread to destroy the context.
2022-09-12Fix T100016: Memory leak in USD importer.Michael Kowalski
These changes were implemented by Sonny Campbell. Fixed the first issue by freeing the operator customdata when the import is cancelled. Fixed the second issue by using a character array instead of allocating new memory for the prim_path_mask. Differential Revision: https://developer.blender.org/D15781
2022-09-12Geometry: Avoid unnecessary initialization when resizing data arraysHans Goudey
When resizing mesh and curves attribute storage, avoid initializing the new memory for basic types. Also, avoid skipping "no free" layers; all layers should be reallocated to the new size since they may be accessed. The semantics introduced in 25237d2625078c6d1 are essential for this change, because otherwise we don't have a way to construct non-trivial types in the new memory. In a basic test of the extrude node, I observed a performance improvement of about 30%, from 55ms to 42ms. Differential Revision: https://developer.blender.org/D15818
2022-09-12BLI: Add utility functions to generic spansHans Goudey
Generally we don't want to do per-element operations on these spans because of the overhead of the runtime type system, but these operations on the whole span avoid ugly pointer arithmetic in other areas.
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-12GLibC Compat: Add deprecated memory hooks symbols removed from 2.34.Bastien Montagne
Starting from GLibC 2.34, deprecated `__malloc_hook` & co. have been removed from headers, while still present in the shared library itself. This means that it is no more possible to build Blender with USD 22.03 on recent linux systems. While USD 22.08 has a fix to this issue, it is unlikely to be upgraded for Blender 3.4, and definitely not for Blender 3.3. This commit ensures Blender can build with USD 22.03 and glibc >= 2.34. Ref.: T99618, https://devtalk.blender.org/t/building-blender-on-linux-using-glibc-2-34-raises-linking-errors-from-the-usd-library/24185 Patch by @brecht, many thanks.
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-12UI: add a Custom Properties panel to the View Layer tab of properties.Alexander Gavrilov
Although view layers aren't ID, they do support custom properties, so not providing the UI to access them seems to be a simple oversight.
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-10Merge branch 'temp-T73411-add-scene-parameters' of git.blender.org:blender ↵Monique
into temp-T73411-add-scene-parameters
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: Add new Set Start Point operator to context menuAntonio Vazquez
2022-09-10Merge branch 'master' into temp-T73411-add-scene-parametersMonique
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: cycles OSL compiler warningsBrecht Van Lommel
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: format, spellingCampbell 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-09install_deps: update OpenVDB for Blender 3.4.Bastien Montagne
This has been a pain, newer OpenVDB forcefully trying to use more recent system TBB (oneTBB) instead of the one built by this script. Also include a few minor unrelated fixes. Ref T99618.