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-06-15Merge branch 'master' into temp-viewport-compositor-mergeOmar Emara
2022-06-15UI: Icons - Rename Density and Slide sculpt curve iconsDalai Felinto
Those tools will get renamed to follow the standard we have for the other tools (i.e., add sculpt_ in their name).
2022-06-15Fix T98765: Regression: Unable to select mask points in clip editorSergey Sharybin
Re-organize de-selection so that there is less conflict between tracking and masking operators. Still not fully ideal: the LMB selection does not de-select everything now since the `mask.select` with `deselect_all` is only added to the keymap when the RMB is the select mouse. While this is sub-optimal, this seems to be how mask selection behaved in the Image Editor in 3.1. Not sure it worth looking into a more complete fix, as it will likely be too big to be safe for a corrective release. Differential Revision: https://developer.blender.org/D15183
2022-06-14Cleanup: Move function definition to correct fileRichard Antalik
Function `SEQ_transform_handle_overlap` was declared in sequencer module header file, but it was defined in editor/transform module. Move definition to sequencer module.
2022-06-14Fix T72831: Incorrect animation handling when strips overlapRichard Antalik
Function `SEQ_transform_seqbase_shuffle_time` did not have access to strip effects, and therefore could not handle their animation. Since now transformation knows what strips can't be directly moved, but their position depends on other strips, this collection of strips is passed as argument, so animation can be offset correctly.
2022-06-14Fix T98168: Meta strips do not copy animation to another sceneRichard Antalik
Copy animation for strips that are inside metas.
2022-06-14Fix T98797: VSE Slip Strip Contents doesn't work properlyRichard Antalik
Caused by oversight in 7afcfe111aac - code relied on fact, that strip boundary holds old value until updated. Calculate new offsets based on stored orignal offsets.
2022-06-14Cleanup: Snake case for variable nameHans Goudey
2022-06-14Attributes: Add null check in color attribute duplicate operatorHans Goudey
It's potentially possible that the attribute duplication could fail, for whetever reason. There is no great reason not to be safe in this high-level code.
2022-06-14Attributes: Adjustments to duplicate attribute API functionHans Goudey
Use a name argument, for the same reasons as 6eea5f70e3b79e3c668. Also reuse the layer and unique name creation in `BKE_id_attribute_new` instead of reimplementing it. Also include a few miscellaneous cleanups like using const variables and `std::string`.
2022-06-14Outliner: Sanitize material unlinking callback, report errorsJulian Eisel
The callback would just assume that it's only called on materials, which may in fact not be the case. It could also be called for other ID types and layer collections (see `outliner_do_libdata_operation()`). Properly check this now. Also avoid faling silently when the object or object-data to unlink from couldn't be determined. Report this to the user. Operators that just do nothing are confusing.
2022-06-14Fix T98753: Outliner Unlink material in Blender File mode crashesJulian Eisel
This issue was only exposed by ba49345705a3. The ID pointer of the material's parent tree-element wasn't actually pointing to an ID, but to the list-base containing the IDs. It was just unlikely to cause issues in practice, although an assert was thrown. Just don't do anything if the object or object-data to unlink the material from could not be found. The following commit will introduce a error message about this.
2022-06-14Fix: Don't allow duplicate color attribute operator in edit modeHans Goudey
The internal function relies on `CustomData_copy_data_layer` currently, which doesn't work for BMesh. Support could be added as a special case for BMesh, but in the meantime avoid bugs by just changing the poll.
2022-06-14Fix T98813: crash with GPU subdiv in edit mode and instanced geometryBrecht Van Lommel
Instancing with geometry nodes uses just the evaluated Mesh, and ignores the Object that it came from. That meant that it would try to look up the subsurf modifier on the instancer object which does not have the subsurf modifier. Instead of storing a session UUID and looking up the modifier data, store a point to the subsurf modifier runtime data. Unlike the modifier data, this runtime data is preserved across depsgraph CoW. It must be for the subdiv descriptor contained in it to stay valid along with the draw cache. As a bonus, this moves various Mesh_Runtime variables into the subsurf runtime data, reducing memory usage for meshes not using subdivision surfaces. Also fixes T98693, issues with subdivision level >= 8 due to integer overflow. Differential Revision: https://developer.blender.org/D15184
2022-06-14Fix T98715: Crash drag-dropping collection from outliner to ID propertyJulian Eisel
The value of disabled buttons shouldn't be changed through dropping onto it. Check for the disabled state in the drop operator poll, so the dragging code will change the cursor to show that dropping isn't possible at the given cursor location.
2022-06-14obj: vertex colors support in importer and exporterAras Pranckevicius
Adds support for vertex colors to OBJ I/O. Importer: - Supports both "xyzrgb" and "MRGB" vertex color formats. - Whenever vertex color is present in the file for a model, it is imported and a Color attribute is created (per-vertex, full float color data type). Color coming from the file is assumed to be sRGB, and is converted to linear upon import. Exporter: - Option to export the vertex colors. Defaults to "off", since not all 3rd party software supports vertex colors. - When the option is "on", if a mesh has a color attribute layer, the active one is exported in "xyzrgb" form. If the mesh has per-face-corner colors, they are averaged on the vertices. Colors are converted from linear to sRGB upon export. Reviewed By: Howard Trickey Differential Revision: https://developer.blender.org/D15159
2022-06-14Merge branch 'master' into temp-viewport-compositor-mergeOmar Emara
2022-06-13Outliner performance: Only expand sub-trees if neededJulian Eisel
Before this, we would build the sub-trees of some elements, just to remove them afterwards. In big files, this would sometimes build ten thousands of elements unnecessarily. Now support not building those sub-trees in the first place. Performance tests in a Sprite Fright production file (release build): - View Layer display mode, reduced Outliner tree rebuilding from ~45ms to 12-17ms - Library Overrides display mode, Hierarchies view, reduced tree rebuilding from 5-6s(!) to 220ms
2022-06-13Fix T94499: Knife missed clipping checkCian Jinks
The knife BVH raycast functionality was missing a check to discard points which were clipped.
2022-06-13Fix T93469: Image not moving in proportion to mouseRichard Antalik
Apply scale factor when preview aspect ratio is not 1:1.
2022-06-13Cleanup: Move dragging code for buttons to own fileJulian Eisel
Moves code for managing dragging data from buttons to a separate file. This way all this closely related code is in one location, making it easier to see how it all relates, and easier to find.
2022-06-12Fix T98745: Anchored mode not working for sculpt smear brushJoseph Eagar
2022-06-12Fix unreported: Choose nsegments for 2D rotation gizmo based on screen scale.Chris Blackbourn
This mostly affects large rotation gizmos at high DPI. Without this patch, they appear as 32-gons instead of circles.
2022-06-12Fix unreported: 2D Gizmo bounding box updated to use gizmo scale.Chris Blackbourn
2022-06-10USD import: Handle material name collisionsMichael Kowalski
This is a partial fix for T90535. Added Material Name Collision USD import menu option, to specify the behavior when USD materials in different namespaces have the same name. The Material Name Collision menu options are - Make Unique: Import each USD material as a unique Blender material. - Reference Existing: If a material with the same name already exists, reference that instead of importing. Previously, the default behavior was to always keep the existing material. This was causing an issue in the ALab scene, where dozens of different USD materials all have the same name, usdpreviewsurface1, so that only one instance of these materials would be imported. Reviewed by: Sybren Differential Revision: https://developer.blender.org/D14869
2022-06-10LibOverride: Consider animated/driven properties as part of the 'system ↵Bastien Montagne
override' ones in the Outliner. Conceptually animated/driven properties are not controlled by the liboverride system anymore, even though they may generate override operations. So consider them as part of the 'system overrides' category, and hide them by default in the Outliner.
2022-06-10Liboverride: Add rna array index return value to ↵Bastien Montagne
`BKE_lib_override_rna_property_find`. Very useful e.g. for dealing with FCurves search.
2022-06-10Fix T98756: GPencil Set Vertex Color Attribute does not color unpaintedAntonio Vazquez
The operator set the color but the factor of the mix value was not updated and as the default value was 0, the color was not vivible and only worked when the stroke was previously painted.
2022-06-10Cleanup: Clang tidyHans Goudey
2022-06-09UI: Sculpt Curves Slide iconDalai Felinto
2022-06-09Fix: Crash in selection paint brush with empty curvesHans Goudey
2022-06-09Cleanup: use const variables & argumentsCampbell Barton
2022-06-09Fix T98686: Cant rename local NLA tracks within a local library override ↵Bastien Montagne
data-block. We need a specific exception to general rule 'no rename of anim channels in liboverride data' for the locally-inserted NLA tracks.
2022-06-09Cleanup: return true/false instead of 0/1 when returnin boolean.Bastien Montagne
2022-06-09UI: Tooltip Edit - Copy to selected buttonAaron Carlisle
This commit changes the tool tip for the "Copy To Selected Button" operator. The exiting tool tip for this operator suggests that it will "copy property to selected objects or bones". However, it will only copies the property value to the selected objects or bones if the property already exists on the selected items. It does not copy the property. Differential Revision: https://developer.blender.org/D14528
2022-06-09Fix T98688: Snapping not working in curve objects with evaluated geometryGermano Cavalcante
It's an old behavior. Not really considered a bug. But snapping to faces is already supported in this case. And allowing snapping to other elements is not disruptive.
2022-06-09Cleanup: spelling in comments & variablesCampbell Barton
2022-06-09Cleanup: warningsCampbell Barton
2022-06-09Cleanup: formatCampbell Barton
2022-06-09Fix assert triggered when snapping to evaluated geometry of a CurveGermano Cavalcante
Curves can have a Mesh evaluated, but only objects of type Mesh have EditMesh. This bug is harmless because `sctx->editmesh_caches.remove(value)` only works with pointers and `BKE_editmesh_from_object(ob_eval)`, even though it doesn't actually return a `BMEditMesh`, it still returns a pointer that doesn't exist as a key.
2022-06-09Fix armatures not visible in VRPeter Kim
Now that VR offscreen drawing accounts for object type visibility, armatures should be displayed when specified.
2022-06-08Paint: Fix Image Editor Cursor Disappearing (T90120)Joseph Eagar
This patch fixes T90120. The fundamental problem is that 2d and the old 3d paint modes share a single Paint struct, ToolSettings->imapaint. This patch is a temporary fix until the new 3d paint mode (which has its own Paint struct) is released. The patch works by listening for `NC_SCENE|ND_MODE` inside `image_listener` in `space_image.c`. It does not use `ED_space_image_paint_update` since that requires a `bMain.` Instead it calls `paint_cursor_start` (which is promoted to `ED_paint_cursor_start`). `image_paint_poll` is also promoted to an `ED_` function. Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D14946 Ref D14946
2022-06-08D14823: Adds operator to duplicate the active color attribute layerDennis Ranish
Fixes T97706 Adds operator to duplicate the active color attribute layer. Adds `"Color Attribute Specials"` menu to color attribute ui to access the `"geometry.color_attribute_duplicate"` operator. Internally adds a function that duplicates a referenced CustomDataLayer - `BKE_id_attribute_duplicate` mostly copies the existing `BKE_id_attribute_new` - but gets the type and domain from the referenced layer - and copies the data from the old layer into the new layer Reviewed By: Joseph Eagar & Hans Goudey & Julien Kaspar Differential Revision: https://developer.blender.org/D14823 Ref D14823
2022-06-08D15085: Fix numbers jumping in edit voxel size widgetRamil Roosileht
Introduces an option for BKE_unit_value_as_string to skip stripping of zeroes, thus reducing flickering when using edit voxel size widget. {F13125416} Reviewed By: Julien Kaspar & Joseph Eagar Differential Revision: https://developer.blender.org/D15085 Ref D15085
2022-06-08Fix T98624: Curve Pen NURBS extrusion creates duplicatesDilith Jayakody
The initial point count check was only being done for Bezier curves. This revision fixes T98624 by adding the check for NURBS curves as well. Reviewed By: HooglyBoogly Maniphest Tasks: T98624 Differential Revision: https://developer.blender.org/D15140
2022-06-08Cleanup: Move sculpt_automasking.c to c++Joseph Eagar
2022-06-08Fix T98565: remove unused BRUSH_PAINT icon definitionPhilipp Oeser
This could spam the console with errors (potentionally slowing down in cases). Was added in rBeae36be372a6, but not used. Maniphest Tasks: T98565 Differential Revision: https://developer.blender.org/D15113
2022-06-08Cleanup: Use const variables/pointersHans Goudey
2022-06-08Attributes: Use names instead of layers for some functionsHans Goudey
This mirrors the C++ attribute API better, separates the implementation of attributes from CustomData slightly, and makes functions simpler, clearer, and safer. Also fix an issue with removing an attribute caused by 97712b018df71c meant the first attribute with the given type was removed instead of the attribute with the given name.
2022-06-08Fix: Improve poll for convert attribute operatorHans Goudey
Converting an attribute does not work from edit mode because there is no attribute API implemented for BMesh, so disable the operation in that mode and add a poll message.