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-07-30Cleanup: Move remesh files to C++Hans Goudey
This will be helpful for some cleanups I'd like to do, including removing the unecessary C API for OpenVDB and unifying some attribute transfer code.
2021-07-30Assets: Disable File Browser only operators for asset browsingJulian Eisel
These operators shouldn't be available in the Asset Browser. https://developer.blender.org/T83556 Added a comment to each operator poll assignment to explicitly mention the intention. That should also remind devs to decide if the operator should apply for both file & asset browsing when copy & pasting operator definition code.
2021-07-30Fix incorrect poll function used for file path droppingJulian Eisel
The operator to drop file paths into the File Browser was just checking if there's an active window. This wasn't really an issue since the operator was only used as drop-operator for the File Browser. But the operator would show up in the operator search. Plus, for asset browsing, we'll also have to check the file browsing mode, so the more specific poll function will be needed.
2021-07-30Cleanup: Refactor logic of file deletion poll callbackJulian Eisel
* Early exit instead of complex if-else blocks. * Avoid iterating over entire file list. * Use `true`/`false` for boolean values. * Declare variables in smaller scopes.
2021-07-30UI: Don't show Windows file association operator in search on other OSesJulian Eisel
The Windows-specific "Register File Association" operator would show in the search menu of other platforms. Decided to not disable it at compile-time, like we do it with "Toggle System Console" (another Windows-only operator), because that would require workarounds for the translation tools. Instead the operator poll function always returns false on unsupported platforms now.
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 T90318: Dragging asset while Asset Browser is still loading crashesJulian Eisel
This partially reverts cb0b017d8f51: We can't store the asset handle in the drag data, because the file pointer it wraps may be freed as the Asset Browser generates its file list.
2021-07-30Cleanup: Remove unused file description storageJulian Eisel
This isn't used at all in the current File and Asset Browser design.
2021-07-30Cleanup: headers, use 'pragma once', remove argument to '\file'Campbell Barton
2021-07-30Cleanup: missing leading '*' from comment blocksCampbell Barton
2021-07-30Cleanup: limit scope of temporary variablesCampbell Barton
Also remove early return as it duplicates cleanup calls.
2021-07-30Cleanup: clang-format (re-run after v12 version bump)Campbell Barton
2021-07-30Cleanup: spelling in commentsCampbell Barton
2021-07-29Fix T89976: Mirror Keys By Value performs wrong scale conversionSybren A. Stüvel
In the graph editor, Mirror Keys by Value would convert the value to mirror over, to account for different units for linear & rotational properties. The conversion was done in the different direction, though, resulting in values that were too large by a factor of (180/pi)^2.
2021-07-29Render: remove unused Blender Internal view layer settingsBrecht Van Lommel
These should have been removed earlier but were forgotten.
2021-07-29Assets/UI: Resolve major asset view UI template limitationJulian Eisel
Before this, all asset view templates showing the same asset library would show the same assets, even if they should show different ID types. That was a major limitation since the design did forsee that this template can be put anywhere in the UI to display various sub-sets of assets. Initially I did the ID type filtering close to the asset-list reading, because I wanted to optimize reading so that we would only actually read asset information from disk of the ID type to be shown. But this will be quite complex and I'm not sure if I'll get to work on this anytime soon. So this commit moves the filtering to the template display level solving this limitation. Note: This also adds the code to filter by tags, together with the ID type. But it's not actually used anywhere yet.
2021-07-29Cleanup: Remove unnecessary code for asset view UI templateJulian Eisel
From what I can tell there is no reason anymore to do this. The design has changed since this was added.
2021-07-29Assets/UI: Sanity check argument for UILayout.template_asset_view()Julian Eisel
Was already doing some sanity checks, but wasn't checking if the passed property actually is a collection property, which is important.
2021-07-29Cleanup: Pass asset handle to asset iterator, rather than wrapped fileJulian Eisel
This iterator was introduced before `AssetHandle` existed, so it was dealing with the file data directly. Now we want as little code as possible to deal with the file data, all access should happen via the `AssetHandle`.
2021-07-29Cleanup: Consistent indent style for asset CMakeLists fileJulian Eisel
Was mixing 4 and 2 space indent in a single file.
2021-07-29Data-block Preview: Create preview using current frameAntonio Vazquez
The preview was always using frame 1, but maybe the object has changed and it's better create preview using the current frame. Reviewed By: Severin Differential Revision: https://developer.blender.org/D12018
2021-07-29Cleanup: Fix build warningRichard Antalik
Introduced in 3964785a1458
2021-07-29cleanup: editor_image : Remove unused draw functionsjim man
These functions are unused currently.. Reviewed By: deadpin, jbakker Differential Revision: https://developer.blender.org/D11968
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-29UI: Fix time labels drawingRichard Antalik
Calculate frequency of time/frame label drawing, such that labels have at least 10px margin and don't overlap. Change timecode format: - Use at least `mm:ss` format - Don't display frames if all labels would end with +00 Reviewed By: Severin Differential Revision: https://developer.blender.org/D11792
2021-07-29Fix T89952: GPencil channel box selection offsetFalk David
The channel box selection was offset for grease pencil layers. This is a proposed fix by @yann-lty Before: {F10227973} After: {F10227974} Reviewed By: #grease_pencil, antoniov Maniphest Tasks: T89952 Differential Revision: https://developer.blender.org/D11962
2021-07-28Fix T75028: Improved Font Names in File ManagerHarley Acheson
When viewing font files in the File Manager, this patch uses the font's family and style names to show the same type of string shown to users in operating system lists. For example "Book Antiqua Regular" instead of "BKANT.ttf" see D12020 for details and examples. Differential Revision: https://developer.blender.org/D12020 Reviewed by Campbell Barton and Julian Eisel
2021-07-28Cleanup: Remove unnecesary undefsRichard Antalik
Macros `SEQ_ALL_END` and `SEQ_ALL_BEGIN` no longer use `seq->tmp`. Therefore they are safe to use regardless from where they are called.
2021-07-28Assets: Improve error message when "Clear Asset" failsJulian Eisel
When using "Clear Asset" from the Asset Browser but with an asset selected that is not stored in the current file, we can show a more informative error message.
2021-07-28Fix T90221: geometry viewer node links to other socket typesWannes Malfait
The viewer node in geometry node trees only supports geometry nodes. This patch ensures that when ctrl shift clicking on a node, it will only link to geometry sockets. Differential Revision: https://developer.blender.org/D12055
2021-07-28Fix particle system duplication duplicates all systemsPhilipp Oeser
Followup to rB3834dc2f7b38 (where getting the proper particle system was fixed for the Adjust Last Operation panel in the Properties Editor). But since this operator can also be called from the 3DView, get a current particle system there as well. Without this, _all_ particle systems would be copied when executing from the 3DView (which was never really intended [operator description uses singular] -- it just happens to use `copy_particle_systems_to_object` internally as well -- same as the `Copy Active/All to Selected Objects` operators)). ref. T83317 Maniphest Tasks: T83317 Differential Revision: https://developer.blender.org/D12033
2021-07-28Fix menu poll function being ignored for UILayout.menuJulian Eisel
Using `UILayout.menu()` [1] or `UILayout.menu_contents() [2], the menu would just always be added, the `poll()` check not being executed. As API user I would expect the `poll()` to deterimine visiblity of the menu. [1] https://docs.blender.org/api/current/bpy.types.UILayout.html#bpy.types.UILayout.menu [2] https://docs.blender.org/api/current/bpy.types.UILayout.html#bpy.types.UILayout.menu_contents Differential Revision: https://developer.blender.org/D12053 Reviewed by: Campbell Barton
2021-07-28VSE: Add tooltips for add_effect_strips operatorFalk David
This patch adds propper tooltips to the effect strips in the "Add" menu. Note that not all effect strips are actually in the "Effect Strips" submenu like color strips, text strips or transitions. For these types of effect strips, a dediacted tooltip is especially useful. Reviewed By: ISS Differential Revision: https://developer.blender.org/D11714
2021-07-27VSE: Draw strips transparent during transform overlapPablo Vazquez
While transforming a strip, draw the background semi-transparent if it overlaps with another strip. It's convenient to see what's underneath, especially with the upcoming Overwrite feature. Thanks to @iss for the help and review.
2021-07-27Cleanup: comment spelling & punctuationYimingWu
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-26Cleanup: Fix compiler warning in previous commitAntonio Vazquez
2021-07-26Fix T90127: Merge Down layer doesn't take the transform location into accountAntonio Vazquez
Now the layer transformation is applied before the merge.
2021-07-26VSE: Fix snapping bugsRichard Antalik
Fix hold offset check causing missing snapping point when strip have only still frames. Fix effect strips of transformed strips causing snapping to prevoius strip positions. Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D11948
2021-07-26Cleanup: clang tidyJacques Lucke
2021-07-26Cleanup: clang-formatCampbell Barton
2021-07-26Cleanup: spelling in commentsCampbell Barton
2021-07-26Cleanup: use doxy commentsCampbell Barton
2021-07-24Fix: Remove automatic hiding of bones when using the pose sliderChristoph Lendenfeld
This patch addresses the issue raised in T88340. When entering a pose sliding operator bones would automatically get hidden. While technically not a bug it was decided that it is too confusing. Hiding with 'H' is still possible though, just won't happen automatically Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D11883 Ref: D11883
2021-07-24UI: Do not abbreviate/shorten wordingAaron Carlisle
Abbreviations are harder to read and understand thus it is best to be direct. For example without understanding and context it is hard to know exactly what "Len" means.
2021-07-24Revert "VSE UX: Make Speed Effect strips more user friendly."Germano Cavalcante
This reverts commit 3123f33380b35ae93afee0a30f36bc7181927b28 and a092baa7f90b2d5f13771d46f64ff5cf86cc5a05.
2021-07-24Many tweaks to f-curve drawing codeGermano Cavalcante
2021-07-24VSE UX: Make Speed Effect strips more user friendly.Germano Cavalcante
**Drawing Changes:** - F-curve drawing for Stretch, Multiply, Length and Frame Number. - Value drawing when no keyframes for Stretch, Length and Frame Numbers. General view of the new drawing for each speed effect mode: {F9796642, size=full} Detail of the horizontal zero (blue) line in the new `Multiply` mode: {F9798520, size=full} Nice to have (but I don't know how): - Auto adjusting of endframe when using Multiply or Boost. Differential Revision: https://developer.blender.org/D6110
2021-07-23Fix T89393: crash when selecting edges when geometry nodes has "on cage" ↵Jacques Lucke
turned on The core problem is that the geometry nodes modifier sometimes support "mapping" (i.e. it remembers which new vertices correspond to edit mode vertices) and sometimes it does not, depending on what the nodes are doing. Also see rB07ce9910f7cc. The solution here is that the fallback case in `BKE_mesh_foreach_mapped_edge` does not call the callback with "invalid" indices. Differential Revision: https://developer.blender.org/D12007