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-08Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-03-08Fix T96228: TypeError on use of Copy from Active Track operationPratik Borhade
Issue was introduced after the python 3.10 switch Explicit conversion to int will fix the issue. Same issue is likely to happen with `MovieTrackingSettings.default_search_size` So I did the same change over there. Differential Revision: https://developer.blender.org/D14273
2022-03-07Merge branch 'blender-v3.1-release'Campbell Barton
2022-03-07Fix T95591: Crash on drawing with measure tool with tweak fallback toolCampbell Barton
Using press to activate the Tweak tool doesn't work well when used a fallback tool as the drag event is often used by the current tool - making it impossible not to select when dragging (unless the fallback tool is disabled entirely). Resolve this by using CLICK events when the Tweak tool is used as a fallback. Even though this avoids the crash, check for null-pointer de-reference since changes to the key-map shouldn't cause operators to crash. Note that the ability for operators to access a gizmo before it's fully initialized is a more general problem that should be addressed, but out of scope for a bug-fix. Reviewed By: zeddb, JulienKaspar, Severin Maniphest Tasks: T95591 Ref D14231
2022-03-06Cleanup: use loops for key-map entries that map values to number keysCampbell Barton
Also add __all__ referencing the only two members of the modules that should be accessed externally.
2022-03-04Cleanup: unused Python variables & importsCampbell 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-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-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-03Fix missing i18n context variable in UI py script.Bastien Montagne
Mistake in own rBdb3f5ae48ac, thanks to Ethan-Hall (@Ethan1080) for the heads up.
2022-03-02Curves: add brush to add curves on surfaceJacques Lucke
This adds a prototype for the first brush that can add new curves by painting on a surface. Note that this can only be used when the curves object has a surface object set in the properties panel. The brush can take minimum distance into account. This allows distributing curves with a somewhat consistent density. Differential Revision: https://developer.blender.org/D14207
2022-03-02Cleanup: remove all tweak events from key-map presetsCampbell Barton
2022-03-02Event System: remove tweak events in favor of click-dragCampbell Barton
Supporting two kinds of dragging is redundant, remove tweak events as they only supported 3 mouse buttons and added complexity from using the 'value' to store directions. Support only click-drag events (KM_CLICK_DRAG) which can be used with any keyboard or mouse button. Details: - A "direction" member has been added to keymap items and events which can be used when the event value is set to KM_CLICK_DRAG. - Keymap items are version patched. - Loading older key-maps are also updated. - Currently the key-maps stored in ./release/scripts/presets/keyconfig/ still reference tweak events & need updating. For now they are updated on load. Note that in general this wont impact add-ons as modal operators don't receive tweak events. Reviewed By: brecht Ref D14214
2022-02-28Fix T95506: Separate strings for "Back" (operator).Bastien Montagne
Add a new `EDITOR_VIEW3D` context to those view orientations.
2022-02-28Animation: Sensible frame range for motion pathsColin Marmont
Motion paths can now be initialised to more sensible frame ranges, rather than simply 1-250: - Scene Frame Range - Selected Keyframes - All Keyframes The Motion Paths operators are now also added to the Object context menu and the Dopesheet context menu. The scene range operator was removed, because the operators now automatically find the range when baking the motion paths. The clear operator now appears separated in "Selected Only" and "All", because it was not clear for the user what the button was doing. Reviewed By: sybren, looch Maniphest Tasks: T93047 Differential Revision: https://developer.blender.org/D13687
2022-02-25Curves: add surface object pointerJacques Lucke
Ref T95776. Differential Revision: https://developer.blender.org/D14182
2022-02-24Fix T96015: Calling wrong operator resulting in python errorAaron Carlisle
Own mistake in rB86fc63c4ca9d36eae7512c5c3e640285d84415d1. Forgot to change the call from `wm.url_open` to `wm.url_open_preset`.
2022-02-24Keymap: use 90 degree roll for NDOF roll shortcutsCampbell Barton
3Dconnexion documentation states these buttons should roll 90 degrees.
2022-02-24Keymap: correct NDOF button roll assignmentCampbell Barton
NDOF ROLL CCW was used for both left & right roll.
2022-02-24Keymap: correct NDOF button roll assignmentCampbell Barton
NDOF ROLL CCW was used for both left & right roll.
2022-02-23Geometry Nodes: Face is Planar NodeJohnny Matthews
This adds a node with a boolean field output which returns true if all of the points of the evaluated face are on the same plane. A float field input allows for the threshold of the face/point comparison to be adjusted on a per face basis. One clear use case is to only triangulate faces that are not planar. Differential Revision: https://developer.blender.org/D13906
2022-02-23Cleanup: Simplify manual url version handlingAaron Carlisle
Recently we changed the build pipeline to always create a version number in the url and point 'dev' to the latest version rather than creating the version number url once we release. This makes the check to `bpy.app.version_cycle` unnecessary.
2022-02-23Fix error with SPDX-License-IdentifierAaron Carlisle
2022-02-23Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-02-23Update RNA to user manual mapping fileAaron Carlisle
2022-02-23Geometry Nodes: Duplicate Elements NodeJohnny Matthews
This adds a node which copies part of a geometry a dynamic number of times. Different parts of the geometry can be copied differing amounts of times, controlled by the amount input field. Geometry can also be ignored by use of the selection input. The output geometry contains only the copies created by the node. if the amount input is set to zero, the output geometry will be empty. The duplicate index output is an integer index with the copy number of each duplicate. Differential Revision: https://developer.blender.org/D13701
2022-02-23NDOF: make camera view/pan behavior optionalCampbell Barton
User request since adding this option in: 51975b89edfcc02131f1f8248e1b3442ea2778fa When disabled, use the previous behavior when orbiting a camera view.
2022-02-23Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-23Fix T93331: Gizmo tool options reset when switching toolsCampbell Barton
Drag Action was constantly resetting itself to "move". Solve this by storing the tool settings per tool and no longer clear gizmo properties when activating a new tool.
2022-02-22LineArt: Consistent backface culling behaviorYimingWu
1. Now will remove lines if both adjacent faces are back face. 2. Added a check to respect material back face culling setting. 3. Changed label in the modifier to "Force Backface Culling" (which reflect more accurately with what the checkbox does). Reviewed By: Antonio Vazquez (antoniov), Aleš Jelovčan (frogstomp) Ref D14041
2022-02-22Cleanup: remove Python 3.9 annotation workaroundsCampbell Barton
2022-02-21Merge branch 'blender-v3.1-release'Campbell Barton
2022-02-21Fix T92467: Path Selection broken when Drag is set to TweakCampbell Barton
When RMB-select uses "Select Tweak" as a fallback tool, ignore all bindings mapped to the Control key as these are used for path selection. This was fixed in 2a2d873124111b5fcbc2c3c59f73fd1f946c3548 however that caused shift-select to fail (T93100).
2022-02-21Curves: use paint cursor in curves sculpt modeJacques Lucke
Also adds radius and strength control to the tool settings in the ui.
2022-02-21Cleanup: remove duplicate key-map itemsCampbell Barton
2022-02-20UI: Do not include the text stating an enum item is the defaultAaron Carlisle
This adds maintence overhead and it is not that useful when we have reset to default. If this is something that we want it should be added dynamically. Reviewed By: HooglyBoogly, Severin, #user_interface Differential Revision: https://developer.blender.org/D14151
2022-02-18Curves: add initial edit mode supportKévin Dietrich
This adds initial support for edit mode for the experimental new curves object. For now we can only toggle in and out of the mode, no real interraction is possible. This patch also adds empty menus in edit mode. Those were added mainly to quiet warnings as the menus are programmatically added to the edit mode based on the object type and context. Ref T95769 Reviewed By: JacquesLucke, HooglyBoogly Maniphest Tasks: T95769 Differential Revision: https://developer.blender.org/D14136
2022-02-18Curves: initial brush system integration for curves sculpt modeJacques Lucke
This adds the boilerplate code that is necessary to use the tool/brush/paint systems in the new sculpt curves mode. Two temporary dummy tools are part of this patch. They do nothing and only serve to test the boilerplate. When the first actual tool is added, those dummy tools will be removed. Differential Revision: https://developer.blender.org/D14117
2022-02-16fix: RNA property not set for Graph editor breakdown opChristoph Lendenfeld
After running the breakdown operator for the graph editor, the factor property in the redo panel didn't reflect the value you chose to mitigate that issue down the line there is a new helper function to get the factor value, and store it at the same time Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D14105 Ref: D14105
2022-02-16UV: move sticky selection from image space into tool settingsCampbell Barton
Having this setting stored in the image space caused low level selection logic to have to pass around the image space (which could be NULL in some cases). Use the tool-settings instead since there doesn't seem to be much/any advantage in having this setting per-space.
2022-02-16Cleanup: clang-format, use static sets, sort struct declarationsCampbell Barton
2022-02-15Curves: add initial sculpt modeJacques Lucke
This adds a new sculpt mode to the experimental new curves object. Currently, this mode can only be entered and exited, nothing else. The main initial purpose of this node will be to use it for hair grooming. The patch also adds the `editors/curves/` directory for the new curves object, which will be necessary for many other things as well. I added a completely new mode (`OB_MODE_SCULPT_CURVES`), because `OB_MODE_SCULPT` seems to be rather specific to meshes, and reusing it doesn't seem worth the trouble. The tools/brushes used in mesh vs. curves sculpt mode are quite distinct as well. I had to add DNA_userdef_enums.h to make the patch compile with C++ (forward declaration of enums isn't allowed). This follows the same pattern that we use for other enums in dna. Differential Revision: https://developer.blender.org/D14107
2022-02-15Fix playing image-sequences with frames containing 9 or more numbersCampbell Barton
The path calculation method for animation players: frame-cycler, rv & mplayer would fail when the number of digits exceeded the range of a 32bit int causing RenderData.frame_path() to raise a ValueError. Use a simpler method of extracting the range that uses the sign to detect the beginning of the number.
2022-02-15Cleanup: move utility to create a frame path into a static methodCampbell Barton
Add PlayRenderedAnim._frame_path_with_number_char since mixing this logic inline made the code harder to follow.
2022-02-14Merge branch 'blender-v3.1-release'Hans Goudey
2022-02-14Fix T95252: Move duplicate node doesn't do edge-panningHans Goudey
Set "view2d_edge_pan" to true for the NODE_OT_translate_attach operator, which is used by the duplication operator. This is done in the keymap so that it's not hard-coded. Differential Revision: https://developer.blender.org/D13934
2022-02-12Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-02-12Fix T91423: View Animation not working with stereoscopic animationsAaron Carlisle
The animation playback did not take into account individual stereoscopic views. This patch fixes this by playing back the active view render. Reviewed By: campbellbarton Maniphest Tasks: T91423 Differential Revision: https://developer.blender.org/D14070
2022-02-11Merge branch 'blender-v3.1-release'Brecht Van Lommel
2022-02-11Cycles: show Metal device in preferences also on Intel MacsBrecht Van Lommel
In anticipation of enabling AMD Metal support. Ref D14090, T92212