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
2021-04-12Previews: allow undo'ing datablock preview generationSybren A. Stüvel
Allow users to undo the effect of the "Generate Preview" operator in the asset browser (`ED_OT_lib_id_generate_preview`). Without this, the button is too dangerous.
2021-04-12Spreadsheet: add spreadsheet width unitJacques Lucke
This also fixes the issue that the width of the "Name" column when viewing instances does not resize correctly. Differential Revision: https://developer.blender.org/D10926
2021-04-12Fix T87308: don't show columns when there are no instancesJacques Lucke
2021-04-11Fix T87157: GPencil subdivide last segmentFalk David
Previously it was not possible to subdivide the last segment of a cyclic stroke. The fix makes sure that the correct number of new points is calculated correctly and adds the new points to the last segment. Reviewed By: antoniov Maniphest Tasks: T87157 Differential Revision: https://developer.blender.org/D10902
2021-04-11Cleanup: use ELEM, STREQ macrosCampbell Barton
2021-04-11Cleanup: spellingCampbell Barton
2021-04-11Fix T87355: Crash using menu search from the top barCampbell Barton
Menu search used an area with a NULL data pointer, replace this with a dummy pointer. Caused by 3f3b4745b6ad99a0503fba4793d0f1febedadebc.
2021-04-10Transform: Use "orient_matrix" as a default when availableGermano Cavalcante
The "orient_matrix" parameter was only used when contraint was defined. This change will hardly be noticed by the user, but it can be useful for addon developers. Possibly resolves T85734.
2021-04-09Fix T87167: Object dragged from Outliner into Geo Nodes doesn't auto updateCharlie Jolly
Add call to `DEG_relations_tag_update` Differential Revision: https://developer.blender.org/D10928
2021-04-09Cleanup: use our own code style for doxy-gen comment blocksCampbell Barton
2021-04-09Spreadsheet: persistent column storage and data sourceJacques Lucke
A `DataSource` provides columns for the spreadsheet to display. Every column has a SpreadsheetColumnID as identifier. Columns are not generated eagerly anymore, instead the main spreadsheet code can request a column from a data source with an column identifier. The column identifiers can be stored in DNA and allow us to store persistent data per column. On the user level the only thing that changes is that columns are not shown in alphabetical order anymore. Instead, new columns are always added on the left. The behavior can be changed, however I'd prefer not to automate this too much currently. I think we should just add operators to hide/reorder/resize columns soonish. Differential Revision: https://developer.blender.org/D10901
2021-04-08Fix: Dragging a modifier to the same index recalculates modifier stackHans Goudey
The fix is to simply check if the final index is the same as the start index and not call the "reorder" callback in that case.
2021-04-08Spreadsheet: support showing data of specific nodeJacques Lucke
Previously, the spreadsheet editor could only show data of the original and of the final evaluated object. Now it is possible to show the data at some intermediate stages too. For that the mode has to be set to "Node" in the spreadsheet editor. Furthermore, the preview of a specific node has to be activated by clicking the new icon in the header of geometry nodes. The exact ui of this feature might be refined in upcoming commits. It is already very useful for debugging node groups in it's current state though. Differential Revision: https://developer.blender.org/D10875
2021-04-08Add ability to get a selection list of bonesSebastian Parborg
This adds the ability to get a selection list for both edit mode bones and pose mode bones. To do this the selection menu list logic had to be reworked a bit. Before it only stored the names of objects. This might work will of objects, however as stated in the code, it might fail for linked objects (so multiple object can have the same name in some corner cases). For bones it is a very common occurance where you can have multiple armature that has the same bone names. So now it also stores the object and bone pointers for this case. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D10570 Fix T85796
2021-04-08Fix T81707: Spline IK Joints "Floating" above curveSebastian Parborg
The issue was that where_on_path uses a resampled curve to get the data from the curve. This leads to disconnects between the curve the user sees and the evaluated location data. To fix this we simply use the actual curve data the user can see. The older code needed a cleanup either way as there were hacks in other parts of the code trying to work around some brokenness. This is now fixed and we no longer need to clamp the evaluation range to 0-1 or make helper functions to make it do what we actually want. Reviewed By: Campbell, Sybren Differential Revision: http://developer.blender.org/D10898
2021-04-08Text Editor: don't force other views to follow the cursorCampbell Barton
While the existing behavior worked as intended, it wasn't possible to have two views on the same file at different locations. Since there isn't much use in having two views open at the same location allow one view to be at a different scroll location. UI edit-source and selecting a text data block now need explicit calls to scroll to the cursor location. Resolves T87284
2021-04-08Fix T85974: Edit-mode undo/redo causes assertionCampbell Barton
Without legacy-undo, loading memfile undo only cleared edit-mode data for mesh and armature object types. This causes an assertion when loading edit-mode undo steps afterwards for other object types as the existence of this data made entering object mode fail. Resolve this by freeing all objects types undo data from ED_editors_exit
2021-04-08Object: add ED_object_editmode_free_ex utility functionCampbell Barton
2021-04-08Cleanup: rename variable (using underscore separator)Campbell Barton
Prepare for adding another variable that reads poorly without a separator.
2021-04-08Revert "Fix entering edit-mode when object mode and edit-data don't match"Campbell Barton
Before this change, object-data could only have one of the objects referencing it in edit-mode. Reverting since multiple meshes in edit-mode (for the same object data) isn't thread-safe as the evaluated edit-meshes are created in the original edit-mesh, causing a crash updating the depsgraph for linked duplicates, see: T86767. While we could support this case, it's a bigger project without significant benefits, so reinstate the limitation of only allowing a single object to be in edit-mode for each object data. This adds back the error from T85974 which caused an assertion but didn't crash in release builds. This reverts commit 2b60d7d09c51716e8d98834061c1a61ed6b96cf5.
2021-04-08Cleanup: spellingCampbell Barton
2021-04-08LibOverride: Fix several issues with resync code.Bastien Montagne
This commit essentially touches to post-processing of collections and objects after resync itself has been done, to ensure their proper instantiation in the scene: - Remove a lot of the process in resync case (resynced data are assumed to be already instantiated in the scene, unlike override creation case). - For auto-resync, only do post-processing once after all overrides have been resynced (doing it after each individual resynced was causing a lot of instantiation glitches, with a lot of unwanted extra objects and collections being added to the master collection). It also deals in a much more reliable way with detection of objects missing from the scene, by using the new `BKE_scene_objects_as_gset` utils. As a bonus this makes auto-resync process slightly faster (only by a few percents, but that's always good to get).
2021-04-08Outliner Override: Tweak to order of error messages.Bastien Montagne
2021-04-08Outliner: regroup more type of entries under a single icon.Bastien Montagne
In folded view, some type of data are listed as one icon per item, others are 'compacted' as a single icon with a counter. This commit adds bones (edit, normal and pose ones), pose groups and vertex groups as 'compacted' ones in folded view. Part of D10855.
2021-04-08LibOverride: Add a dedicated view in the Outliner.Bastien Montagne
This is a minimal, information-only view currently, listing by default all the override data-blocks, with their user-edited override properties. System-generated overrides (like the overrides of pointers to other override data-blocks) can be shown through a filter option. Finally, potential info or warning messages from (auto-)resync propcess are also shown, as an icon + tooltip next to the affected items. Part of D10855.
2021-04-08Fix T87267: Texture Paint stencil texture not drawingPhilipp Oeser
Typo in {rBafcfc6eb0842}. Maniphest Tasks: T87267 Differential Revision: https://developer.blender.org/D10915
2021-04-07UI: Remove confusing "Unset" context menu entryJulian Eisel
This was added in 37b82a2d260e, doesn't have much purpose and doesn't even do anything in the vast majority of cases. It only affects custom properties. So at the very least it shouldn't be shown for regular RNA property buttons. But even for cases where it may do something, we couldn't find a good use-case. If this operator has use-cases with some add-ons, the add-ons can expose it differently, e.g. with a little 'x' icon next to the button, like it's done in the keymap editor. So removing the context menu entry now. Should this turn out to be a problem, it can be brought back but much more selectively (only where it actually does something). Or we could combine it with "Reset to Default". Differential Revision: https://developer.blender.org/D8727 Reviewed by: Brecht Van Lommel, Hans Goudey
2021-04-07Fix T86463: Colored collection icons don't scale with zoom levelLeon Leno
This patch fixes the issue in T86463 that colored collection icons in the collection search box don't scale according to the zoom level. The issue was caused by the drawing function for the colored collection icons not allowing to change the size of the icons. This patch addresses that by scaling the icon based on the drawing width. Reviewed By: #user_interface, natecraddock, Severin Differential Revision: https://developer.blender.org/D10708
2021-04-07Cleanup: Various cleanup of node link handling functionsHans Goudey
Use LISTBASE_FOREACH macro, rename variables, comment formatting, simplification of logic, etc.
2021-04-06Fix T86889: Rotation with top plane view glitchesGermano Cavalcante
The `InputAngle` function uses a flawed algorithm to fix precision issues. This commit refactor the logic of that function by using BLI utilities. Differential Revision: https://developer.blender.org/D10880
2021-04-06Fix T86932: Curve: pick shortest path missing update of active point drawingPhilipp Oeser
For curves, we need to tag the curve ID_RECALC_COPY_ON_WRITE for batch cache update (same as in {rB24b2fe50f3ec}). Maniphest Tasks: T86932 Differential Revision: https://developer.blender.org/D10826
2021-04-06Fix T48167: Mesh select random factor is not accuratePhilipp Oeser
Selecting random percentage would not reliably guarantee the precise percentage of selected elements now randomize an index array instead and use the precise number of elements from this array. Note that this change has only been made to edit-mesh and should be applied to all random selection operators.
2021-04-053D View Utils: Add 'margin' parameter to 'ED_view3d_depth_read_cached'Germano Cavalcante
Matches the alternative function ED_view3d_autodist_depth, but is more efficient since it uses the cache. No functional changes.
2021-04-05Render: faster animation and re-rendering with Persistent DataBrecht Van Lommel
For Cycles, when enabling the Persistent Data option, the full render data will be preserved from frame-to-frame in animation renders and between re-renders of the scene. This means that any modifier evaluation, BVH building, OpenGL vertex buffer uploads, etc, can be done only once for unchanged objects. This comes at an increased memory cost. Previously there option was named Persistent Images and had a more limited impact on render time and memory. When using multiple view layers, only data from a single view layer is preserved to keep memory usage somewhat under control. However objects shared between view layers are preserved, and so this can speedup such renders as well, even single frame renders. For Eevee and Workbench this option is not available, however these engines will now always reuse the depsgraph for animation and multiple view layers. This can significantly speed up rendering. These engines do not support sharing the depsgraph between re-renders, due to technical issues regarding OpenGL contexts. Support for this could be added if those are solved, see the code comments for details.
2021-04-03Fix inversion of snapping failing in measure toolGermano Cavalcante
Comparison of event change has to be more specific and compare the x and y values of the mouse as well.
2021-04-03Fix T87162: Measure Tool Not WorkingGermano Cavalcante
The non-enabled gizmo was overwriting the projected coordinate value.
2021-04-03UI: Align Spreadsheet Booleans to CenterHarley Acheson
Aligning spreadsheet Booleans to the middle of their cells. Differential Revision: https://developer.blender.org/D10882 Reviewed by Hans Goudey
2021-04-02UI: Align Spreadsheet Reals and Integers to RightHarley Acheson
Aligning spreadsheet cell numbers to the right to aid readability. Differential Revision: https://developer.blender.org/D10871 Reviewed by Hans Goudey
2021-04-02Fix T84520: Make the different weight paint code paths exclusive to each otherSebastian Parborg
Before this change, you could have the new sculpt symmetry code and the older weight paint symmetry code active at the same time. This would lead to users easily trashing their weigh paint data if they were not careful when switching between modes. Now the specific weight paint symmetry code is an exclusive toggle so the user can't accidentally mirror strokes and vertex groups at the same time. This also paves the way of supporting Y and Z symmetry in the future for weight groups mirroring if we decide to add it in the future. Reviewed By: Sybren Differential Revision: http://developer.blender.org/D10426
2021-04-01Cleanup/Refactor: Use flags instead of bool to configure the snap gizmoGermano Cavalcante
This simplifies the addition of future improvements. Also make it more practical to expose as a parameter of gizmo for Python.
2021-04-01Cleanup: Remove unused enum value in editmesh_knife.cGermano Cavalcante
2021-04-01Fix compilation error: "too many arguments to function"Germano Cavalcante
Seem on linux. Caused by rB6ec463a4b754bf69baf94ba6b3683655f6834ccd
2021-04-01Cleanup/Refactor: Transform Orientation: Use 'orient_index' instead ↵Germano Cavalcante
'orient_type' `orient_index` is a more comprehensive value as it reveals both the type and index. Differential Revision: https://developer.blender.org/D9595
2021-04-01BLI: rename resource collector to resource scopeJacques Lucke
Differential Revision: https://developer.blender.org/D10857
2021-04-01Curve: Remove 'CU_2D' flag used for nurbsGermano Cavalcante
This fixes T86440 As the CU_2D flag is set for nurbs, a Curve can have 2D nurbs mixed with 3D. But the UI does not allow this mixing. It updates all nurbs to 2D or 3D when set. So remove this specific flag for nurbs. This may break old files, since 2D curves with mixed 3D are now set as 3D. Differential Revision: https://developer.blender.org/D10738
2021-04-01Nodes: separate node name and display name in bNodeTreePathJacques Lucke
Previously, `node_name` was rarely actually a name of a node. It is set correctly as node name in `ED_node_tree_push`. However, later on it was overwritten by the name of an id data block in `node_draw_space`. Now, the node_name stays the name of the "parent" node. Whereas display_name is the name that will be displayed in the breadcrumbs. With this change, the `node_name` can be used to reconstruct the actual path from the root node tree to the currently visible tree. Differential Revision: https://developer.blender.org/D10874
2021-04-01Fix T50103: Transform not working if scale is zeroCampbell Barton
If any axis of the scale of an object was zero, transforming failed. This was because `td->smtx` was set to a zero matrix. orthogonalize_m3_zero_axes is used to fill in the zeroed axes. Thanks to @filedescriptor for the initial fix: D10869.
2021-04-01Fix T87037: Add tooltip for "Paste Flipped"Falk David
The "Paste Flipped" operator was missing its own tooltip. This patch adds the tooltip by implementing the `get_description` callback for `GRAPH_OT_paste` and `ACTION_OT_paste`. Reviewed By: sybren Maniphest Tasks: T87037 Differential Revision: https://developer.blender.org/D10859
2021-04-01Fix T86331: Preferences menu inaccessible until window resizeHarley Acheson
The RGN_TYPE_EXECUTE region was zero height - with the "Load & Save" button drawing outside of those bounds - so it didn't respond to events. This is because the region started off this size and does not change with simply adding the buttons. Although it has RGN_FLAG_DYNAMIC_SIZE, delayed reinit of regions is only currently supported on headers. This gives the execute region an initial (minimum) vertical size but also makes the region **hidden** by default. - Showing Prefs as an editor among others it will show the header but not the execute region. - Showing the Prefs in a popup window, hides the header region and shows the execute region. Ref D10636
2021-04-01Cleanup: clang formatCampbell Barton