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-23UV: support "Tweak Tool: Left Mouse Select & Move"Campbell Barton
- Follow the same conventions as the 3D viewport for UV selection (using SelectPick_Params internally). - Use WM_operator_properties_mouse_select for selection properties.
2022-03-23Cleanup: follow Python code-style/conventionsCampbell Barton
2022-03-21Curves: new Add brushJacques Lucke
This adds a new Add brush for the new curves object type in sculpt mode. The brush is used to insert new curves (typically hair) on the surface object. Supported features: * Add single curve exactly at the cursor position when `Add Amount` is 1. * Front faces only. * Independent interpolate shape and interpolate length settings. * Smooth and flat shading affects curve shape interpolation. * Spherical and projection brush. This also adds the `surface_triangle_index` and `surface_triangle_coordinate` attributes. Those store information about what position on the surface each added curve is attached to: * `surface_triangle_index` (`int`): Index of the internal triangle that a curve is attached to. `-1` when the curve is not attached to the surface. * `surface_triangle_coordinate` (`float2`): First two numbers of a barycentric coordinate that reference a specific position within the triangle. Ref T96444. Differential Revision: https://developer.blender.org/D14340
2022-03-21UI: improve names and tooltips in viewport preferencesEthan-Hall
Rename OpenGL to GPU, Show to Text Info Overlay, and various other tweaks. Differential Revision: https://developer.blender.org/D14344
2022-03-21UI: Use title case for labelsHans Goudey
2022-03-21Fix T96655: Bloom crashes EeveeHallam Roberts
This patch fixes T96655, bloom crashing Eevee. The error occurs because rB472fc0c55848b2e2d428cfb4f7debb80a4e12081 added `vec3 safe_color(vec3 c)` to `common_math_lib.glsl`. However, `vec3 safe_color(vec3 c)` already exists in `effect_bloom_frag.glsl`. This means `vec3 safe_color(vec3 c)` is duplicated within `common_math_lib.glsl` and `effect_bloom_frag.glsl`. {F12938060 size=full} The duplicate code in `effect_bloom_frag.glsl` can be removed since it's no longer needed. (I checked the remaining methods, there shouldn't be any additional duplicate code) Reviewed By: fclem Maniphest Tasks: T96655 Differential Revision: https://developer.blender.org/D14396
2022-03-19Fix T96584: Properly translate operator on splash screenJesse Yurkovich
The previous fix looks to have been accidentally removed as part of rB7aec5b06227. Restore the change.
2022-03-18EEVEE: Add new experimental "EEVEE Next" optionClément Foucault
This is supposed to hold the latest improvement from the EEVEE rewrite branch. Note that a restart is necessary in order for the engine to appear. The registration code is a bit convoluted as it needs to be after the WM_init.
2022-03-18Animation: Blend To Default ImplementationChristoph Lendenfeld
Add a new operator to the Graph Editor that blends selected keyframes to their default value. The operator can be accessed from Key>Slider Operators>Blend To Default Value Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9376 Ref: D9367
2022-03-18Fix T96608: GPencil Simplify must check general Simplify switchAntonio Vazquez
As the grease pencil simplify is a subotion of general simplify, if the general switch is disabled, the grease pencil simplify must be disabled too. This patch also disable the UI panel.
2022-03-17Hair: Sculpt Mode IconsDalai Felinto
From hair particle mode: * Add * Comb * Cut * Grow New: * Delete Only comb and delete are used at the moment (by the new tools which are under experimental).
2022-03-17Tweak Tool: supports select & tweak on LMB (with RMB-select key-map)Campbell Barton
Support for differentiating the tweak tool from the 3D cursor when select is set to RMB. This is currently an experimental preference: Tweak Tool: Left Mouse Select & Drag When enabled the tweak tool can now tweak the existing selection without de-selecting first, a single click can be used to replace the selection. This matches selection in the graph & node editors. This preferences is only available with "Developer Extras" enabled. Ref T96544.
2022-03-16Fix: Update icons for hair to curves renameHans Goudey
ddf189892c596d939 missed recreating the icons with the new names. This commit runs `make icons` and replaces the names in CMake.
2022-03-16Cleanup: Further removal for legacy geometry nodesHans Goudey
943b919fe807b535586 missed removing the experimental option and the nodes from the add menu.
2022-03-15Fix some properties missing in the UI for new Curves object typeBrecht Van Lommel
Missed some renames from HAIR to CURVES.
2022-03-15Cleanup: use single back-ticks in regular commentsCampbell Barton
Double back-ticks are used for RST literals.
2022-03-15UI: expose "Dolly View" in the menuCampbell Barton
This is mainly to expose the shortcut to make Dolly discoverable.
2022-03-14Geometry Nodes: Add named attribute nodes behind experimental flagHans Goudey
This commit adds three nodes: - `Remove Attribute`: Removes an attribute with the given name - `Named Attribute`: A field input node - `Store Named Attribute`: Puts results of a field in a named attribute They are added behind a new experimental feature flag, because further development of attribute search and name dependency visualization will happen as separate steps. Ref T91742 Differential Revision: https://developer.blender.org/D12685
2022-03-14Revert "Animation: Sensible frame range for motion paths"Sybren A. Stüvel
This reverts commit 1558b270e9fcbc2e23fa248b0e7e770dddae155c. An earlier commit (rB101fadcf6b93c) introduced some new functionality, which was overlooked in reviewing this commit & got broken. Will re-commit after the issue has been fixed. Ref: D13687
2022-03-14Fix T96395: NDOF entries prevent loading of custom keymaps in 3.2Campbell Barton
Even though the default key-map didn't use NDOF types some key-maps did.
2022-03-14WM: avoid hard coded modifier key checks in object.hide_collectionCampbell Barton
These checks aren't always valid when there are multiple events in the queue.
2022-03-14 UI: Fix incoherent brush size in popover menu and brush settingsOctave C
Previously, the popover menu in sculpt/texture paint mode did not take into account the `UnifiedBrushSettings` for the unit. To fix this, the behavior of `class _draw_tool_settings_context_mode` is matched by checking the same conditions when setting up the UI of the right-click popover menu. Fixes T81616 Reviewed By: #sculpt_paint_texture, pablodp606 Maniphest Tasks: T81616 Differential Revision: https://developer.blender.org/D9168
2022-03-11UI: Use property split in curves surface panelHans Goudey
2022-03-11Cycles: show viewport hair settings when using CyclesEthan-Hall
Before this patch, users had to switch render engines just to change how the hair should be displayed in solid and material preview viewport shading modes. Differential Revision: https://developer.blender.org/D14290
2022-03-11RNA: use a function to access the nurbs error messageCampbell Barton
It makes more sense to use a function in this case as this creates an error message which is not data associated with the NURBS curve.
2022-03-11PyAPI: use C/RNA API for Text.from_string/to_stringCampbell Barton
Use faster C code for getting the buffer from text.
2022-03-11Curve: Improve NURBS knot generation modesLaurynas Duburas
This patch enables all 8 combinations of Nurbs modes: Cyclic, Bezier and Endpoint. Also removes restriction on Bezier Nurbs order. The most significant changes are mode combinations bringing new meaning. In D13891 is a scheme showing NURBS with same control points in a modes, and also further description of each possible case. Differential Revision: https://developer.blender.org/D13891
2022-03-11Transform/UI: individualize the option to use snap per editor typeGermano Cavalcante
`3DView`'s `use_snap` option has little or nothing to do with using snapping in `UV`, `Nodes` or `Sequencer`. So there are no real advantages to keeping these options in sync. Therefore, individualize the option to use snap for each "spacetype". Reviewed By: brecht Differential Revision: https://developer.blender.org/D13310
2022-03-08Merge branch 'blender-v3.1-release'Thomas Dinges
2022-03-08Licenses: Attribution document for Blender 3.1Dalai Felinto
2022-03-08Docs: 3.1 release description for Linux appdataThomas Dinges
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.