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-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'Aaron Carlisle
2022-02-03Py Docs: Fix error is version switchAaron Carlisle
Slile parameter of 4 was looking for the language in the URL but the API docs do not have a language in the URL.
2022-02-03Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-02-03Py Docs: Fix json URLAaron Carlisle
In the future when we have a docs staging area it will be important to change where this JSON is pulled from. For now, always pull from the "Production" versions
2022-02-03Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-02-03Py Docs: Fix typo in previous commitAaron Carlisle
- Correct spacing - Add missing comma
2022-02-03Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-02-03Py Docs: Implement version switch to switch between versions on the websiteAaron Carlisle
This commit adds a version switch similar to the one on the user manual, in the future it would be nice to refactor both of these into a more generic code that works for both. Maybe develop this into a sphinx extension. As part of this change I had to change how the blender hash is displayed. Instead of the version hash in the top left it has been moved to the page footer. This change will also be backported to 2.93 LTS, 2.93 LTS, and 3.0.
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: clang-formatBrecht Van Lommel
2022-02-03Fix T93565: revert Cycles to old normal behavior for point lightsSebastian Herholz
This patch reverts the normal behavior of the spotlights. In the last fix, the returned normal of a spot light was equal to its direction. This broke some texturing methods used by artists. Differential Revision: https://developer.blender.org/D13991
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-03Merge branch 'blender-v3.1-release'Thomas Dinges