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-10-05Fix T101405: Deleting a baked action results in an error.Bastien Montagne
RNA code to create new actions did not properly remove the extra user set by default, as done in other `new` callbacks of other ID types. NOTE: Mask ID had the same issue, also fixed in this commit. NOTE: At some point this needs to be properly fixed, default super-low level ID creation code should simply not add a 'default' user, this is extremely bad design and forces higher-level code to do all kind of extra work to get rid of it half of the time, in very unclear and confusing ways and places.
2022-10-05BKE_Main: Add clear separation between 'temp' mains and global main.Bastien Montagne
Blender is using more and more temporary Main data-base (historically for reading linked data, but also now when resyncing liboverrides, for temp data in asset code, etc.). This commit aims at making this a bit more formal and defined, by: * Adding a dedicated flag in Main struct to mark a Main as global. * Adding some API to replace, or temporarily swap the current global Main (`G_MAIN`) by another one. NOTE: Having to temporarily replace `G_MAIN` is a workaround for the limitation of current RNA, ideally this should be fixed in RNA itself, but for now at least having an API helps tracking those cases (since this is potentially risky operation). This work is also a preparation for more usages of temp mains in the near future (Asset Brushes and its presets system e.g. will most likely use temp mains too). Reviewed By: brecht Differential Revision: https://developer.blender.org/D15977
2022-10-05Fix T101613: Muted Mix node wrongly connects to Factor socketCharlie Jolly
T101613: Muting/ctrl+x deleting the new mix node in Float mode passes through the wrong input. Fix by setting no_muted_links() on Factor sockets.
2022-10-05Fix T101334: Paint Texture Slots appear greyed outPhilipp Oeser
To the user, this looks like a disfunctional thing (usually greying out is used for props having no effect). The greying out is caused by {rB8b7cd1ed2a17e40661101eea4adae99e8e3d02e9}. Above commit disabled the direct renaming of images in the `TEXTURE_UL_texpaintslots` UIList (and instead displays the texture slot directly as a prop -- which has its `PROP_EDITABLE` flag cleared) (from the commit message): > A limitation of this patch is that is isn't possible anymore to rename images directly from > the selection panel. This is currently allowed in master. But as CustomDataLayers > aren't ID fields and not owned by the material supporting this wouldn't be easy. To work around the UI confusion (but still keep the non-editable nature of the property), now just display this as a label. Maniphest Tasks: T101334 Differential Revision: https://developer.blender.org/D16138
2022-10-05Fix T101306: crash when calling Delete command for Library OverridePhilipp Oeser
Was not passing user_data to id_override_library_delete_hierarchy_fn. Also correct a wrong assert. Greenlit by @mont29 in T101306. Should also go into 3.3 LTS.
2022-10-05LineArt: Fix "No intersection" flicker.YimingWu
The flicker was caused by the failure for checking both triangles for flags. Now fixed.
2022-10-05Install_deps: Add building of OpenPGL.Bastien Montagne
Ref. T101403.
2022-10-05Fix order of include-guard & C++ extern blockCampbell Barton
2022-10-05Fix error in 6b76381e0a52cf15513087e470a4a4c07471acc6Campbell Barton
Missed flipping arguments for caller.
2022-10-05Fix app-template settings being used for non-template preferencesCampbell Barton
Saving non app-template preferences would use add-ons and other app-template settings to write the default preferences if there was no existing user preferences file saved.
2022-10-05App Template: quiet warning when existing preferences don't existCampbell Barton
Suppress warning when saving app-template preferences. Check if the preferences exist before attempting to read them, while harmless it looked as if something went wrong.
2022-10-05Docs: improve doc-strings for blend file IOCampbell Barton
- Document the behavior of app-template IO for preferences. - Add doxy-sections for each kind of blend file IO. - Clarify BKE_blender_userdef_app_template_data_swap doc-string.
2022-10-05Cleanup: Remove unused includesHans Goudey
2022-10-05Fix: Crash when reininitializing empty generic arrayHans Goudey
Noticed this while developing new code that used GArray.
2022-10-05Fix T101185: New Mikktspace crashes on meshes without valid trianglesLukas Stockner
The code already had a check for meshes with zero triangles, but it didn't catch the case where all triangles are flagged as degenerate. A simple way to reproduce this is to take a mesh and scale it to zero. After checking the code, it turns out that in this case it's supposed to just set all tangents to zero, so the fix simply is to detect this case and skip the computation.
2022-10-05Geometry Nodes: Add soft min for points node radius inputHans Goudey
Also remove an unnecessary cast.
2022-10-05Build: fix missing xml2 build time dependency for waylandCampbell Barton
Also prepend the existing 'PKG_CONFIG_PATH' instead of overwriting it as this prevents 'devtoolset-9' libraries being used in the release environment.
2022-10-04Cleanup: VSE: Rename `val` to `timeline_frame`Richard Antalik
2022-10-04Cleanup: Add docstrings to `SEQ_time.h`Richard Antalik
2022-10-04Cleanup: VSE code readabilityRichard Antalik
Add function `SEQ_time_content_end_frame_get` to get content end frame. New function is shorthand for `SEQ_time_start_frame_get() + SEQ_time_strip_length_get()`.
2022-10-04Fix: Crash versioning transfer node with animation dataHans Goudey
This versioning needs to be done after linking in order to affect animation data which might not be loaded in the regular "do_versions" loop. Animation data is removed in `nodeRemoveNode`. Fixes T101439
2022-10-04Build: integrate OpenPGL into platform files like other librariesBrecht Van Lommel
To avoid issues with install_deps. If we more generally switch to using CMake configs then perhaps this code can be deduplicated again or at least simplified.
2022-10-04Build: also list Cycles build options on first cmake configBrecht Van Lommel
2022-10-04Cleanup: remove unused members from RenderResultBrecht Van Lommel
2022-10-04UI: Avoid unnecessary label in set curve normal nodeHans Goudey
"Mode" is obvious and isn't worth cutting off the text.
2022-10-04Fix: Bump subversion after forward compatibility breakageHans Goudey
c3b6e372542f9fb0ff23 change node ID names. Bump the subversion and the min file subversion so older versions get warnings opening newer files.
2022-10-04Fix T101583: Issues applying modifier to mesh with shape keysHans Goudey
The wrong mesh was used to read the position attribute. Also, there was always a warning about missing shape keys when that wasn't the case.
2022-10-04Fix: UI: Warning for description with period at endHans Goudey
The last period is added automatically, for better or worse.
2022-10-04Cycles: refine inlining thresholds for oneAPI backendNikita Sirgienko
New thresholds give a few percent improvement in average.
2022-10-04Cycles: Speed up oneAPI GPU binaries compilation by using parallel instancesNikita Sirgienko
This change speeds up the compilation at the cost of higher memory usage. CMake implementation checks the amount of available memory to spawn a reasonable number of parallel compiler jobs.
2022-10-04BLI: Unroll vector loops for better performance on GCCHans Goudey
On GCC, the loops created by `BLI_VEC_OP_IMPL` were not always unrolled, leading to branching. For `attribute_math::mix4<float3>`, this lead to a significant performance regression compared to its older `interp_v3_v3v3v3v3` counterpart. Instead of a using macros to create the for loops, use variadic templates to manually unroll them. The compiler might do it anyway (I didn't observe any effect on Clang in my tests), but there should be no reason not to unroll these small loops, and making it explicit and removing use of macros seems better. On a Ryzen 3700x, this commits doubles the performance of Catmull Rom curve position evaluation (from 18-19ms to around 9-10ms). Differential Revision: https://developer.blender.org/D16136
2022-10-04Revert "install_deps: update OpenVDB for Blender 3.4."Bastien Montagne
This update has been moved back to Blender 3.5. This reverts commit ded4604d7190adef56518dc0b65ddb452beefc16.
2022-10-04Revert "install_deps: update OIIO/Boost/Python/NumPy versions."Bastien Montagne
These updates have been moved back to Blender 3.5. This reverts commit 1e1e9014cfc9f47d8496dd283a1cccae0ce29552.
2022-10-04Fix T101233: Crash on deleting the object in outliner due to null pointer accessPratik Borhade
After rB188f7585a183 deleting the object results in crash due to null pointer access if collections are filtered out Reviewed by: mont29 Differential Revision: https://developer.blender.org/D16031
2022-10-04Always initialize MaterialPass (Fixes a crash in mscv)Miguel Pozo
Differential Revision: https://developer.blender.org/D16134
2022-10-04Fix T101447: Hold split not working correctlyRichard Antalik
Caused by incorrect conflict resolution in commit 302b04a5a3fc0e76.
2022-10-04Fix T101499: Do not allow unlinking objects from linked collections.Bastien Montagne
2022-10-04Cleanup: Remove commented out code in ssr_lib.glsl.Jeroen Bakker
2022-10-04Fix T101438: Wrong LOD selection after clamping the mip value (Nvidia)Miguel Pozo
Fix for T101438 Clamping the mip seems to always set it to 9.0. I couldn't find an alternative way to avoid triggering the error (ie. min(mip, 9.0)). In any case, the results with this patch applied look the same to the (correct) ones on AMD. And, since clamping the max mip to a hardcoded value could result in resolution-depended behavior, I guess disabling the clamp should be ok anyway. Reviewed By: fclem Maniphest Tasks: T101438 Differential Revision: https://developer.blender.org/D16129
2022-10-04Animation: Update tooltips to be more readableJames
Change some wording of tooltips for readability, in animation-related areas (drivers, keying sets, animation channel visibility). Reviewed By: sybren Differential Revision: https://developer.blender.org/D16131
2022-10-04Fix T101559: Rain Test Animation demo crashes Blender 3.3Bastien Montagne
Update to liboverride creation code to add support of keeping active object forgot to consider case when there is no known/given view layer. NOTE: due to differences in code, fix for 3.3 will be a bit different.
2022-10-04New viewlayer deferred resync code: add utils to ensure resync of whole ↵Bastien Montagne
Scene and Main. Similar to existing `BKE_main_collection_sync` and `BKE_scene_collection_sync`, in some cases code does not have access to a specific view layer, and/or does not know exactly which view layer needs to be in sync, or just need the full data to be up to date.
2022-10-04Cleanup: rename BKE_appdir_folder_id_version, improve doc-stringsCampbell Barton
Rename BKE_appdir_folder_id_version to BKE_appdir_resource_path_id_with_version because BKE_appdir_folder_id and BKE_appdir_folder_id_version didn't accept compatible arguments. Also add notes to GHOST_getSystemDir & GHOST_getUserDir that BKE_appdir_resource_path_id(..) should be used instead (in most cases).
2022-10-04Support environment variables to override USER & SYSTEM resource pathsCampbell Barton
Even though individual USER/SYSTEM paths could be set using environment variables, it wasn't possible to override the USER or SYSTEM paths. This meant the result of `bpy.utils.resource_path('USER')` & `bpy.utils.resource_path('SYSTEM')` could still be used by scripts, making the Blender session potentially the default USER directory (even when `BLENDER_USER_CONFIG`, `BLENDER_USER_SCRIPTS` & `BLENDER_USER_DATAFILES` all point elsewhere). Resolve by adding environment variables: - BLENDER_USER_RESOURCES - BLENDER_SYSTEM_RESOURCES These will be used for `bpy.utils.resource_path('USER')` & `bpy.utils.resource_path('SYSTEM')`, as well as a basis for user & system directories, unless those environment variables are set (`BLENDER_USER_*` or `BLENDER_SYSTEM_*`). Resolves issue raised by T101389. Example usage & output: {P3225} Reviewed By: brecht Ref D16111
2022-10-04Cleanup: remove unnecessary includes from sculpt_paintCampbell Barton
2022-10-04Cleanup: formatCampbell Barton
2022-10-04Cleanup: undeclared function warningCampbell Barton
2022-10-04Cleanup: correct argument size for plane in planeProjectionCampbell Barton
2022-10-04Sculpt: Visibility bugfixesJoseph Eagar
* Unhide all is no longer part of face_set_change_visibility. * Implemented a few visibility API methods for PBVH_BMESH * Fixed bug with unhide all not freeing all multires grid_hidden bitmaps.
2022-10-04Sculpt: implement Reveal All for PBVH_BMESHJoseph Eagar