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
2020-05-07UI: support context menu in menu search popupCampbell Barton
2020-05-05Fix wrong XR notifier bit valueJulian Eisel
2020-05-05Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-05Fix T76402: App templates prevent factory settings theme resetCampbell Barton
2020-05-05Merge branch 'blender-v2.83-release'Campbell Barton
2020-05-05Fix T76318: lower part of new preferences window does not workBrecht Van Lommel
Regression after recent changes. The precise cause is unclear to me, but we do not need to update the size right after creating a new window.
2020-05-04Cleanup: rename mcords to mcoordsCampbell Barton
- 'coords' is an abbreviation for coordinates, not 'cords'. - Rename 'moves' to 'coords_len'.
2020-05-03Audaspace: update from upstreamJörg Müller
- Changing API for time values from float to double for better precision. - Fixing minor mistakes in the documentation. - Fixing minor unnecessary large memory allocation.
2020-05-01Cleanup: rename WITH_X11 to WITH_GHOST_X11Campbell Barton
Matches WITH_GHOST_{SDL|WAYLAND}
2020-05-01WM: remove X11 hard coded window size workaroundChristian Rauch
Causes issues with Wayland and is no longer required for Gnome/KDE.
2020-04-30Fix animation player checkerboard drawing with alpha channelsCampbell Barton
Was using uninitialized theme values.
2020-04-30Task: Use TBB as Task SchedulerBrecht Van Lommel
This patch enables TBB as the default task scheduler. TBB stands for Threading Building Blocks and is developed by Intel. The library contains several threading patters. This patch maps blenders BLI_task_* function to their counterpart. After this patch we can add more patterns. A promising one is TBB:graph that can be used for depsgraph, draw manager and compositor. Performance changes depends on the actual hardware. It was tested on different hardwares from laptops to workstations and we didn't detected any downgrade of the performance. * Linux Xeon E5-2699 v4 got FPS boost from 12 to 17 using Spring's 04_010_A.anim.blend. * AMD Ryzen Threadripper 2990WX 32-Core Animation playback goes from 9.5-10.5 FPS to 13.0-14.0 FPS on Agent 327 , 10_03_B.anim.blend. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D7475
2020-04-29Merge branch 'blender-v2.83-release'Bastien Montagne
2020-04-29Fix T71334: top part of render window disappears on repeated rendersBrecht Van Lommel
2020-04-29VR: Reset pose offsets when changing base poseJulian Eisel
The offsets are applied after toggling positional tracking off, so that the view does not jump at that moment. But when changing the base pose, keeping that offset doesn't make sense. Especially with landmarks, which are supposed to give precise positions/rotations to jump to. For that part the VR Scene Inspection Add-on will need a little adjustment though. Also exposes an explicit function to the Python API to reset the offsets, to be used by the Add-on. This is mostly untested since I don't have access to an HMD currently.
2020-04-27Merge branch 'blender-v2.83-release'Clément Foucault
2020-04-27Fix T75736 Viewport update problem when switching between view layersClément Foucault
The problem comes from the fact by no data being modified when switching viewlayers. To follow what the external render engines do, we completely reset the viewport by freeing the GPUViewport to avoid any cached data from being kept.
2020-04-23Merge branch 'blender-v2.83-release'Philipp Oeser
2020-04-23Fix T75607: crash trying to sculpt while remesh is in progressBrecht Van Lommel
The interface is already locked, but the paint brush drawing could stll be reading the mesh that was being edited in another thread.
2020-04-18Merge remote-tracking branch 'origin/blender-v2.83-release'Ray Molenkamp
2020-04-18Fix: Build error on headless buildGary Oberbrunner
This simple patch removes an "UNUSED_VARS" macro referencing a variable which doesn't exist (r_unit_size). It only affects the headless build Differential Revision: https://developer.blender.org/D7464 Reviewed By: harley
2020-04-17UI: Better split layout support for checkboxesJulian Eisel
Makes the following layout changes possible: {F8473498} {F8473499} {F8473502} The next commit will contain many layout changes to make good use of these new possibilities. The result should be more consistent, easier to read and should give a more organized impression. Additionally, it should be possible to replace many sub-panels with compacter layouts. Main changes: * Checkboxes now respect the property split layouts * Add support for row and column headers (i.e. `uiLayout.column(heading="Foo")`, `uiLayout.row(heading="Bar")`). If the first property added to this layout doesn't insert anything into the label split column, the heading is inserted there. Otherwise, it's inserted as own item. * Add support for manually inserting decorators for an existing item (`uiLayout.prop_decorator()`). That way layout creators can manually insert this, which was the only way I saw to support property split layouts with a checkbox before the actual property. {F8471883} * Autogenerated layouts for operator properties look bad if there are only checkboxes (which only use half the region width). So before creating the layout, we iterate over visible properties and disable split layout if all are booleans. I think this is fine, if needed we could also add layout hints to operators. * `uiTemplateOperatorPropertyButs()` now handles macros itself, the caller used to be responsible for this. Code that didn't handle these so far never used macros I think, so this change should be invisible. * Remove manual property split layout from autogenerated operator properties layout. * Padding of checkboxes is tweaked to make their label visually more connected to the checkboxes. * Support split layout for menus (should work for `uiLayout.menu()`, `.operator_menu_enum()`, `.prop_menu_enum()`, maybe more) Maniphest Task: https://developer.blender.org/T65965 Differential Revision: https://developer.blender.org/D7427 Reviewed by: Brecht Van Lommel, William Reynish, Pablo Vazques
2020-04-15UI: default to searching menus instead of operatorsCampbell Barton
Menus from the top-bar, space-header and key bindings are used to gather menus to populate the search popup. Giving better context and default options for operators. Part of T74157 Enabling "Developer Extras" exposes operator search in the Edit menu, as this can be useful for developers to run operators without first exposing them in the interface.
2020-04-15UI: Avoid manual right-alignment of text in splash screenYevgeny Makarov
Can use existing layout features for right-alignment instead. Differential Revision: https://developer.blender.org/D6549 Reviewed by: William Reynish, Julian Eisel
2020-04-15UI: Round splash image corners according to theme preferencesYevgeny Makarov
Round the corners of the splash screen image according to the theme's User Interface > Menu Back > Roundness preference. Previously the rounding was added to the image itself, which was fiddly to do. The rounded corners of the popup background would not match the one of the image if the preference was changed. The current splash image will likely be updated to not include rounded corners in a separate commit. Differential Revision: https://developer.blender.org/D6847 Reviewed by: Julian Eisel (with some changes)
2020-04-15Resources: Remove small splash screen image variantJulian Eisel
After the previous commit by Harley Acheson, scaling can be handled at runtime so we don't need to have two splash screen image variants anymore. Also removes the `splash_scale.sh` script used to create the down-scaled variant. Always nice to get rid of some binary files from the repository :)
2020-04-15UI: Automatically scale splash screen imageHarley Acheson
Previously, there had to be two splash images to deal with different DPI settings and hiDPI screens. The larger version was simply downscaled in an external program for the small one. When up-scaled, the images would look rather badly. We now handle scaling completely at runtime. The results should look pretty much identical for most cases. When up-scaled it should look better though. New bundled splash images should have a width of 1000px or more (used to be 1002px). More details with screenshots and comparisons in D6999. Reviewed By: William Reynish, Julian Eisel Differential Revision: https://developer.blender.org/D6999
2020-04-14Fix T75535: Compositor backdrop gizmo dragging interrupts with nodePhilipp Oeser
mouse over Caused by rB5929dd7129f6. Above commit would reset the gizmo highlight on node mouseover. This would also assert in gizmo_rect_pivot_from_scale_part() and stop the drag. So now, only reset the gizmo when we are not in EVT_GIZMO_UPDATE, allowing for starting the tweak outside a node and then travelling 'inside' while still preventing to use it over a node when starting a tweak there. Maniphest Tasks: T75535 Differential Revision: https://developer.blender.org/D7383
2020-04-13VSE: Add sample toolRichard Antalik
This tool is set as default tool, so default action on click doesn't have pernament effect. Reviewed By: campbellbarton Differential Revision: D7064
2020-04-08Fix Windows Tablet API preference not being usedMiguel Pozo
It was sometimes set before reading preferences, now it's passed to GHOST every time preferences are read. Differential Revision: https://developer.blender.org/D5641
2020-04-08Fix status bar message showing saved when saving failedCampbell Barton
Resolves the following issues: - For the first time you save a .blend file, there was no feedback. - If the file fails to save (eg "No space left on device") the status bar message replaces the error with an invalid "Saved" message. While there is a popup, the user may cancel it with mouse motion and be left with the status bar message saying the file saved. D7371 by @XDroid with edits.
2020-04-08Debugging: change Undo/Redo redraw timer to include dependency graph updateBrecht Van Lommel
This is often the slowest part and was not counted before.
2020-04-07Cleanup: BLI_path.h function renamingCampbell Barton
Use BLI_path_ prefix, more consistent names: BLI_parent_dir -> BLI_path_parent_dir BLI_parent_dir_until_exists -> BLI_path_parent_dir_until_exists BLI_ensure_filename -> BLI_path_filename_ensure BLI_first_slash -> BLI_path_slash_find BLI_last_slash -> BLI_path_slash_rfind BLI_add_slash -> BLI_path_slash_ensure BLI_del_slash -> BLI_path_slash_rstrip BLI_path_native_slash -> BLI_path_slash_native Rename 'cleanup' to 'normalize', similar to Python's `os.path.normpath`. BLI_cleanup_path -> BLI_path_normalize BLI_cleanup_dir -> BLI_path_normalize_dir BLI_cleanup_unc -> BLI_path_normalize_unc BLI_cleanup_unc16 -> BLI_path_normalize_unc16 Clarify naming for extracting, creating numbered paths: BLI_stringenc -> BLI_path_sequence_encode BLI_stringdec -> BLI_path_sequence_decode Part of T74506 proposal.
2020-04-04Cleanup: Split up Window-Manager VR file (and related changes)Julian Eisel
Splits up wm_xr.c into multiple files in their own folder: source/blender/windowmanager/xr. So this matches how the message bus and gizmo code have their own folder and files. This allows better structuring and should make the code scale better. I rather do this early on than to wait until we end up with a single, huge file. Also improves a bit how data is prepared and updated for drawing.
2020-04-03Code Quality: Replace for loops with LISTBASE_FOREACHDalai Felinto
Note this only changes cases where the variable was declared inside the for loop. To handle it outside as well is a different challenge. Differential Revision: https://developer.blender.org/D7320
2020-04-03Cleanup: Including "BLI_listbase.h" for LISTBASE_FOREACH macroDalai Felinto
These headers are not needed right away, but will be in the upcoming commit.
2020-04-03Cleanup: Rename ExtensionRNA variables from ext to rna_extJulian Eisel
Makes it more clear that code using this is related to the RNA integration of a type. Part of T74432. Also ran clang-format on affected files.
2020-04-03Cleanup: Rename bScreen variables from sc/scr to screenJulian Eisel
Part of T74432. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: Rename ScrArea variables from sa to areaJulian Eisel
Follow up of b2ee1770d4c3 and 10c2254d412d, part of T74432. Now the area and region naming conventions should be less confusing. Mostly a careful batch rename but had to do few smaller fixes. Also ran clang-format on affected files.
2020-04-03Cleanup: Continue renaming ARegion variables from ar to regionJulian Eisel
Continuation of b2ee1770d4c3, now non-single word variables are also renamed. Part of T74432. Also ran clang-format on affected files.
2020-04-02Fix warnings caused by own earlier commitJulian Eisel
Caused by 34465a7fb091.
2020-04-02VR: Refactor DirectX context managementJulian Eisel
All DirectX management happens on Ghost level now, higher level code can just assume everything is OpenGL (except of the upside-down drawing that still needs to be done for DirectX). This is similar to how the metal-layer is hidden outside of Ghost. The Ghost-XR graphics binding for DirectX is responsible for managing the DirectX compatibility now.
2020-04-01Cleanup: use doxy sections for wm_draw.cCampbell Barton
2020-03-31Fix VR session toggle not changing reliably on session start/endJulian Eisel
The text and icon were supposed to change but didn't reliably, which was a race condition I think. It depended on how fast the OpenXR runtime would transition the session state. This also makes sure the correct notifier is sent on session exit.
2020-03-29Cleanup: spelling, commentsCampbell Barton
2020-03-28Cleanup: Removing unused parameter.Jörg Müller
2020-03-27Fix T58439: Info Editor does not show operator reports immediately whenPhilipp Oeser
operator cancelled. Lots of operators return OPERATOR_CANCELLED when no data really changed. Reports from those operators do not show immediately in the Info Editor [they only do if the operator returns OPERATOR_FINISHED]. Now also notify the Info Editor in case of OPERATOR_CANCELLED. Maniphest Tasks: T58439 Differential Revision: https://developer.blender.org/D7238
2020-03-27Cleanup: rename WM_modalkeymap API names, matching WM_keymapCampbell Barton
Rename: - WM_modalkeymap_add to WM_modalkeymap_ensure - WM_modalkeymap_get to WM_modalkeymap_find
2020-03-26Keymap: disallow modal key-maps in add-ons keyconfigCampbell Barton
Disable functionality reported in T60766 & only partially worked. This could be used if the key-map was added after Blender started as a way to customize modal key-maps, however it didn't work with the add-on enabled on startup. Add-on key-maps are intended to extend existing key-maps so they can call the add-on, not as a way to change modal key-maps for Blender's built-in functionality. Disable this since it's not needed as add-ons can't yet define modal key-maps.
2020-03-26Fix crash accessing the tool with no active spaceCampbell Barton