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-02-10Cleanup/refactor: Rename `BKE_library` files to `BKE_lib`.Bastien Montagne
Note that `BKE_library.h`/`library.c` were renamed to `BKE_lib_id.h`/`lib_id.c` to avoid having a too generic name here. Part of T72604.
2020-02-07Cleanup: use of 'unsigned'Campbell Barton
- Replace 'unsigned' used on it's own with 'uint'. - Replace 'unsigned const char' with 'const uchar'.
2020-02-05T73589: Code Quality: Renaming on BKE_material.hAntonio Vazquez
Old Name New Name ========= ========= init_def_material BKE_materials_init BKE_material_gpencil_default_free BKE_materials_exit test_object_materials BKE_object_materials_test test_all_objects_materials BKE_objects_materials_test_all give_matarar BKE_object_material_array give_totcolp BKE_object_material_num give_current_material_p BKE_object_material_get_p give_current_material BKE_object_material_get assign_material BKE_object_material_assign assign_matarar BKE_object_material_array_assign give_matarar_id BKE_id_material_array give_totcolp_id BKE_id_material_num assign_material_id BKE_id_material_assign clear_matcopybuf BKE_material_copybuf_clear free_matcopybuf BKE_material_copybuf_free copy_matcopybuf BKE_material_copybuf_copy paste_matcopybuf BKE_material_copybuf_paste BKE_material_init_gpencil_settings BKE_gpencil_material_attr_init BKE_material_add_gpencil BKE_gpencil_material_add BKE_material_gpencil_get BKE_gpencil_material BKE_material_gpencil_default_get BKE_gpencil_material_default BKE_material_gpencil_settings_get BKE_gpencil_material_settings
2020-02-04Merge branch 'blender-v2.82-release'Philipp Oeser
2020-02-04Fix T67084: Modal keymaps could show the wrong shortcutPhilipp Oeser
WM_modalkeymap_operator_items_to_string() wasnt checking WM_keymap_active(), so it was possible that e.g. when using the Industry Compatible keymap, the shortcut from the Blender keymap was shown. This also fixes the (now exposed) bug that the Industry Compatible keymap would not have a ADD_CUT_CLOSED kmi defined for the Knife Tool [mandatory for the status bar]. Maniphest Tasks: T67084 Differential Revision: https://developer.blender.org/D6748
2020-02-04Fix errors from conflicts in last mergeJulian Eisel
Handled merge conflicts wrong apparently. When checking changes before committing, everything seemed fine...
2020-02-04Merge branch 'blender-v2.82-release'Julian Eisel
2020-02-04Reports: Add utility to cancel displayed reportsJulian Eisel
Sebastián Barschkis needs something like this to fix an issue, so he asked me to add this to the release branch. It's unused for now.
2020-02-04Merge branch 'blender-v2.82-release'Campbell Barton
2020-02-04Fix T65306: UI widgets clipped when scaled upCampbell Barton
Normal UI widget and 3D navigation gizmo where clipping at high DPI.
2020-02-01UI: Shortcut String ChangesHarley Acheson
Improvements to keyboard shortcuts shown in menus, mostly for Macs. Differential Revision: https://developer.blender.org/D6730 Reviewed by Brecht Van Lommel
2020-01-30Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-30Cleanup: remove WM_keymap_verify_itemCampbell Barton
This wasn't used and isn't useful since it only checked if an operator was included in the keymap - ignoring it's properties.
2020-01-30Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-30Cleanup: ED_editors_flush_* functionsCampbell Barton
- Remove the only_render arg from ED_editors_flush_edits was only used in one place, the '_ex' version can be used instead. - Split out the single object version of this function as currently flushing is being done in-line, often only accounting for edit-mode, ignoring sculpt mode for e.g.
2020-01-29Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-29UI: hide filter alembic optionCampbell Barton
This was showing along side image save options.
2020-01-28macOS: add trackpad smart zoom event supportYevgeny Makarov
This is done with two-finger double tap on trackpads, and is usually used to zoom into an element under the cursor. It can now be used for toggling local view in the 3D viewport. Differential Revision: https://developer.blender.org/D6588
2020-01-28Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-28Fix T68960: Crash loading app-template keymapCampbell Barton
2020-01-27Merge branch 'blender-v2.82-release'mano-wii
2020-01-27Fix part of T65404: quit dialog doesn't show if Blender is minimizedYevgeny Makarov
This solves the problem for macOS and Linux, but not Windows yet. Differential Revision: https://developer.blender.org/D6673
2020-01-27Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-27Cleanup: fix compiler warningsBrecht Van Lommel
2020-01-25Cleanup: spellingCampbell Barton
2020-01-23Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-23CMake: Refactor external dependencies handlingSergey Sharybin
This is a more correct fix to the issue Brecht was fixing in D6600. While the fix in that patch worked fine for linking it broke ASAN runtime under some circumstances. For example, `make full debug developer` would compile, but trying to start blender will cause assert failure in ASAN (related on check that ASAN is not running already). Top-level idea: leave it to CMake to keep track of dependency graph. The root of the issue comes to the fact that target like "blender" is configured to use a lot of static libraries coming from Blender sources and to use external static libraries. There is nothing which ensures order between blender's and external libraries. Only order of blender libraries is guaranteed. It was possible that due to a cycle or other circumstances some of blender libraries would have been passed to linker after libraries it uses, causing linker errors. For example, this order will likely fail: libbf_blenfont.a libfreetype6.a libbf_blenfont.a This change makes it so blender libraries are explicitly provided their dependencies to an external libraries, which allows CMake to ensure they are always linked against them. General rule here: if bf_foo depends on an external library it is to be provided to LIBS for bf_foo. For example, if bf_blenkernel depends on opensubdiv then LIBS in blenkernel's CMakeLists.txt is to include OPENSUBDIB_LIBRARIES. The change is made based on searching for used include folders such as OPENSUBDIV_INCLUDE_DIRS and adding corresponding libraries to LIBS ion that CMakeLists.txt. Transitive dependencies are not simplified by this approach, but I am not aware of any downside of this: CMake should be smart enough to simplify them on its side. And even if not, this shouldn't affect linking time. Benefit of not relying on transitive dependencies is that build system is more robust towards future changes. For example, if bf_intern_opensubiv is no longer depends on OPENSUBDIV_LIBRARIES and all such code is moved to bf_blenkernel this will not break linking. The not-so-trivial part is change to blender_add_lib (and its version in Cycles). The complexity is caused by libraries being provided as a single list argument which doesn't allow to use different release and debug libraries on Windows. The idea is: - Have every library prefixed as "optimized" or "debug" if separation is needed (non-prefixed libraries will be considered "generic"). - Loop through libraries passed to function and do simple parsing which will look for "optimized" and "debug" words and specify following library to corresponding category. This isn't something particularly great. Alternative would be to use target_link_libraries() directly, which sounds like more code but which is more explicit and allows to have more flexibility and control comparing to wrapper approach. Tested the following configurations on Linux, macOS and Windows: - make full debug developer - make full release developer - make lite debug developer - make lite release developer NOTE: Linux libraries needs to be compiled with D6641 applied, otherwise, depending on configuration, it's possible to run into duplicated zlib symbols error. Differential Revision: https://developer.blender.org/D6642
2020-01-22VSE: Tool system integrationRichard Antalik
Add toolbar to sequencer regions. A bit of refactoring has to be done in RNA space. Currently there is only cut tool implemented to serve as template for anybody who would like to add more.
2020-01-21GHOST: bundle tablet data with GHOST eventBrecht Van Lommel
Previously the window manager would receive the GHOST event and then query the latest tablet data from the window to go along with it. If multiple events were queued, it would then use too new tablet data for handling older events. Fixes T62565: tablet pressure not working on macOS with some devices
2020-01-21Cleanup: deduplicate window event state update codeBrecht Van Lommel
2020-01-21Cleanup: simplify wmEvent tablet data storage and namingBrecht Van Lommel
Removing meaningless distinction between NULL pointer and EVT_TABLET_NONE, and initialize pressure and tilt to 1.0 and 0.0 respectively when no tablet is used.
2020-01-20Merge remote-tracking branch 'origin/blender-v2.82-release'Sybren A. Stüvel
2020-01-20Fix T73162: Modal tools cant be mapped to MMBCampbell Barton
Also rename struct members to 'launch_event', since it's more descriptive and was called this in some places.
2020-01-17Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-17Fix T73135: Gizmos flicker when changing viewport optionsCampbell Barton
2020-01-16Fix wrong usages of region align enumerationsJulian Eisel
`ARegion.alignment` unfortunately is a mixture of value and bitflag enumerations. When checking for left/right/top/bottom region alignment, the flags have to be masked out usually. Most of the fixed cases here probably didn't cause issues in practice, but could in fact break at any point when surrounding logic changes. In fact the assert in #region_visible_rect_calc() failed in an older file from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949035. This fixes it.
2020-01-16Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-16Fix T73149: Adjust Last Operation uses horizontal layoutCampbell Barton
The horizontal layout was clipping text for some enums.
2020-01-15Fix invalid region rectangles, sanitize dynamic region size calulationsJulian Eisel
It was too easy to end up with invalid region rectangles and we were badly protected against them, so that they were hard to catch. In fact we still create a main region for the top-bar, which ended up getting a region height of -1. While this doesn't seem to have caused issues in practice, we should prevent them entirely. So idea was that at the end of region layout resolving, `BLI_rcti_is_valid()` should return `true` for the region rectangle. Further changes here ensure this is true: The `RGN_FLAG_TOO_SMALL` flag is now set whenever there is not enough space for a region or if it would get a size of zero or less. Note: Should the assert fail, please do not just disable it and try to actually address the root of the issue.
2020-01-15Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-15WM: support keys F20-F24Asher
This was already supported by GHOST on X11, WIN32. macOS goes up to F20.
2020-01-14Cleanup: Use new BLI_rct utilities to ensure valid rectanglesJulian Eisel
Technically this does a slight change to the check in wm_window.c: The assert now also allows zero width/height rectangles.
2020-01-14Fix invalid min/max sizes of global areas after loading factory settingsJulian Eisel
Simply loading factory settings and dragging an area separator immediately after would cause an assert because of these invalid sizes. Seems that since rB07499c04f612 we correctly initialize DPI related UserPref values with 0, which caused DPI dependant initialization of global areas to set ScrArea.global.size_min/max to 0 too.
2020-01-14Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-14Fix T70273: Auto-keyframe ignored by gizmosCampbell Barton
2020-01-13Cleanup: remove hack that set operator id in the wmEventCampbell Barton
This can be replaced by passing an argument.
2020-01-10Merge branch 'blender-v2.82-release'Patrick Mours
2020-01-10Fix T71491: Sculpt Brush Text ColorJeroen Bakker
When text drawing is disabled in the viewport the color of the sculpt brh is set to the last used one. In th Light theme this is black what makes it totally not visible. This change will render the brush text using `TEXT_HI` as this is the last one set when the text overlay is on.
2020-01-10Cleanup: group event_query functions in headerCampbell Barton
2020-01-10Cleanup: name wm_event_modalkeymap_begin/endCampbell Barton
Relocate & name functions to make it clear calling begin should be followed by a call to end. Also group locking & report functions.