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
2021-03-06Cleanup: unused variablesCampbell Barton
2021-03-05UI: minor changes to preset sortingCampbell Barton
- Only sort by the preset name (not it's directory). - Remove redundant string conversion. - Only call lower() once on the input. - Don't assign the lambda to a variable for single use.
2021-03-05Presets: Improve sort order of presetsAaron Carlisle
Pythons sort function does not sort naturally, to solve this a custom sort key is used. This issue is apparent when trying D10553
2021-03-02Sculpt: Expand OperatorPablo Dobarro
Expand is a new operator for Sculpt Mode which is intended to be the main tool for masking, Face Set editing, interacting with the filters and pattern creation. The fundamentals of the tool are similar to the previous sculpt.mask_expand operator. It shares the same default shortcuts and functionality, making the previous operator obsolete. The shortcuts to execute the operator are: - Shift + A: Expand mask - Shift + Alt + A: Expand mask by normals - Shift + W: Expand Face Set - Shift + Alt + W: Resize current Face Set The main changes compared to the previous sculpt.mask_expand operator are: - Modal keymap, all operator options can be changed in real time while the operator is running. - Supports creating Mask, Face Sets and Sculpt Vertex Colors. - Much better code, new features can be easily integrated. Limitations: - All Mask operations are supported for Sculpt Vertex colors, but not exposed by default as their support is still experimental. - Dyntopo does not support any Face Set or Sculpt Vertex Colors. functionality (they are not implemented in general for Dyntopo). - Multires does not support any feature related to geodesic distances. - Multires does not support vertex colors. - Multires does not support recursions. - In Multires, Face Sets snaping does not initialize all current enabled Face Sets when toggling snapping. - In Multires, Face Sets are created at base mesh level (works by this by design, like any other tool). - Unlike the previous mask_expand operator, this one does not blur the mask by default after finishing Expand as that does not fit the new design. The mask can still be blurred by using the mask filter manually. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10455
2021-03-02Cleanup: remove Python 2.x support from complete_calltipCampbell Barton
2021-02-24Fix T85915: Cannot save new theme presetCampbell Barton
Since making bpy.types a real module `dir(bpy.types)` now includes __dir__ and __getattr__ methods which need to be ignored.
2021-02-22i18n messages extraction script: fix handling of C unicode-escapes.Bastien Montagne
rB1f5647c07d15 introduced for the first time a unicode escape in strings to be translated, directly extracted from C-code itself. This revealed that this case was not properly handled by current code, for now we work around using `raw_unicode_escape` encoding/decoding of python.
2021-02-22Various UI messages fixes and tweaks.Bastien Montagne
2021-02-22Fix i18n messages extraction tool after update to support py 3.10.Bastien Montagne
The new defferred approach broke existing way to access items from struct definition... See T85872.
2021-02-21PyAPI: use postponed annotations to support Python 3.10Campbell Barton
Support Python 3.10a5 or 3.9x with support explicitly enabled. - Enable Python's postponed annotations for Blender's RNA classes types registered on startup. - Using postponed annotations has implications for how they are defined, since they must evaluate in the modules name-space instead of the classes name-space. See changes to annotations in `release/scripts`. - Use `from __future__ import annotations` at the top of the module to ensure the script will run with Python 3.10. - Old logic is kept since it could be used if PEP-649 is supported. Resolves T83626 Ref D10474
2021-02-21Cleanup: remove duplicate settings from operator_mesh_add templateCampbell Barton
Also move align items into the enum call as there is no need to have this accessible from the class.
2021-02-19PyAPI: bpy.utils.execfile temporarily overrides the __main__ moduleCampbell Barton
This is needed to support Python 3.10's `typing.get_type_hints`, to access the name-space used when creating the class. Also added a docstring for execfile.
2021-02-16Fix reloading preferences ignoring 'script_directory'Campbell Barton
Reloading preferences didn't update Python's `sys.path` to account for the modified `script_directory`. This meant the operator to load settings from a previous version required a restart to initialize Python when this directory was set.
2021-02-13Merge branch 'blender-v2.92-release'Campbell Barton
2021-02-13RNA Manual Reference: Update mappingsAaron Carlisle
2021-02-04Merge branch 'blender-v2.92-release'Germano Cavalcante
2021-02-04Fix T85363: Cmd + Tab shortcut overridden on macOSJohannes Jakob
Adds an exception so that the key-binding `control + Tab` does not get duplicated as `command + Tab` on macOS because this is a global system shortcut for the app switcher. The key-binding `command + Tab` was shown for the operators “Toggle Graph Editor“ and “Toggle Dope Sheet” in Dope Sheet and Graph Editor, but only `control + Tab` actually worked. Differential Revision: https://developer.blender.org/D10304
2021-02-04Fix T79822: Custom preset casing not preservedAnkur Deria
When adding a new preset the name would be converted to lower case and then displayed in the interface in title case. This was confusing because the name didn't reflect what was typed, and there are many cases when the name shouldn't be forced into title case (like 8K UHDTV for example). This commit leaves the custom preset names in the original casing, and removes the conversion of filenames to title case for preset lists. Differential Revision: https://developer.blender.org/D10224
2021-02-04Presets: Cleanup preset namingNathan Craddock
Before committing D10224, bundled preset names that are lowercase need updating to title case for display in the UI. This changes several of the preset file names to title case, and fixes a couple of other naming issues in the preset names. A few strings in the code are also changed to reflect the new filename of the Blender keymap.
2021-01-27Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-27Fix T81834: Images not properly duplicated in node_shader_utilsCampbell Barton
Oversight in fb10eaf6e8a4f959cd5d46fd1bb7e8fb26b67205
2021-01-27Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-27RNA Manual Reference: Update MappingsAaron Carlisle
2021-01-24Cleanup: remove toolbar popup release hackCampbell Barton
This isn't needed since key-map items can ignore repeat events.
2021-01-16Add Object Tool: rename keymap, expose in keymap editorCampbell Barton
Make the name follow the convention of other View3D keymaps.
2021-01-14Fix T84549: Keymap presets written without repeat enabledCampbell Barton
Key map items using TEXTINPUT didn't include the repeat setting.
2021-01-03Update RNA to manual url mappingsAaron Carlisle
2020-12-29Fix T83749: Better handling of alpha in generic Nodes material wrapper for ↵Bastien Montagne
IO add-ons. Try to detect if a given image may have valid alpha data or not (based on number of channels and depth). This may be a bit doggy in theory, but in practice it should cover most fields as expected. We can always adjust the euristic here in other wrong cases appear. This will affect all import add-ons using that node shader wrapper (at least OBJ and FBX ones).
2020-12-28Cleanup: UI messages fixes.Bastien Montagne
2020-12-22Animation: Bake Action, improved discontinuity filter for bonesSybren A. Stüvel
Perform the same filtering as e5528904f12104ee31e7b67b54f2a4b3f14cec1e introduced for object rotations, for bone rotations.
2020-12-21Fix part of T84004: Some 2.92 alpha UI strings can't be translated.Bastien Montagne
Adding 'new' (?) `heading` parameter of some UILayout functions...
2020-12-21Fix part of T84004: Some 2.92 alpha UI strings can't be translated.Bastien Montagne
Not sure why, but py files from `bl_operators` were never considered for i18n string extraction... They do define some UI strings though.
2020-12-21Fix some UI messages and update i18n spellcheck utils.Bastien Montagne
2020-12-18Fix mistake in Bake Action discontinuity fixSybren A. Stüvel
Fix mistake in e5528904f12 where one change accidentally wasn't included in the commit.
2020-12-18Fix T83351: Baked object rotation has discontinuitiesSybren A. Stüvel
Fix Euler discontinuities in the Bake Action operator, by explicitly using the previous Euler angles when converting from matrix to rotation. This basically follows the same approach as used in e4ca1fc4ea43, although the Euler Discontinuity Filter also performs single-channel filtering which the Bake Action operator doesn't.
2020-12-16Fix exported keymaps loading in 2.91 and olderCampbell Barton
The generated keymaps used a keyword argument that doesn't exist in older Blender versions.
2020-12-15Asset System: New Asset Browser editorJulian Eisel
This introduces the User Interface part of the Asset Browser, based on the design in T54642. Additions: * New Asset Browser (internally a sub-editor of the File Browser). * Navigation region showing asset categories. * Main region showing the assets of the selected asset library with previews. The assets may be stored over multiple .blends in the directory that's "mounted" as asset library in the Preferences. They will all be shown in this list. * Header with an asset library dropdown, allowing to choose the active asset library to show. Options are the "Current File" as asset library and all custom libraries. * Display popover, filter popover and search box (partially dummies, see T82680). * Sidebar showing the metadata of the currently active file (name, preview, description and tags), which can be edited for assets in the "Current File" asset library. (For others it will reset on reload.) * The sidebar includes a button to load a custom preview image from a file. * Make asset files draggable (with preview image). * If a library with invalid path is selected, a message is drawn in the main region to help the user understand what's wrong. * Operators to add and remove asset tags. Exposed in the sidebar. * "Only Assets" option for Link/Append. * Internal utilities for asset UI scripts. For screenshots or demo videos, please see D9725. Or the 2.92 release notes. Note that there are many things to be tweaked and polished in the Asset Browser UI still. For example, the filter and display popovers are mostly dummies. See T82680. Part of the first Asset Browser milestone. Check the #asset_browser_milestone_1 project milestone on developer.blender.org. Differential Revision: https://developer.blender.org/D9725 Reviewed by: Brecht Van Lommel, Hans Goudey
2020-12-11Cleanup: trailing spaceCampbell Barton
2020-12-10PyAPI: add bpy.utils.unescape_identifierCampbell Barton
Utility to perform the reverse of `bpy.utils.escape_identifier`
2020-12-09Fix custom property UI handling names with quotes and back-slashesCampbell Barton
Custom property names wasn't escaping strings, causing exceptions editing custom properties with characters that needed to be escaped.
2020-12-07UI: Fix mistakes in UI messages.Bastien Montagne
2020-12-04i18n utils CLI: add missing RTL process command.Bastien Montagne
2020-12-04i18n utils: Add first version of the CLI wrapper around i18n tools.Bastien Montagne
Plan is to use that in new 'buildbot' pipeline to automate generation of i18n files for Blender.
2020-12-04i18n utils: Add a helper to list and match po files with languages codes.Bastien Montagne
This code was previously done in the add-on, but we'll need it for the CLI tool as well, so now it is a utils generator instead.
2020-12-04i18n utils : Reduce dependency to Blender bpy API, step 2.Bastien Montagne
Remove some top imports of bpy, only import it in a few specific functions that only make sense when used whithin Blender anyway.
2020-12-04i18n utils: reduce dependency to Blender bpy API, step 1.Bastien Montagne
This involves re-implementing some of Blender-defined helpers in utils, we keep debug code to ensure those are still matching on behavior/results sides. This will allow to get more i18n tools independent from blender executable.
2020-12-04i18n utils: Cleanup.Bastien Montagne
2020-11-30RNA Manual Reference: UpdateAaron Carlisle
2020-11-13GPencil: Merge GSoC curve edit modeFalk David
Differential Revision: https://developer.blender.org/D8660 This patch is the result of the GSoC 2020 "Editing Grease Pencil Strokes Using Curves" project. It adds a submode to greasepencil edit mode that allows for the transformation of greasepencil strokes using bezier curves. More information about the project can be found here: https://wiki.blender.org/wiki/User:Filedescriptor/GSoC_2020.
2020-11-04Fix T82292: Set encoding for keymap export to UTF-8Robert Guetzkow
Keymaps have previously been exported with an encoding dependent on the current system locale. This caused issues when the keymap contained non-ASCII characters, for instance in a string property for an operator. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D9449