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-07Cleanup: redundant parenthesisCampbell Barton
2022-10-07Cleanup: use function style casts for C++Campbell Barton
2022-10-07Armature Modifier: skip non-deforming vertices in Multi-Modifier mode.Alexander Gavrilov
The modifier already contained a check to skip complex processing of vertices that won't produce any deformation due to the vertex group mask, but this only works for the non-Multi Modifier case. This adds a similar check for the Multi Modifier mode. Differential Revision: https://developer.blender.org/D16152
2022-10-07Cleanup: replace static variables with argumentsCampbell Barton
Functions in vfontdata_freetype.c used static variables instead of argument parsing. This originates from initial freetype support [0]. This didn't cause problems as callers use a global lock, however it makes the code more difficult to follow means we can more easily remove the lock in the future. [0]: d4f9678b3939a3b480005fee3b82ad8843de51e0
2022-10-07Cleanup: quiet compiler shadowed variable warningCampbell Barton
2022-10-07Fix for T101481: Improved VFont LoadingHarley Acheson
Remove redundancy in the testing and loading of VFont fonts. Includes improved setting of character map for using Wingding and Symbol fonts. See D16174 for more details. Differential Revision: https://developer.blender.org/D16174 Reviewed by Campbell Barton
2022-10-07Cleanup: compiler warningCampbell Barton
2022-10-07Cleanup: spelling in commentsCampbell Barton
2022-10-07Cleanup: Avoid inconsistent naming in mesh topology APIHans Goudey
Mesh corners are called "loops" in the code currently. Avoid diverging naming and just use that convention in some newly added code.
2022-10-07Cleanup: Move subdiv_ccg.c to C++Hans Goudey
In preparation for moving mesh runtime data to C++
2022-10-07Sculpt: Raise pbvh->leaf_limit to 400 for dyntopoJoseph Eagar
Setting pbvh->leaf_limit (the max triangles per node) too low results in lots of distinct GPU meshes, which can be slow for even moderately sized sculpt meshes (starts to be a problem around 100-150k triangles).
2022-10-06Cleanup: Move subdiv_modifier.c to C++Hans Goudey
In preparation for moving mesh runtime data to a C++ type
2022-10-06Cleanup: Move shrinkwrap.c to C++Hans Goudey
2022-10-06Sculpt: Fix bug in sculpt attribute apiJoseph Eagar
SculptAttribute.domain wasn't being set when creating from an existing CustomData attribute.
2022-10-06Cleanup: Remove unnecessary MOD_nodes.h includesHans Goudey
2022-10-06Fix for T53332: BFont 43 Inaccessible GlyphsHarley Acheson
Preloading of BFont (default for 3D Text Objects) glyphs will not load any with a character code greater than 256, resulting in 43 characters that are inaccessible. This patch corrects that preloading code. See D16122 for more details Differential Revision: https://developer.blender.org/D16122 Reviewed by Campbell Barton
2022-10-06Cleanup: Move multires.c to C++Hans Goudey
2022-10-06Cleanup: spelling in code commentsCampbell Barton
2022-10-05Cleanup: Clang tidyHans Goudey
Also remove unnecessary struct keywords in C++ files.
2022-10-05Mesh: Skip some domain interpolations for single valuesIliya Katueshenock
Completely skip the work of interpolating domains for single values for many to and from combinations. Similar to 535f50e5a6a248b7aa74b59, but slightly more complex because of the possibility of loose elements on some mesh domains. From D16054, with added comments.
2022-10-05Cleanup: Use generic array for mesh domain interpolation resultIliya Katueshenock
Instead of declaring a typed array inside the static type block. This generates slightly less code and should have the same performance. From D16054
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 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-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 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-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-04Cleanup: replace UNUSED macro with commented args in C++ codeHans Goudey
This is the conventional way of dealing with unused arguments in C++, since it works on all compilers. Regex find and replace: `UNUSED\((\w+)\)` -> `/*$1*/`
2022-10-04Sculpt: Add debug code to print sculpt undo stack.Joseph Eagar
2022-10-04Geometry Nodes: Rename Control Point Neighbors NodeHans Goudey
Rename the node to "Offset Point in Curve" Since this was committed, more mesh and curve topology nodes have been committed with a different naming scheme (482d431bb6735e82069). Change the name of this node to match "Offset Corner in Face". Because the node was only added recently, it's a full rename, including the ID, so forward compatibility is broken.
2022-10-03Geometry Nodes: Set Curve NormalJohnny Matthews
This node allows for curves to have their evaluated normal mode changed between MINIMUM_TWIST and Z_UP. A selection input allows for choosing which spline in the curves object will be affected. Differential Revision: D16118
2022-10-03Fix OpenEXR saving still outputting alpha when using RGB instead of RGBA modeBrecht Van Lommel
Contributed by linhsu0723. Differential Revision: https://developer.blender.org/D15979
2022-10-03Cleanup: rename IMA_CHAN_FLAG_ALPHA to IMA_CHAN_FLAG_RGBA to match meaningBrecht Van Lommel
2022-10-03Attribute Node: access geometry node instance attributes.Alexander Gavrilov
The Instancer mode of the node is intended for varying material behavior between instances. Since Geometry Nodes support arbitrary named instance attributes, this mode should include them in lookup. To implement this it is sufficient to store references to Geometry Node data in DupliObject, and check it during dupli attribute lookup. In order to reduce the memory usage of DupliObject, only 4 array entries are allocated, even though the current dupli recursion stack limit is 8. This assumes that not every entry would be associated with a GeometrySet instance. Hopefully, soon the whole system will be rewritten to remove the hard limits altogether. Differential Revision: https://developer.blender.org/D16114
2022-10-03Geometry Nodes: new Sample UV Surface nodeJacques Lucke
This node allows sampling an attribute on a mesh surface based on a UV coordinate. Internally, this has to do a "reverse uv lookup", i.e. the node has to find the polygon that corresponds to the uv coordinate. Therefore, the uv map of the mesh should not have overlapping faces. Differential Revision: https://developer.blender.org/D15440
2022-10-03Cleanup: spelling in commentsCampbell Barton
Also replace "dm" for evaluated mesh in some comments.
2022-10-03Cleanup: use function style casts for C++Campbell Barton
2022-10-02Cleanup: Move three modifier files to C++Hans Goudey
2022-10-02Cleanup: Move more files using mesh runtime data to C++Hans Goudey
In preparation for moving mesh runtime data out of DNA.
2022-10-01Sculpt: Upload white for color attributes in multires in sculptJoseph Eagar
Even if multires in sculpt mode doesn't yet support color attributes, we should at least upload white color to avoid making everything black. Also fixed a bug where multires PBVHs didn't have access to their CustomData attribute layout, which PBVH draw needs.
2022-09-30Attribute Node: refactor lookup to remove duplication between engines.Alexander Gavrilov
Currently lookup of Object and Instancer attributes is completely duplicated between Cycles, Eevee and Eevee Next. This is bad design, so this patch aims to deduplicate it by introducing a common API in blenkernel. In case of Cycles this requires certain hacks, but according to Brecht it is planned to be rewritten later for more direct access to internal Blender data anyway. Differential Revision: https://developer.blender.org/D16117
2022-09-30Cleanup: use function style casts for C++Campbell Barton
2022-09-30Cleanup: Move files that use mesh runtime data to C++Hans Goudey
In preparation for moving the mesh runtime struct out of DNA.
2022-09-30Cleanup: Move object_update.c to C++Hans Goudey