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-10-07Merge branch 'master' into tracking_toolstracking_toolsSergey Sharybin
2022-10-07Fix missing header include when using timeit feature.Bastien Montagne
2022-10-07Refactor: adding function to check if an animation container has grease ↵Amelie Fondevilla
pencil layer keyframes. Used in action_select to refactor the selection operators. No functional changes. Reviewed By: Sybren A. Stüvel Differential Revision: http://developer.blender.org/D16168
2022-10-07Cycles: use direct linking for oneAPI backendXavier Hallade
This is a minimal set of changes, allowing a lot of cleanup that can happen afterward as it allows sycl method and objects to be used outside of kernel.cpp. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D15397
2022-10-07Fix T100953: Zooming with NDOF is inverted in the camera viewCampbell Barton
Use convention for applying zoom in other 2D views.
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: use doxy sectionsCampbell Barton
Also use doxy syntax for some comments.
2022-10-07Cleanup: remove redundant 'using'Campbell Barton
clang-tidy converts C-style typedefs to this style, but the "using ..." isn't needed.
2022-10-073D View: depth sort candidates in the selection menuCampbell Barton
Objects/bones in the selection menu weren't ordered usefully, worse, the closest items could be left out of the menu since items would stop being added once the menu-size limit was reached. Resolve this by sorting the menu items by depth, removing the most distant when the number of items exceeds the limit. When Ctrl is held, order by the distance to the object center instead of depth.
2022-10-07Cleanup: share factory reset propertiesCampbell Barton
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-07Preferences: support loading factory settings only for app-templatesCampbell Barton
When app-templates are enabled, support resetting defaults only for the app-templates. Without this, it's not possible to reset app-template preferences without also resetting the default preferences for all settings the app-template does not override (used when there is no application template loaded, and other app-templates). These additional menu items are shown in menus when an app-template has been loaded. Address issue raised by T96427. Reviewed By: mont29, brecht Ref D16150
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-07Cleanup: Move eight modifier files 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-07Sculpt: Fix T101502: GPU tris miscounted for dyntopoJoseph Eagar
Dyntopo PBVH draw was miscounting the number of 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-06Fix: Properly free non-trivial node editor runtime typeHans Goudey
2022-10-06Cleanup: Remove unnecessary MOD_nodes.h includesHans Goudey
2022-10-06DRW: fix use of potentially uninitialized variableGermano Cavalcante
Bug introduced in rB6774cae3f25b. This causes undefined behavior in `DRW_state_draw_support()` making overlay depth drawing unpredictable.
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-06Animation: Expose "mute" for drivers in their properties UISybren A. Stüvel
In the driver editor and the "edit driver" popover, add a checkbox that can mute the driver. This is the same functionality as the checkbox in the driver editor's channel list, but then exposed in a different place in the UI. This is for convenience, such that a driver can now be muted by right-clicking on the driven property, choosing "Edit Driver", then muting it there. The same checkbox was added to the regular driver editor's header for consistency. Reviewed By: Severin Maniphest Tasks: T101592 Differential Revision: https://developer.blender.org/D16173
2022-10-06Fix: Use after free in geometry node group loggerHans Goudey
The name of the node group in the geometry nodes logger is created in `GeoModifierLog::get_local_tree_logger`, where it references the compute context. However, the compute context is a local variable that doesn't live as long as the log. Therefore the log needs to own the node group name. Removing the ownership from `NodeGroupComputeContext` may be possible as well, but seems less obviously correct. This can be a temporary solution until we can completely avoid storing strings in the logger (see D15775). Fixes T101599
2022-10-06UI: remove extraneous inversion of "inverted" button stateSybren A. Stüvel
Fix an issue where a `UI_BTYPE_CHECKBOX_N` button couldn't be toggled. When toggling the value of a property, the `UI_BTYPE_TOGGLE_N`, `UI_BTYPE_ICON_TOGGLE_N`, and `UI_BTYPE_CHECKBOX_N` types shouldn't matter. These determine the inverted display of the value, but toggles of that value should still happen once. For these button types, the toggle happened twice, effectively making it a no-op. The code for individual values is now also consistent with the code for handling bit-flags. Actually found & over-the-shoulder-reviewed by @Severin
2022-10-06Cleanup: Move multires.c to C++Hans Goudey
2022-10-06GPencil: Use new icons for Envelope and Outline modifiersAntonio Vazquez
Before both modifiers were using Skin icon.
2022-10-06UI: New modifier Icons Envelope and OutlineAntonio Vazquez
Task: T101155 Designed by: Matias Mendiola Reviewed by : Pablo Vazquez
2022-10-06Fix T101618: Freeze when reloading a library in certain situationPhilipp Oeser
Freeze happened when reloading a library while having an Object property with a custom getter function defined in Python. Just piggybacking on rB62eb21e3ce87, this just applies the same fix (use the BPy_BEGIN/END_ALLOW_THREADS macros) to relading from RNA/py. All credit goes to @brecht and @mont29. Maniphest Tasks: T101618 Differential Revision: https://developer.blender.org/D16167
2022-10-06Fix T101492: UV stitch crash (more than 32 objects selected)Philipp Oeser
Crash happened when adjusting operator props in Adjust Last Operation panel. When there are more than 32 objects selected in muti-object-editmode, we are running into RNA array limit (`objects_selection_count` is defined as an RNA array (which can only hold 32 entries, see `RNA_MAX_ARRAY_LENGTH`), leading to reading random memory errors. While there might be ways to make this work with more than 32 selected objects (e.g. by instead using a collection, or investigate supporting dynamic sized arrays for run-time RNA), this patch only cancels the operator with a report message (instead of crashing). Maniphest Tasks: T101492 Differential Revision: https://developer.blender.org/D16115
2022-10-06Fix T101517: GPencil strokes snap to origin in a Scale value is on 0Antonio Vazquez
The problem was the conversion to object space converted the points to zero. Now, the new function `zero_axis_bias_m4` is used in order to add a small bias in the inverse matrix and avoid the zero points. A known math issue is the stroke can be offsetted if the scale is set to 1 again. In this case apply the scale to reset to 1. Differential Revision: https://developer.blender.org/D16162
2022-10-06Fix T101591: mathutils.geometry.intersect_line_line 2D vector errorCampbell Barton
Uninitialized stack memory was used when intersecting 2D vectors.
2022-10-06Fix T101628: Correct frame node intersection in add reroute operatorLeon Schittek
Fix reroute nodes added via the cut link gesture being parented to the wrong frame node. The frame's bounds that are used for the intersection test with the newly added reroute are in view space, but the reroute's location was given in the node tree's coordinate space, when the add reroute operator was recently refactored (56193eccf646). Reviewed By: Hans Goudey Differential Revision: http://developer.blender.org/D16163
2022-10-06Cleanup: split BLF glyph rendering into a functionCampbell Barton
This makes the drawing loop easier to follow.
2022-10-06Curve: increase max of order U/VRedMser
Uses soft and hard max of the resolution properties. Range for order U/V was 2-6, but after testing higher max values with NURB splines and surfaces with many control points, no problems were found. Reviewed By: campbellbarton Ref D13918
2022-10-063D View: use float for ED_view3d_project_base & minor changesCampbell Barton
Using 'short' was historic (as the value was stored in the Base). Prefer floats which allow sub-pixel distances to be differentiated. Also remove IS_CLIPPED assignment as this only made sense when the values were stored in the Base, without any other ways to check if projection failed.
2022-10-06Cleanup: spelling in code commentsCampbell Barton
2022-10-05New math function to add small bias to zero axisAntonio Vazquez
In some situations the zero axis can produce problems and need to add a small bias. This function adds a small bias using the orthogonal result of the others valid axis. Reviewed By: fclem Differential Revision: https://developer.blender.org/D16158 6d
2022-10-05GPencil: Use stroke function for convert pointsAntonio Vazquez
The stroke function is faster because the matrix is inverted only once.
2022-10-05Cleanup: make formatBrecht Van Lommel
2022-10-05Sculpt: Fix crash in face set initJoseph Eagar
2022-10-05Sculpt: Fix crash in dyntopo drawJoseph Eagar
2022-10-05Cleanup: Clang tidyHans Goudey
Also remove unnecessary struct keywords in C++ files.
2022-10-05DRW: Split ViewProjectionMatrix in order to increase precisionClément Foucault
This also removes the need to compute the persmat and saves some memory from the `ViewInfos` struct. This is needed to allow multiview support. Initial testing found no major performance regression during vertex heavy workload. Test file: {F13610017} Results: | Platform | Master | Split Matrix| | Linux + Mesa + AMD W6600 | 48 fps | 47 fps | | Macbook Pro M1 | 50 fps | 51 fps | | Linux + NVidia 1080Ti | 51 fps | 52 fps | | Linux + Radeon Vega 64 | 25.6 fps | 26.7 fps | Increased precision when far from origin: {F13610024} {F13610025} Reviewed By: jbakker Differential Revision: https://developer.blender.org/D16125
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.