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-02-04Merge branch 'blender-v3.1-release'Jeroen Bakker
2022-02-04Fix Crash: Switching to wireframe mode.Jeroen Bakker
Crash introduced by {rB0cb5eae}. When switching to between drawing modes the region.draw_buffer could be uninitialized when the gizmo depth test is performed. When the mouse is placed on top of a gizmo part that could be highlighted would crash. This fix adds a early exit when depth testing is requested, but there isn't a draw_buffer. Not sure this is an root cause fix. Reported by multiple animators in Blender Studio.
2022-02-04Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-04Fix T95489: support writing to vertex groups with geometry nodes againJacques Lucke
Technically, this can't be relied upon in the long term. It worked more or less accidentally before. It was broken by a previous fix accidentally. I mainly bring it back because rBa985f558a6eb16cd6f0 was not expected to have this side effect. Note, this change can result in slower performance. Writing to a vertex groups is less efficient than using a generic attribute.
2022-02-04Cleanup: remove unused LOG declarationSybren A. Stüvel
No functional changes.
2022-02-04BLI: use methods specialized for finding a single char in StringRefAras Pranckevicius
Previously, these methods used the more generic substring-finding algorithm, which is more complex and slower. Using the more specialized methods results in a noticable speedup in the obj importer (D13958). Differential Revision: https://developer.blender.org/D14012
2022-02-04Compositor: Backdrop mode changes node grid.Jeroen Bakker
When viewing backdrop on top of the node grid, the grid would be rendered black when the mode wasn't set to RGBA. This fix fixes this by reverting the previous fix of drawing the backdrop and implement a different one that recomputes the UV coordinates on the screen edges.
2022-02-04Fix T93425: makesdna crashes during build with LTO on s390x LinuxCampbell Barton
DNAstr was assumed to be 4-byte aligned which is not necessarily the case for byte-arrays. Use a compiler attribute to ensure this is the case. Thanks to @mtasaka for investigating and providing a patch.
2022-02-04Remove internal proxy code, and deprecate related DNA data.Bastien Montagne
Part of T91671. Not much else to say, this is mainly a massive deletion of code. Note that a few cleanups possible after this proxy removal were kept out of this commit to try to reduce a bit its size. Reviewed By: sergey, brecht Maniphest Tasks: T91671 Differential Revision: https://developer.blender.org/D13995
2022-02-04Cleanup: spelling in commentsCampbell Barton
Also update viewport comments.
2022-02-04Cleanup: cage3d gizmo used two margin scale valuesCampbell Barton
Replace this with a single margin.
2022-02-04Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-04Fix T88579: scale cage doesn't work well for small/large objectslictex_
Apply proper view scale for cage 3d's draw_select, same as draw. Reviewed By: campbellbarton Ref D13956
2022-02-04Cleanup: halve calls to BLI_str_utf8_size_safe in the text editorCampbell Barton
Syntax highlighted text was calculating the utf8 character size twice per character.
2022-02-04Cleanup: use mono-space font drawing for single character displayCampbell Barton
This doesn't make a user visible difference since it's only used for brackets at the moment, this is more for general correctness as the width calculation for mono-spaced text drawing is different (as it uses BLI_wcwidth).
2022-02-04Cleanup: Clang tidy, use bracesHans Goudey
Braces missed in b73d3b80fdcb72446
2022-02-04Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-04Fix assertion snapping to selected in mesh edit-modeCampbell Barton
ED_transverts_create_from_obedit expected an evaluated object. Add flag to request TX_VERT_USE_MAPLOC to be set, which avoids having to calculate this data when it's not used as well as the requirement that the input object be evaluated from the depsgraph.
2022-02-04Fix T94334: Area close operator crash in 3D view menuHans Goudey
This fixes the crash by removing the `do_view3d_header_buttons` handler. The code can work at a higher level here, using the operator for setting the select mode, which makes this patch a cleanup as well. The operator now has a description callback to add the custom description used for the behavior in its invoke method. Differential Revision: https://developer.blender.org/D13660
2022-02-04Cleanup: Add file names back to node headerHans Goudey
These were removed in rBbe3f3812dc4b, but it's preferred to keep them. I had to do a bit of reorganizing, and I corrected the file type too.
2022-02-03Cleanup: Add comment about unsed custom data typeHans Goudey
Since f59767ff97295404d, these hair layer types are unused. Since DNA compatibility was broken with any files that would contain them, the indices can be reused to avoid growing custom data's typemap.
2022-02-03Merge branch 'blender-v3.1-release'Bastien Montagne
2022-02-03Curves: Changes to the new curves data-blockHans Goudey
This patch refactors the "Hair" data-block, which will soon be renamed to "Curves". The larger change is switching from an array of `HairCurve` to find indices in the points array to simply storing an array of offsets. Using a single integer instead of two halves the amount of memory for that particular array. Besides that, there are some other changes in this patch: - Split the data-structure to a separate `CurveGeometry` DNA struct so it is usable for grease pencil too. - Update naming to be more aligned with newer code and the style guide. - Add direct access to some arrays in RNA -- Radius is now retrieved as a regular attribute in Cycles. -- `HairPoint` has been renamed to `CurvePoint` -- `HairCurve` has been renamed to `CurveSlice` - Add comments to the struct in DNA. The next steps are renaming `Hair` -> `Curves`, and adding support for other curve types: Bezier, Poly, and NURBS. Ref T95355 Differential Revision: https://developer.blender.org/D13987
2022-02-03Fix T95334: Crash with no vertex normals in multires bakeHans Goudey
This is partially caused by a stupid mistake in cfa53e0fbeed7178c78 where I missed initializing the `vert_normals` pointer in `MResolvePixelData`. It's also caused by questionable assumptions from DerivedMesh code that vertex normals would be valid. The fix used here is to create a temporary mesh with the data necessary to compute vertex normals, and ensure them here. This is used because normal calculation is only implemented for `Mesh` and edit mesh, not `DerivedMesh`. While this might not be great for performance, it's potentially aligned with future refactoring of this code to remove `DerivedMesh` completely. Since this is one of the last places the data structure is used, that would be a great improvement. Differential Revision: https://developer.blender.org/D13960
2022-02-03Fix (unreported) broken logic in proxy to liboverride conversion.Bastien Montagne
Iterating over scene's objects while we modify those (through proxy to override conversion code) is call for problems (use after free etc.). Instead, all proxy objects need to be gathered first in a temporary list, and processed all at once in a second loop.
2022-02-03Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-03Fix T94435: remove anonymous attributes when applying modifierJacques Lucke
Differential Revision: https://developer.blender.org/D13994
2022-02-03Merge branch 'blender-v3.1-release'Bastien Montagne
2022-02-03Fix (unreported) broken do_version of hidden layers from pre-2.8 files.Bastien Montagne
`BKE_collection_object_add` ensures given object is added to an editable collection, and not e.g. a linked or override one. However, some processes like do_version manipulate collections also from libraries, i.e. linked collections, in those cases we need a version of the code that unconditionnally adds the given object to the given colleciton.
2022-02-03Split Python OBJ importer and exporter, enabling only the importer.Howard Trickey
This is from patch D13988. It removes the "- New" from the menu of the new obj exporter, changes the default addon to just io_import_obj, and does the right versioning thing. Also disables the python tests for the old python exporter.
2022-02-03Merge branch 'blender-v3.1-release'Brecht Van Lommel
2022-02-03Cleanup: Rename 'TRACKBALLSIZE' to 'V3D_OP_TRACKBALLSIZE'Germano Cavalcante
2022-02-03Cleanup: Split View3D navigation code into specific compilation unitsGermano Cavalcante
The view3d_edit.c file is already getting big (5436 lines) and mixes operators of different uses. Splitting the code makes it easier to read and simplifies the implementation of new features. Differential Revision: https://developer.blender.org/D13976
2022-02-03Fix T91254: Some editing operation indirectly delete objects from override ↵Bastien Montagne
collections. Those cases are fairly hard to track down... Added some more checks, also at lower levels, more generic levels of object editing, and fixed core check in liboverride (previously code was assuming that an override of a collection only could have overrides of objects or linked objects, but this is not necessarily true).
2022-02-03Split Python OBJ importer and exporter, enabling only the importer.Howard Trickey
This is from patch D13988. It removes the "- New" from the menu of the new obj exporter, changes the default addon to just io_import_obj, and does the right versioning thing. Also disables the python tests for the old python exporter.
2022-02-03Cleanup: use NULL items for the default sample enumCampbell Barton
Using this enum quiets a warning when exporting key-maps.
2022-02-03Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-03Docs: correct weight paint sample descriptionCampbell Barton
2022-02-03Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-03Fix T95137: Spline calc_length not working with just 1 NURB pointJesse Yurkovich
The NURB case did not properly handle a curve with only 1 point. Ref D13904
2022-02-03Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-03Fix T66913: undo after frame-change doesn't refresh properlyCampbell Barton
Use the ID.recalc flag to detect when updates after frame-change is needed. Since comparing the last calculated frame doesn't take undo into account (see code-comment for details). `ID_RECALC_AUDIO_SEEK` has been renamed to `ID_RECALC_FRAME_CHANGE` since this is not only related to audio however internally this flag is still categorized in `NodeType::AUDIO`. Reviewed By: sergey Ref D13942
2022-02-03Cleanup: clang-formatCampbell Barton
2022-02-03Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-03Fix assert in original modifiers pointer update functionSergey Sharybin
The issue was happening with a specific file where the ID management code was not fully copying all modifiers because of the extra check in the `BKE_object_support_modifier_type_check()`. While it is arguable that copy-on-write should be a 1:1 copy there is no real need to maintain the per-modifier pointer to its original. Use its SessionUUID to perform lookup in the original datablock. Downside of this approach is that it is a linear lookup instead of direct pointer access, but the upside is that there is less pointers to manage and that the file with unsupported modifiers does behave correct without any asserts. Differential Revision: https://developer.blender.org/D13993
2022-02-03Cleanup: Use utility function to access original modifier in RNASergey Sharybin
2022-02-03Despgraph: Remove asserts from object modifier backupSergey Sharybin
The modifiers are mapped between original and evaluated objects based on their session IDs. The pointer to original modifier is no longer needed for the backup: it remained from the initial implementation which was rewritten at some point. This is a preparation for removal of the pointer to original modifier.
2022-02-02LibOverride: Move proxy conversion code in its own file.Bastien Montagne
This will allow to keep the access to deprecated DNA proxy data in that specific file, instead of allowing deprecated accesses in the whole override kernel code. Part of T91671.
2022-02-02Remove operators to manually convert proxies to liboverrides.Bastien Montagne
Now that proxy conversions if enforced, those operations are not useful anymore. Part of T91671.
2022-02-02Fix T95397: Grease Pencil Icons do not match in Outliner vs Dope Sheet EditorAntonio Vazquez
There was an inconsistency between icons.