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-08-11Enable Asset Browser by default for poses, rest stays experimentalJulian Eisel
Idea for 3.0 is to disable all functionality that isn't well polished and focus on those parts first. Starting with poses. * Adds a new experimental option "Extended Asset Browser", replacing "Asset Browser". * Unlike the previous option, this isn't enabled by default anymore. This didn't work well in practice and caused plenty of confusion. * "Mark as Asset" and "Clear Asset" are hidden if the option is disabled. * Same for the category selection in the Asset Browser. * Always show display the "Only Assets" option in the File Browser while browing inside .blend files. That way you can hide data-blocks that are not pose assets. * The Asset Library setup UI in the Preferences is always visible now, it's needed for pose library access. Addresses T90181, T90180 and T90300. Differential Revision: https://developer.blender.org/D12120
2021-08-10UI: hide Viewport Display Bounds for object types that dont havePhilipp Oeser
bounding boxes These are namely 'LIGHT', 'CAMERA', 'EMPTY', 'SPEAKER' and 'LIGHTPROBE'. Note that Empties are included here despite the fact that they have instancing capabilities ('Display As' can be 'Bounds' for example which then displays all instanced geometry with boundingboxes -- this however is not meant to work with the 'Bounds' checkbox and the display bounds type, these are only affective for the object itself, not its instances) Issue came up in T88443. Maniphest Tasks: T88443 Differential Revision: https://developer.blender.org/D11344
2021-08-10UI: hide object instancing panel for object types that dont support instancingPhilipp Oeser
Basically, only meshes, empties and pointclouds support direct instancing atm., no need to have the panel for other types. note: prior to rB2eca054e14b1, collection instancing was possible on all types (but that was removed in said commit) note2: for empties, rna_Object_instance_type_itemf should also be tweaked so we dont get "Vertices" and "Faces" options, but that can be done in a separate commit Maniphest Tasks: T88443 Differential Revision: https://developer.blender.org/D11348
2021-08-10File/Asset Browser: Select/Activate File on Right Click for Context MenuJulian Eisel
Right clicking would spawn the context menu under the cursor, but some operators would actually act on the active asset/file which wasn't the one clicked on. When multiple files are selected and one of them is right-clicked on, selection is not changed to allow operations on multiple files. E.g. deletion. This makes the File/Asset Browser match the Outliner (in behavior, not implementation). For the right-click selection keymap: * The context menu still only spawns on W. * Bonus: Right click now does something, it actually selects files! I could have done additional changes here to avoid this, but it seems like a good addition. This is also a better alternative to rB5edfde58fe60, which didn't work properly either. Using rename from the context menu would only work if the clicked on file was also active... Differential Revision: https://developer.blender.org/D12065 Reviewed by: Campbell Barton
2021-08-10Fix T89284: Greasepencil top bar draw tool settings missingPhilipp Oeser
Caused by {rBe3faef686d38}. Error was getting the preview [which wasnt there yet] These only appeared once the material tab in the Properties Editor was used (since this ensured a valid preview icon). Above commit changed behavior for RNA icon getter (this does not create data anymore), so ensure the preview by hand here. Maniphest Tasks: T89284 Differential Revision: https://developer.blender.org/D12178
2021-08-10Fix T90268: Mesh.from_pydata error using numpy array for edges/facesCampbell Barton
Technically not a bug but worth supporting.
2021-08-09UI: Clip Editor: Expose 2D Cursor Location to RNA and UIAaron Carlisle
To be consistent with the image editors and 3D viewport the cursor location can be changed from the sidebar. This was missing from the clip editor, but support has been added in this commit. Previously, the only way to precisely set the cursor was to call the set cursor operator then use the redo panel to adjust the value.
2021-08-09UI: Clip Editor: Move Annotation Panel to new View tabAaron Carlisle
To be consistent with all other editors the annotation layers pannel should be placed in a "View Tab". In my next commit, this tab will be expanded to include other options.
2021-08-09Cleanup/fixes in UI messages.Bastien Montagne
2021-08-09Fix T90540: NoneType object error with entering grease pencil draw modeAntonio Vazquez
The preview was not ready when the panel was displayed. Just need to check if None.
2021-08-09Cleanup: return True/False from gpencil toolbar functionCampbell Barton
This was returning None/False which could cause problems in the future.
2021-08-09Cleanup: indentationCampbell Barton
2021-08-09Cleanup: use 'cls' for class methods first argumentCampbell Barton
2021-08-09Cleanup: remove redundant importsCampbell Barton
The module was importing it's own functions.
2021-08-09Cleanup: grease pencil app-template versioningCampbell Barton
- Remove check for screens being None as this would raise an error. - Replace loop over `area.spaces` with `area.spaces.active`. - Loop over grease pencil data directly instead of accessing through the scenes objects. - Split versioning into functions. - Use `update_factory_startup_*` prefix for function names as this isn't versioning existing files.
2021-08-09Cleanup: avoid using context in versioning codeCampbell Barton
Also extract versioning into a function that makes it's purpose clear.
2021-08-08UI: Show Mask Display Options ConistentlyAaron Carlisle
This commit makes the display options for mask only show in the header for the clip and image editors. Prior to this change they would display in the header for the clip editor and in the sidebar for the image editors.
2021-08-08UI: Sequencer: Fix placement of display options in sequencer & preview modeAaron Carlisle
This commit does two things, first it removes the proportional editing tool settings. This is not accessible code and is has not been used since the grease pencil/annotations changes in 2.8. Second, this patch reorders the if statements so that the display options are always shown on the rightside. Reviewed By: antoniov Differential Revision: https://developer.blender.org/D12163
2021-08-08Cleanup: Remove stale/dead codeAaron Carlisle
This seems to be really old code from 2.4 or earlier. I was unable to find when it was removed gitk and git blame both couldnt find anything. However, it is safe to say that this code is long gone.
2021-08-08GPencil: New Select Random operatorAntonio Vazquez
Select strokes or points randomly (similar to meshes). Reviewed By: pepeland Differential Revision: https://developer.blender.org/D12157
2021-08-06Cleanup: rename `FileList::asset_library` → `asset_library_ref`Sybren A. Stüvel
In the `FileList` struct, rename the `AssetLibraryReference *asset_library` field to `asset_library_ref` -- it's a description of which asset library is used, and not the asset library itself. This is to make space for a future `AssetLibrary *asset_library` field, which will point to an actual asset library struct/class. No functional changes. Reviewed by: Severin Differential Revision: https://developer.blender.org/D12151
2021-08-06Fix shortcut for Asset Details not showing in Asset Browser pulldownJulian Eisel
The shortcut wouldn't show up in the Asset Browser's "View" pulldown for the "Asset Details" item. It's the "N" key to toggle the right sidebar.
2021-08-06Geometry Nodes: Select by Handle Type NodeHans Goudey
Just like the "Select by Material" node, this node outputs a boolean attribute for control points that have a matching handle type. By default left and right handles are considered, but it's possible to only check one side with the toggle in the node. Differential Revision: https://developer.blender.org/D12135
2021-08-05Render: move Cycles visibility, holdout and shadow catcher properties to BlenderBrecht Van Lommel
The immediate reason for this is that we want to be able to initialize them to different defaults for light objects, which is hard with Python properties. But in general it is useful to be able to share these with other renderers. As a side effect, Eevee now supports a per-object holdout instead of only per-collection. Differential Revision: https://developer.blender.org/D12133
2021-08-05GPencil: New Merge Layer keymap: Shift+Ctrl+MAntonio Vazquez
The keymap is available in: Draw, Edit, Sculpt, Weight Paint and Vertex Paint modes. The keymap is not available in Object mode to avoid any conflict. Reviewed By: pepeland Differential Revision: https://developer.blender.org/D12128
2021-08-05GPencil: New Caps iconsAntonio Vazquez
These icons are used to define the type of caps. Designed by: Matias Mendiola Reviewed by: Pablo Vazquez
2021-08-05Windows: Add icons and icons_geom to make.batRay Molenkamp
This adds support for building the icons from make.bat unlike bash there is no passing environment variables on the command line. The scripts go out of their way to locate both blender and inkscape however if they are not found, the user is given a helpful error message telling them how to set the variables. Although some extra help can be given there, if your normal build is a 2019 full build running `make 2019 full icons` will help it find the blender executable as well. finally if you know the name of your build folder running `make builddir build_windows_Lite_x64_vc16_Release icons` will also work, if all fails you can point directly to the blender executable by running `set BLENDER_BIN=c:\where\blender\lives\blender.exe` before running `make icons` or `make icons_geom` The python scripts needed some small modifications since without the PATHEXT, SystemRoot and SystemDrive environment variables python will not initialize properly on windows. (Not blender related, even mainline python won't start without those)
2021-08-04GPencil: New Brush option to define Caps typeAntonio Vazquez
This is used to set the default caps type for the stroke. Before always was rounded and only could be changed later in Edit mode Two new buttons has been added to topbar. NOTE: New icons are been designed (T90414) The buttons are expanded to list in Properties panel. Reviewed By: mendio, HooglyBoogly Differential Revision: https://developer.blender.org/D11999
2021-08-04Viewport normal drawing with constant lengthJeroen Bakker
Patch for: T37878 {F10169694} Reviewed By: fclem Differential Revision: https://developer.blender.org/D11487
2021-08-04Geometry Nodes: Curve Set Spline TypeJohnny Matthews
This node sets the selected (or all) splines in curve to a chosen target spline type. Poly, Bezier, and NURB splines can be converted to any of the other types. This is meant to be a building block node, useful in many procedural situations. In the future the node could be optimized with multi-threading, or by avoiding copying in many cases, either by retrieving the curve for write access or by passing the raw vectors to the new splines where possible. With edits from Hans Goudey (@HooglyBoogly) Differential Revision: https://developer.blender.org/D12013
2021-08-04Icons: add license headers to utilitiesCampbell Barton
2021-08-04Icons: resolve various issues for generating iconsCampbell Barton
- INKSCAPE_BIN environment variable was ignored by alert_icons_update & prvicons_update. - `make icons` wasn't regenerating alert icons. - Updating SVG icons failed using blender built with ASAN.
2021-08-04Icons: update alert icon scriptCampbell Barton
Missed from c549d736cff0d5013f05fb5240ef07671c5aa5ce.
2021-08-03USD: add USD importerMichael Kowalski
This is an initial implementation of a USD importer. This work is comprised of Tangent Animation's open source USD importer, combined with features @makowalski had implemented. The design is very similar to the approach taken in the Alembic importer. The core functionality resides in a collection of "reader" classes, each of which is responsible for converting an instance of a USD prim to the corresponding Blender Object representation. The flow of control for the conversion can be followed in the `import_startjob()` and `import_endjob()` functions in `usd_capi.cc`. The `USDStageReader` class is responsible for traversing the USD stage and instantiating the appropriate readers. Reviewed By: sybren, HooglyBoogly Differential Revision: https://developer.blender.org/D10700
2021-08-03Cleanup: Remove redundant checks in File Browser UI scriptJulian Eisel
Was already checking these preconditions in the poll method.
2021-08-03Fix T90341: Crash opening 2.4 file with File Browser editor openJulian Eisel
The file selection parameters (e.g. `context.space_data.params`) are expected to be unset in certain cases. Reading 2.4 files seems to be one of them. Hence, code using it should check it's set first. Also added an assert to a File Browser UI template printing a message when the parameters are unset, to help debugging the issue.
2021-08-03Fix annotations placement option in the Movie Clip editorAaron Carlisle
In rB6ee14c966d05362228511756c4906e043b87e346 the enum items were renamed/removed, this change was not propagated to this setting
2021-08-02Fix T78469: Output Metadata: Strip Name no longer accessiblePhilipp Oeser
Caused by rB7fc60bff14a6. This has actually been reported and closed, but that was clearly a misunderstanding (above commit changed a checkbox to be an enum, but a second checkbox was simply removed) Maniphest Tasks: T78469 Differential Revision: https://developer.blender.org/D12084
2021-08-02Asset Browser: Proper context menu for assetsJulian Eisel
Add a context menu dedicated to asset operations to the Asset Browser. There are two separate context menus to keep things separated well and avoid confusing if-else logic (similar to D12057 & D12059). Their polls make sure they are displayed for the right contexts only. Also (to be committed as followup cleanup): Remove now unused special handling for assets in file delete operator. Differential Revision: https://developer.blender.org/D12062
2021-08-02Asset Browser: Don't show inapplicable filter and display settingsJulian Eisel
So far the Asset Browser just showed the same popups and settings as the File Browser. Not all of them made sense for the Asset Browser though. * Don't show inapplicable recursion toggle. * Don't show sorting options, which don't work with assets anyway. * Don't show the Filter popover, there are currently no applicable items in there. Just like in D12057, I decided to add separate classes for the Asset Browser case. Differential Revision: https://developer.blender.org/D12059
2021-08-02Asset Browser: Adjust header pulldowns to be Asset Browser specificJulian Eisel
So far the Asset Browser just showed the same menus as the File Browser. Not all of their entries made sense for the Asset Browser though. I decided to just give them entirely different classes to avoid confusing if-else checks everywhere. I think the code duplication this adds is a minor issue, it's better to keep things seperated clearly IMO. * View menu: Add "Asset Details" toggle for the sidebar region. * View menu: Remove recursion sub-menu * View menu: Remove "File Path" region toggle, which doesn't apply for the Asset Browser. Differential Revision: https://developer.blender.org/D12057
2021-07-30UI: Move Mark/Clear asset out of ID Data in Outliner context menuJulian Eisel
They are now always shown in the top-level of the Outliner context menu. Having them in the ID Data submenu was just a hassle to work with, and often confusing to users - even if technically correct (the asset status is part of the ID data). Part of T82680.
2021-07-30Preferences: Move "Register File Association" to preferences levelJulian Eisel
The operator was register as a "file" operator, which are by convention used for File Browser operators only. Move it to the "preferences" operators, where it's displayed in the UI too.
2021-07-30Fix: script.reload() operator reloads current app templateFlix
Ref D12040
2021-07-29VSE: Change grid line drawingRichard Antalik
Add overlay option to disable grid drawing. Reuse drawing code from other editors (timeline editor) Add argument `display_minor_lines` to function `UI_view2d_draw_lines_x__discrete_frames_or_seconds` This way minor line drawing can be disabled and so it doesn't cause too much visual noise. Also spacing seems to be too fine, so VSE uses 3x what is defined in preferences. Reviewed By: fsiddi, Severin Differential Revision: https://developer.blender.org/D11790
2021-07-27Anotations: Fix a several issues with stroke placementAaron Carlisle
Previously, this option was not exposed in the UI, only for the clip editor. There were also multiple rna properties that did the same thing for each of the 2D editors. There was also an issue where the property enum items were the same as the 3d view which didnt make much sense. Reviewed By: antoniov Differential Revision: https://developer.blender.org/D12027
2021-07-26Fix: Instantly hide bones after hitting H key in pose slidingChristoph Lendenfeld
When using a pose slider it is possible to hide bones with the 'H' key. Before this patch the screen didn't update, so you had to move the mouse 1 pixel to update. This patch makes it so it updates right away Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D12024 Ref: D12024
2021-07-26Mantaflow: Remove Noise Type OptionAaron Carlisle
Mantflow only supports wavelet noise, thus the parameter with only one option is no longer useful. Differential Revision: https://developer.blender.org/D6770
2021-07-26VSE: Fix truncated labelRichard Antalik
Label for snapping current frame to strips was cut off and not very readable. Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D11951
2021-07-23Cleanup: code comments punctuation / spacingCampbell Barton