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-02-27Fix error converting simulated events press/release to clicksCampbell Barton
Move logic that sets previous event state into WM_event_add_simulate.
2021-02-27RNA: add Region.data member to access RegionView3DCampbell Barton
Without this, the RegionView3D could only be accessed from `context.region_data`, not the region.
2021-02-27Geometry Nodes: Add "Location" output to Attribute Proximity nodeVictor-Louis De Gusseme
This patch adds an output field to the Attribute Proximity node and renames the existing string socket from "Result" to "Distance". - The "Distance" output contains distance to the closest position on the Target geometry. - The new "Location" output contains the coordinates of the closest position on the Target geometry. A basic use case for this data is a simple shrinkwrap operation. Differential Revision: https://developer.blender.org/D10415
2021-02-26Fix crash with dyntopo on tools that use cached vertex infoPablo Dobarro
Tools can cache data related to the mesh topology for later use. This data is indexed by vertex index, so it will be invalid after dyntopo changes the topology during the stroke. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10550
2021-02-26Fix (unreported) missing 3DView update after some Outliner Override operations.Bastien Montagne
2021-02-26Cleanup: Use find_first_not_of.Jeroen Bakker
2021-02-26Fix: Compile issue Windows.Jeroen Bakker
2021-02-26Cryptomatte: Manifest Parsing.Jeroen Bakker
This patch adds manifest parsing to Cryptomatte. Normally when loading cryptomatte layer from an OpenEXR file the manifest contains data to convert a hash to its original name of the object/material. In the future we want to use this to support lookup of cryptomatte hashes and show it to the user. Currently this logic isn't available to users (for now), but is required by D3959 where a new cryptomatte workflow is implemented.
2021-02-26GPencil: Cancel Fill if the filled area is not closedAntonio Vazquez
Fill only if it never comes in contact with an edge. It is better not to fill than to fill the entire area, as this is confusing for the artist. Differential Revision: https://developer.blender.org/D10536
2021-02-26Assets: Preview rendering for Action datablocksSybren A. Stüvel
Render previews for Action datablocks by rendering the scene camera with the Workbench (solid) engine. The //look// can be configured by setting the scene's render engine to Workbench and editing the scene's shading properties. It is assumed that the pose has already been applied and that the scene camera is capturing the pose. In other words, the render function just renders from the scene camera without evaluating/applying the Action stored in `preview->id`. The ID is only used to determine its type and to store the resulting preview. Not all code paths that lead to the `action_preview_render()` function actually provide a depsgraph. The "Refresh Asset Preview" button (`ED_OT_lib_id_generate_preview`) does, but `WM_OT_previews_ensure` does not. Reviewed By: Severin Differential Revision: https://developer.blender.org/D10543
2021-02-26UX: Readfile: Libraries error messages: avoid wall of warnings.Bastien Montagne
When a lot of libraries or linked IDs were missing/not found when loading a .blend file, Blender used to show one warning report for each missing item, potentially covering the user's screen with a giant unuable popup. Now it will instead generate a single warning with amount of missing lib files and linked IDs. Each missing item is still reported individually, but only as `INFO`, so it will still show up in the console or Info editor.
2021-02-26Cleanup: use early exitCampbell Barton
2021-02-26Cleanup: use boolean argumentsCampbell Barton
2021-02-26Fix particle-edit crash on undo/redoCampbell Barton
Undo/redo was crashing & asserting. There ware two bugs: - Entering particle system edit-mode requires an evaluated depsgraph. - The active object could get out of sync when undo/redo moves between different modes. The new test 'view3d_mesh_particle_edit_mode_simple' in `tests/ui_simulate/test_undo.py` exposes both issues.
2021-02-26Undo: use low level API calls to enable font edit-modeCampbell Barton
While I couldn't redo a bug in this case, it's possible for the active object to become out of sync in rare cases, so best use these functions.
2021-02-26Undo: don't log an error when the undo limit has been exceededCampbell Barton
2021-02-26Cleanup: move comment into function doc-stringCampbell Barton
2021-02-26Cleanup: Clang FormatAaron Carlisle
2021-02-26Fix T84953: Incorrect tooltip for dragging collectionsHans Goudey
"Shift to parent" does not make any sense for collections since they don't have parenting like objects. This commit just adds a simple check for whether the first drag ID is an object before displaying that part of the message. Differential Revision: https://developer.blender.org/D10203
2021-02-25Icons: Add icon for the upcoming spreadsheet editorJulian Eisel
The editor is being worked on by the geometry nodes team. Icon created by Andrzej Ambroz (jendrzych). Addresses https://developer.blender.org/T85925.
2021-02-25Improve Purge operator.Bastien Montagne
The Purge operator to remove unused IDs can now also remove 'indirectly unused' data-blocks (those only used by unused ones, recursively). It can also now only operate on linked, or on local data. All those options are exposed in the `File -> Cleanup` main menu. The behavior of the `Purge` button in the Outliner remains unchanged, needs some UI/UX design task for that.
2021-02-25Py API: update `bpy.data.orphans_purge` to support new options.Bastien Montagne
This API function can now purge recursively in a single call, and choose to ignore (not purge) local or linked IDs. Default behavior (with not argument) remains unchanged, so no API breackage here.
2021-02-25Fix (unreported) bad usercount handling in batch ID deletion.Bastien Montagne
This was rather obscure and non-critical issue, but in some cases ID usercount of some deleted IDs from batch-deletion code would not be properly nullified, which would then assert later in actual deletion code.
2021-02-25BKE_lib_query: Add a function to detect and tag all unused IDs.Bastien Montagne
With the option to detect orphaned data recursively (i.e. if ID `a` is the only user of ID `b`, and ID `a` is unused, ID `b` will also get tagged as unused). To be used by the Purge operation.
2021-02-25UI: Fix icon width and padding in search menusHans Goudey
Previously the padding size and the width saved for the icon were constant regardless of the zoom level. This resulted in overlapping icons and text, and ugly padding with more extreme zoom levels. We can retrieve the size of the row from the `rect` argument.
2021-02-25BLI: simplify adding an arbitrary value to a resource containerJacques Lucke
With this is becomes easily possible to store a lambda in a resource collector so that it will be freed when the resource collector is freed.
2021-02-25Cleanup: quiet warningJacques Lucke
"loop variable 'item' is always a copy because the range of type ..."
2021-02-25Fix T85959 EEVEE: DOF with "Jitter Camera" brokenClément Foucault
Was caused by recent changes in window_translate_m4 by rBbb2af40ec7dd.
2021-02-25Fix T85979: Attribute missing warning with empty geometryHans Goudey
An error doesn't make sense in these situations because we don't expect to find attributes on empty geometry, and an empty geometry set is a valid situation. Note that we can't use `component.is_empty` here, because often the component is visually "empty" but still has a point cloud with no points or a mesh with no vertices.
2021-02-25Fix T85976: Outliner crash deleting collection with multiple windowsCampbell Barton
2021-02-25Refactor: IDTypeInfo: Add `owner_get` to get owner of embedded IDs.Bastien Montagne
This concerns currently only collections (`master_collection` of scenes) and root node trees. It removes the matching type-specific helpers (`BKE_collection_master_scene_search` and `BKE_node_tree_find_owner_ID`). No functional change expected here. NOTE: Current implementation of `owner_get` is far from optimal, we could probably do it better, see {T69169}. NOTE: While it could also have it, shapekeys IDTypeInfo was left out of this change for now. Mainly because it sould not be used currently, and we ultimately want to demote shape keys from ID status anyway.
2021-02-25Cleanup: spellingCampbell Barton
2021-02-25Cleanup: remove assert left in by accident, outdated commentCampbell Barton
2021-02-25Fix T85975: Edit-mode undo/redo removes overlaysCampbell Barton
Setting the active object when decoding undo steps missed a call to ED_object_base_active_refresh.
2021-02-25Fix T85974: Edit-mode undo/redo causes assertionCampbell Barton
Assert the poll function succeeds after setting the active object.
2021-02-25Fix entering edit-mode when object mode and edit-data don't matchCampbell Barton
In rare cases, it's possible for an object to have edit-mode data without it's Object.mode set to edit-mode. This could happen with undo, part of fix for: T85974.
2021-02-25Cleanup: use low level edit-object access functions for undoCampbell Barton
Use OBEDIT_FROM_VIEW_LAYER macro for curve & fonts (matching edit-mesh). While the difference isn't significant at the moment, there are no reason these should be different between undo systems.
2021-02-25PyAPI: expose imbuf.types.ImBuf, include in API docsCampbell Barton
Without this, the ImBuf type wasn't part of documentation.
2021-02-25Fix T85963: Combine and separate XYZ nodes don't work on instancesHans Goudey
They were missing the `geometry_set_realize_instances` function used to make any input instances real for writing.
2021-02-24Cleanup: Remove unused node editor button event definesHans Goudey
These defines seem to be left over from the initial implementation of the node editor. In a few places the values were used in button creation, but the callbacks never checked the value anyway. Node uiBlocks also had a callback what would never do anything since the value it checked for was never used.
2021-02-24UI: Clean up "Dupli" to "Instance"Yevgeny Makarov
Following the naming conventions defined in T56648, where in this instance there were still a few remaining uses of the old term. Differential Revision: https://developer.blender.org/D9817
2021-02-24UI: Clean up use of the term "Metaballs"Yevgeny Makarov
Clear the weird term "Metaelement". These are the metaballs (elements) inside one metaball objects. - "Meta Ball" to "Metaball" - "Metaelement", "Meta element" to "Metaball element" Differential Revision: https://developer.blender.org/D9910
2021-02-24UI: Cleanup and fix labels and descriptions in various placesYevgeny Makarov
Changes include using proper and consistent grammar, simplifying phrasing, using correct terminology, and not including python API identifiers in tooltips. Differential Revision: https://developer.blender.org/D9924
2021-02-24Revert "t"Germano Cavalcante
This reverts commit d3a96e5022e121426c8926d0507effe4e9b4005f.
2021-02-24Fix T85823: bpy.ops.transform... ignoring 'center_override' for Bezier ↵Germano Cavalcante
control points `transform_around_single_fallback_ex` ignored that the center could be overwritten.
2021-02-24tGermano Cavalcante
2021-02-24UI: Reorder mesh merge operator types for consistent shortcutsHans Goudey
In vertex selection mode, the "At First" and "At Last" options are contextually added to the beginning of the list of merge operations. This means the automatic shortcuts in the merge menu are different, making learning the shortcuts much more difficult than necessary. This patch reorders the items so that "At First" and "At Last" are added after the first three options so the shortcuts are always consistent. Fixes T84335 Differential Revision: https://developer.blender.org/D10008
2021-02-24UI: Make node virtual sockets more visibleFabian Schempp
This commit tweaks how virtual sockets (unconnected node group input and output sockets) are drawn to make them more recognizable. The outline is changed to a gray color, and they get a dark inner color. Differential Revision: https://developer.blender.org/D10080
2021-02-24Cleanup: Clang tidy else after returnHans Goudey
2021-02-24PyAPI: Ensure GIL state only when a callback existsGermano Cavalcante
There are fewer python callbacks than `ARegionType`s. This also broke GTests's `bf_blenderloader_tests`.