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-03-07Merge branch 'blender-v3.1-release'Campbell Barton
2022-03-07Fix T96205: Active shape key gets lost upon edit mode undoCampbell Barton
Regression in d961adb866cc2d7a95e4c6a7f06c49e346ec1abe, it's important that for the Mesh used for undo storage matches the shape-key instead of using the coordinates of the Basis key. Prior to bfdbc78466ac14d45f353db9aa39cb21bb962701 a different method of restoring the basis shape-key coordinates was used (restoring from the input `Mesh.mvert` array). When undo wrote the edit-mesh into the mesh this was always NULL so the basis shape keys coordinates were never used. Now a parameter has been added so undo can use the active shape for the meshes vertex coordinates. Reviewed By: sergey Maniphest Tasks: T96205 Ref D14258
2022-03-07Revert "Fix Crash: Switching to wireframe mode."Campbell Barton
This reverts commit cb986446e29a51b07bdb73b999a0339df5ecdeb4.
2022-03-07Fix T96163: Image editor doesn't refresh when undo/redo.Jeroen Bakker
Undo would invalidate image owned GPU textures only. Textures that are owned by the editor were not refreshed. This patch would invalidate all the GPU textures by marking the whole image dirty. This can be improved later as we could add partial updates of GPU textures. Reviewed By: mont29 Maniphest Tasks: T96163 Differential Revision: https://developer.blender.org/D14259
2022-03-07Merge branch 'blender-v3.1-release'Richard Antalik
2022-03-07Fix T96156: Snap to 3D cursor can't be undoneRichard Antalik
Caused by oversight in 2bcf93bbbeb. Operator returns `OPERATOR_CANCELLED` when it should return `OPERATOR_FINISHED`. Reviewed By: mano-wii, campbellbarton Differential Revision: https://developer.blender.org/D14243
2022-03-07Curve: sync active material with selectionRed Mser
Changing active spline updates active material index. Reviewed By: campbellbarton Ref D14250
2022-03-07Cleanup: use doxy-sections for pipeline, text_drag & effectsCampbell Barton
Also improve on the doc-string for RE_RenderFrame & RE_RenderAnim.
2022-03-05Fix T96152: Crash realizing curve instancesHans Goudey
The "curve_type" was transferred to instances because it isn't a built-in curve attribute. Then it was interpolated as a point domain attribute from the instance domain in the realize instances node. The fix was just missing from 9ec12c26f16ea3da1e6de95d5. `curve_type` needs to be marked as a built-in attribute.
2022-03-04Fix T96164: Crash with curve domain attributesHans Goudey
When converting from the new type to the old, the curve domain attributes weren't properly resized, so their data was not properly allocated.
2022-03-04Fix T96160: freezing when using multiple Handle Type Selection nodesJacques Lucke
Differential Revision: https://developer.blender.org/D14245
2022-03-04Cleanup: Unused variable warningsHans Goudey
2022-03-04GPencil: Fix wrong parameters in `gpencil_check_same_material_color`Antonio Vazquez
The stroke and fill parameters were flipped.
2022-03-04Cleanup: remove outdated references to tweakCampbell Barton
2022-03-04Cleanup: use doxy-sections in outliner_draw.ccCampbell Barton
Also remove outdated comment.
2022-03-04Cleanup: use doxy-sections for interface_dropboxes.ccCampbell Barton
2022-03-04Sequencer: de-duplicate new-scene enum, include in generated docsCampbell Barton
2022-03-04Sequencer: disallow assigning scenes to non-seuencer stripsCampbell Barton
2022-03-04Cleanup: use doxy-sections in scene_edit.cCampbell Barton
2022-03-04Cleanup: warning & spelling from recent scene/sequencer operatorCampbell Barton
- Avoid the abbreviation "VSE" as the convention is to use "sequencer". - Remove dead-code (second return statement). - Remove unused argument.
2022-03-04Cleanup: spelling in comments, function nameCampbell Barton
2022-03-04UI: Drag & Drop to Properties Materials PanelAzeem Bande-Ali
Support drag/drop of materials to Properties Material Slots. See D13549 for more details. Differential Revision: https://developer.blender.org/D13549 Reviewed by Julian Eisel
2022-03-03Curves: Port endpoint selection node to new data-blockHans Goudey
The node should be faster than in 3.1, for a few reasons: - It doesn't need to calculate and allocate the curve offsets. - It doesn't need to de-reference a pointer for each curve. - The inputs are accessed from the virual arrays fewer times. On top of that, I added two other performance improvements: - The node is multi-threaded when there are many curves. - There are generated special cases for single value and span inputs. **Performance** With a set position node affecting 1 million splines with a selection based on this node, on an Intel i5 8250U (times are approximate): | Before | After | Speedup | | 760 ms | 60 ms | 13x | Differential Revision: https://developer.blender.org/D14233
2022-03-03BLI: Add functions to IndexRange to mirror SpanHans Goudey
Adds functions for special cases of slicing and an `is_empty` method.
2022-03-03Fix T96145: GPencil eval data not updated correctlyFalk David
When removing a modifier, changing the layer transform or updating the parent of a grease pencil object that has a multi-user datablock and animation data, the eval data is not updated properly (after a frame change). This can also cause memory leaks. The fix makes sure that we free and reset any runtime copy (`ob->runtime.gpd_eval`) in `BKE_gpencil_prepare_eval_data`. Note: As far as we can tell, `ob->runtime.gpd_orig` is unused and could be removed. The assignment in `BKE_gpencil_prepare_eval_data` seemed to be unnecessary. Co-authored-by: @yann-lty Reviewed By: antoniov Maniphest Tasks: T96145 Differential Revision: https://developer.blender.org/D14236
2022-03-03File Browser UI: Allow dragging anywhere in a file preview tile to dragJulian Eisel
Previously you'd have to be careful to drag the image itself. Dragging anywhere else on the tile (e.g. between the preview and the text, or the text itself) would trigger border select. This often conflicts with user expectations and causes frustration when trying to work quick, I've seen many people complain about this. Note that the "hitbox" for dragging is a bit smaller than the tile, to not make border select by dragging from in-between the tiles too hard. Differential Revision: https://developer.blender.org/D14228
2022-03-03Cleanup: Remove redundant drag image size parametersJulian Eisel
Just use the image-buffer size and the already provided scale to determine the size, not the button size (which would always have to match the scaled image-buffer size or it would give unexpected results).
2022-03-03i18n: Fix more potential contextual issues with "Back" UI label.Bastien Montagne
Add 'ID_ACTION' context to some animation curve interpolation enums. Related to T95506/T43295.
2022-03-03UV: Edge selection supportSiddhartha Jejurkar
This patch adds edge selection support for UV editing (refer T76545). Developed as a part of GSoC 2021 project - UV Editor Improvements. Previously, selections in the UV editor always flushed down to vertices and this caused multiple issues such as T76343, T78757 and T26676. This patch fixes that by adding edge selection support for all UV operators and adding support for flushing selections between vertices and edges. Updating UV select modes is now done using a separate operator, which also handles select mode flushing and undo for UV select modes. Drawing edges (in UV edge mode) is also updated to match the edit-mesh display in the 3D viewport. Notes on technical changes made with this patch: * MLOOPUV_EDGESEL flag is restored (was removed in rB9fa29fe7652a). * Support for flushing selection between vertices and edges. * Restored the BMLoopUV.select_edge boolean in the Python API. * New operator to update UV select modes and flushing. * UV select mode is now part of editmesh undo. TODOs added with this patch: * Edge support for shortest path operator (currently uses vertex path logic). * Change default theme color instead of reducing contrast with edge-select. * Proper UV element selections for Reveal Hidden operator. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D12028
2022-03-03Outliner: Display respective data-block icon in library overrides modeJulian Eisel
Just showing the library override icon for every item doesn't add much information, it's just redundant. Displaying the data-block type icon on the other hand can be useful. Differential Revision: https://developer.blender.org/D14208
2022-03-03Fix T96140: Crash on color button drag & dropJulian Eisel
Use-after-free in context store, which wasn't cleared correctly after setting and querying.
2022-03-03VSE: Allow to create scene in strip propertiesAntonio Vazquez
This patch adds a button in the scene to add a new one, but this does not change to the new created scene because this breaks the storyboarding workflow. This is a common request for Storyboarding artists. Reviewed By: mendio, brecht, ISS Differential Revision: https://developer.blender.org/D14148
2022-03-03Merge branch 'blender-v3.1-release'Campbell Barton
2022-03-03Fix T96135: Mesh coordinates are set to the last edited shape-keyCampbell Barton
When exiting edit-mode set the vertex coordinates to the basis-shape when editing non-basis keys. Regression in bfdbc78466ac14d45f353db9aa39cb21bb962701. Reviewed By: sergey Ref D14234
2022-03-03WM: use pass-through for cursor placement operatorCampbell Barton
This is needed since 4d0f846b936c9101ecb76a6db962aac2d74a460a however change in the operator instead of the event handler is correct, as accepting a press event should suppress drag events unless the pass-through flag is set. This is how select & tweak already works.
2022-03-03Cleanup: comments in wm_event_system.cCampbell Barton
2022-03-03Event System: use more thoroughly tested logic for click-drag eventsCampbell Barton
No functional changes, largely restoring old logic & removing the need for workarounds. Reverts: - 13b6cec039681db40e677463aa9fdff6d55896aa. - aa71414dfca7f301e101cce3e72551e7529290ea (partially).
2022-03-03UI: only wrap cursor motion horizontally when dragging markersCampbell Barton
It's not useful to wrap vertical motion when dragging markers. It was too easy to accidentally wrap the cursor to the top of a region, as markers need to be dragged from the bottom edge of the region.
2022-03-03Cleanup: use doxygen sections for anim_markers.cCampbell Barton
2022-03-03Cleanup: rename misleading variable for marker selection cyclingCampbell Barton
"marker_selected" was the marker after the selected marker and is used for cycling the selection.
2022-03-03Fix timeline marker click-drag arbitrary deselectionCampbell Barton
The logic to cycle selected markers wasn't cycling back to the beginning of the list. The marker after the selected marker at the cursor frame was also used to check if a selection existed, causing dragging to transform all selected markers to de-select all when when dragging the last marker.
2022-03-03Cleanup: remove references to key-map modifier values denoting orderCampbell Barton
This feature was never exposed to users.
2022-03-03Cleanup: Rename set handle type node internally to match UIHans Goudey
I've had trouble finding this node a few times now, it's simpler if the file name matches the name in the UI.
2022-03-03Curves: Port set resolution node to the new data-blockHans Goudey
The node unnecessarily converted to the old data structure to check if there were any poly splines. Instead, that warning is just removed, because the node now still sets resolution values in that case, they just aren't used (before the values weren't set at all). Either way, it wasn't clear that looping though all of the curve types was worth the performance cost here.
2022-03-03Fix: BLI math clamp doesn't workHans Goudey
Return type was wrong, output of std::clamp wasn't used.
2022-03-03Fix mistake in seeking cleanupRichard Antalik
In `ffmpeg_read_video_frame` fix assignment used as truth value. In `ffmpeg_seek_recover_stream_position` loop while return value is greater or equal to 0.
2022-03-02Cleanup: Use rectangle for file browser tile drawingJulian Eisel
Passing around coordinates for drawing can be quite confusing, it's often not clear what they represent and where they are currently. Instead pass around the tile rectangle for drawing and let all code draw based on that, it's way more clear that way. Changes shouldn't be user visible.
2022-03-02UI: Comments Misspellings of Vertex/VerticesNikhil Shringarpurey
Correct misspellings in code comments of "vertex" and "vertices". See D13932 for more details. Differential Revision: https://developer.blender.org/D13932 Reviewed by Harley Acheson
2022-03-02Fix T96101: "Remove" button failure on Grease Pencil layer's relation to boneAntonio Vazquez
As the channel was not found, the relation data was not updated. Now, if the bone is removed, the relation is set.
2022-03-02Search: take word order into account in string searchJacques Lucke
Differential Revision: https://developer.blender.org/D14223