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-08-02Cleanup: Simplify functions for adding and removing color attributesHans Goudey
The specific functions for vertex colors and and sculpt vertex colors can be replaced by more generic attribute functions internally. Also remove a paramter from one function.
2022-08-02Cleanup: Remove unused sculpt and vertex color operatorsHans Goudey
The "Color Attributes" system from f7bbc7cdbb6cb0d2850 has replaced both "Sculpt Vertex Colors" and "Vertex Colors" in the UI. The Operators for adding and removing them are unused now. This commit does not break backwards compatibility with the Python API, it only removes the operators, which generally aren't used by addons anyway. The mesh RNA properties will be removed in 4.0 (T100153). Differential Revision: https://developer.blender.org/D15077
2022-08-02Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-08-02Object: move collection resync after empty duplicate early-outAras Pranckevicius
As pointed out in rB02b1a209be88 comment, the BKE_main_collection_sync should be after "nothing to duplicate" early-out.
2022-08-02Fix T99255: Strips inserting incorrectlySebastian Parborg
When dropping file to sequencer timeline, coordinates for strip position and overlap handling are used even if not set. Reset internal state in on_drag_start callback and set is_modal variable only if coordinates are updated. This way when dragging file from external file browser, strip is added at current frame as before modal operator was implemented. Reviewed By: Richard Antalik Differential Revision: http://developer.blender.org/D15333
2022-08-02Merge branch 'blender-v3.3-release'Hans Goudey
2022-08-02Fix T96810: Invalid sculpt normals after some operationsHans Goudey
Mask and color brushes were using the existing PBVH vertex "update tag" to mark their modifications. This was mostly unnecessary, and causes unnecessary calculation of normals. It also caused errors though, because they didn't tag the corresponding PBVH node for normal recalculation, causing problems on the borders of nodes, since one node might accumulate into another's vertex normals, but the other node wouldn't also accumulate and normalize the normals. The solution is to only use the update tag for tagging deformed vertices that need recalculated normals. Everything else is handled at the PBVH node level (which was already the case, but it wasn't clear). The update tag was also used for undo to tag the nodes corresponding to changed vertices. This was wrong though, because normals and visibility would also be recalculated for just color or mask undo steps. Instead, just use local arrays to map from vertices to nodes. Differential Revision: https://developer.blender.org/D15581
2022-08-02Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-02LibOverride: Add 'editable/clear' toggle to ID template.Bastien Montagne
Now when an ID template is set to an override ID, `Shift-Click` on the right button toggles between making it user-editable (if it's a system override), or clearing any user edit and setting it back to system override.
2022-08-02Merge branch 'blender-v3.3-release'Bastien Montagne
2022-08-02Fix Unreported : add F-curves only filter to functions only appliable to ↵Amelie Fondevilla
F-curves channels. The filter was missing in some places that are using channel data as if it was f-curve channel. There seems to be no related issue or bug, but still it would be best to have them there. Reviewed By: sybren Differential Revision: http://developer.blender.org/D15505
2022-08-02GPencil: Allow import several SVG at timeAntonio Vazquez
For SVG is very convenient to be able to import several SVG in one operation. Each SVG is imported as a new Grease Pencil object. Also, now the SVG file name is used as Object name. Important: As all SVG imported are converted to Grease Pencil object in the same location of the 3D cursor, the SVG imported are not moved and the result may require a manual fix of location. The same is applied for depth order, the files are imported in alphabetic order according to the File list. Reviewed By: mendio, pepeland Differential Revision: https://developer.blender.org/D14865
2022-08-02Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-08-02Fix T100118: Crash after Shift+D with nothing selected and then making new ↵Aras Pranckevicius
object Regression from rB2d041fc46823, the "nothing to do, return" code path was not re-enabling layer collection sync. Fixes T100118.
2022-08-02Nodes: Remove node after link drag search cancelHans Goudey
Remove the node if the transform operation is cancelled rather than confirmed. This is consistent with the regular search menu.
2022-08-02Cleanup: simplify function for adding node to editorHans Goudey
Split it into two functions, one for static node types, and another for ID names.
2022-08-01Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-08-01Fix T100040: Crash when transform applied on multi-user imagePratik Borhade
Affected by rB8621fdb10dc4 Crash if single-user data is created when we apply transform on multi-user image data. Crash occurs because creation of new copy was not handled in `single_obdata_users` for empty objects (image for example) Reviewed By: dfelinto, mont29 Maniphest Tasks: T100040 Differential Revision: https://developer.blender.org/D15587
2022-08-01Merge branch 'blender-v3.3-release'Aras Pranckevicius
2022-08-01Fix T100076: OBJ import: new importer doesn't use //relative/image/pathsAras Pranckevicius
The Python based importer had logic to immediately turn image paths into relative-to-blender-file paths, if user preference for relative paths is used (which is on by default). The new importer code did not have that. Fixes T100076.
2022-08-01Cleanup: missing braces warningCampbell Barton
2022-07-31Merge branch 'blender-v3.3-release'Antonio Vazquez
2022-07-31Fix T100086: GPencil Bezier curve edit not updated after smoothingAntonio Vazquez
The stroke was recalculated, but the curve data was not updated.
2022-07-31Cleanup: Move interface_region_tooltip.c and header to C++Hans Goudey
2022-07-30UI: UI_MENU_ARROW_SEP Unicode CharacterHarley Acheson
Use a smaller arrow text character as menu item separator. See D15578 for examples and details. Differential Revision: https://developer.blender.org/D15578 Reviewed by Julian Eisel
2022-07-30UV: Add options for uv select similar in island modeChris Blackbourn
In island selection mode, add new options for uv select similar: * Area UV * Area 3D * Face (number of faces in island) See also https://developer.blender.org/T47437 Differential Revision: https://developer.blender.org/D15553
2022-07-30Cleanup: Clang tidyHans Goudey
2022-07-30Cleanup: Move five interface files to C++Hans Goudey
Builds on all four platforms on the buildbot. Includes clang tidy fixes.
2022-07-30Sculpt: fix broken triangle/vertex count for DynTopoJoseph Eagar
2022-07-30Sculpt: Opaque vertex type for sculptJoseph Eagar
This is a port of sculpt-dev's `SculptVertRef` refactor (note that `SculptVertRef was renamed to PBVHVertRef`) to master. `PBVHVertRef` is a structure that abstracts the concept of a vertex in the sculpt code; it's simply an `intptr_t` wrapped in a struct. For `PBVH_FACES` and `PBVH_GRIDS` this struct stores a vertex index, but for `BMesh` it stores a direct pointer to a BMVert. The intptr_t is wrapped in a struct to prevent the accidental usage of it as an index. There are many reasons to do this: * Right now `BMesh` verts are not logical sculpt verts; to use the sculpt API they must first be converted to indices. This requires a lot of indirect lookups into tables, leading to performance loss. It has also led to greater code complexity and duplication. * Having an abstract vertex type makes it feasible to have one unified temporary attribute API for all three PBVH modes, which in turn made it rather trivial to port sculpt brushes to DynTopo in sculpt-dev (e.g. the layer brush, draw sharp, the smooth brushes, the paint brushes, etc). This attribute API will be in a future patch. * We need to do this anyway for the eventual move to C++. Differential Revision: https://developer.blender.org/D14272 Reviewed By: Brecht Van Lommel Ref D14272
2022-07-30Sculpt: fix name collision in DynTopo temp attributesJoseph Eagar
The attributes PBVH_BMESH uss to store the owning node for vertices and faces were being created with the same name, which is no long allowed.
2022-07-29Cleanup: Replace reinterpret_cast<> with static_cast<> in UI codeJulian Eisel
2022-07-29Cleanup: Move RNA path functions into own C++ fileJulian Eisel
Adds `rna_path.cc` and `RNA_path.h`. `rna_access.c` is a quite big file, which makes it rather hard and inconvenient to navigate. RNA path functions form a nicely coherent unit that can stand well on it's own, so it makes sense to split them off to mitigate the problem. Moreover, I was looking into refactoring the quite convoluted/overloaded `rna_path_parse()`, and found that some C++ features may help greatly with that. So having that code compile in C++ would be helpful to attempt that. Differential Revision: https://developer.blender.org/D15540 Reviewed by: Brecht Van Lommel, Campbell Barton, Bastien Montagne
2022-07-29Render: Propagate view updates to draw enginesOmar Emara
Currently, draw engines are not notified of view updates if a render engine is active and was updated. It is unclear why this is the case currently, but this behavior was part of the initial commit. This patch propagates view updates regardless if the update was handled by an active render engine. This is needed by the realtime compositor as it implements logic for view updates, which currently does not execute if Cycles is rendering for instance. Differential Revision: https://developer.blender.org/D15207 Reviewed By: Brecht
2022-07-29Merge branch 'blender-v3.3-release'Hans Goudey
2022-07-29Fix T99761: Curves sculpt mode crash with empty curvesHans Goudey
The virtual arrays may be null if the curves are empty, it's simple to just skip the domain interpolation completely.
2022-07-29Cleanup: Nodes: Store node group idname in tree typeHans Goudey
There was already a utility to retrieve the correct node group idname from the context, `node_group_idname`, but often it's clearer to use lower-level arguments, or the context isn't accessible. Storing the group idname in the tree type makes it accessible without rewriting it elsewhere.
2022-07-29Merge branch 'blender-v3.3-release'Hans Goudey
2022-07-29Fix: Grammar mistake in info messageHans Goudey
2022-07-29Cleanup: Use LISTBASE_FOREACH macroHans Goudey
2022-07-29Cleanup: Use const context argument for UIList callbacksHans Goudey
2022-07-28Merge branch 'blender-v3.3-release'Jacques Lucke
2022-07-28Curves: improve handling of empty surface meshesJacques Lucke
2022-07-27Curves: Avoid virtual function overhead when finding selected curvesHans Goudey
This showed up on a profile of sculpting with the comb brush. Use a span instead of a virtual array.
2022-07-27Fix T99870 : Prevents crash when rearranging channels in dopesheetAmelie Fondevilla
The function to rearrange channels only works for F-curves channels for now, adding the `FCURVESONLY` filter prevents the function to be called for grease pencil channels, thereby fixing the crash. Reviewed by : sybren Differential Revision: http://developer.blender.org/D15504
2022-07-27Sculpt: Remove debug printfJun Mizutani
Reviewed By: Joseph Eagar Differential Revision: D15547 Ref D15547
2022-07-27Nodes: Allow using escape key to exit node resizingHans Goudey
2022-07-26Fix T98982: cannot change default value of some node group input typesJacques Lucke
2022-07-26Fix T99373: add some padding in spreadsheet vector columnsJacques Lucke
This improves readability in some cases (e.g. in T99373).
2022-07-26default N-panel open for animation editorsNate Rupsis
The Graph, Driver, and Dopesheet's (and sub modes) properties panel (N-Panel) are now open by default. This includes the editors in the default Animation workspace. Note that, because the Timeline is implemented as a special mode of the Dopesheet, switching between Timeline and Dopesheet will *not* change the visibility of the properties panel. Maniphest Tasks: T97980 Differential Revision: https://developer.blender.org/D14910