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-03-13GPencil: Join Tint and Vertex Color modifierAntonio Vazquez
Both are doing almost the same and can be merged. This reduce complexity for user and less code to maintain. Reviewed By: mendio, pepeland, fclem Differential Revision: https://developer.blender.org/D7134
2020-03-09GPencil: Refactor of Draw Engine, Vertex Paint and all internal functionsAntonio Vazquez
This commit is a full refactor of the grease pencil modules including Draw Engine, Modifiers, VFX, depsgraph update, improvements in operators and conversion of Sculpt and Weight paint tools to real brushes. Also, a huge code cleanup has been done at all levels. Thanks to @fclem for his work and yo @pepeland and @mendio for the testing and help in the development. Differential Revision: https://developer.blender.org/D6293
2020-03-08Revert "Outliner: Allow deleting entire selection"Campbell Barton
This reverts commit 62f238a65e334ccecae85134da0b05ba58382ae9. This prevents undo steps from being stored.
2020-03-08Outliner: Allow deleting entire selectionNathan Craddock
This allows deleting both collections and objects in the outliner selection at the same time. This only works using the keyboard shortcuts (X or Delete). While this works, a more robust solution should be implemented later to allow deleting the whole selection from the context menu as well.
2020-03-07Cleanup: Outliner: Remove unused parameterNathan Craddock
Searching back in the outliner did not require the unused SpaceOutliner parameter.
2020-03-07Cleanup: replace BLI_make_file_string with BLI_join_dirfile where possibleCampbell Barton
Use 'BLI_join_dirfile' for joining paths that don't need to expand '//'.
2020-03-06Cleanup: Rename ARegion variables from ar to regionJulian Eisel
The old convention was easy to confuse with ScrArea. Part of https://developer.blender.org/T74432. This is mostly a batch rename with some manual fixing. Only single word variable names are changed, no prefixed/suffixed names. Brecht van Lommel and Campbell Barton both gave me a green light for this convention change. Also ran clan clang format on affected files.
2020-03-06Cleanup: use 'BKE_' prefix for BKE_deform API callsCampbell Barton
- Use 'BKE_object_defgroup' prefix for object functions. - Rename 'defvert_verify_index' to 'defvert_ensure_index' since this adds the group if it isn't found.
2020-03-05Fix T74332: selection sync replacing parent selectionNathan Craddock
Selecting certain child datablocks also selects the parent (e.g. selecting a pose bone selects the armature). The base was selected, but the outliner tree element was left unselected. The subsequent selection sync would then deselect the parent base because it was not flagged as selected in the outliner. This led to issues like T74332 where selecting a pose bone in the outliner did not show drivers in the driver editor unless the armature was explicitly added to the selection afterwards. The solution is to also flag the outliner elements as selected when selecting parent bases. Differential Revision: https://developer.blender.org/D7029
2020-03-05Cleanup: redundant castsCampbell Barton
2020-03-04Refactor ID make local to use a single flag parameter.Bastien Montagne
Instead of using anonymous booleans flags, also allows to keep the same behavior in all cases, without needing special handling from calling code for our beloved oddballs object proxies...
2020-03-04Cleanup: Rename 'make local' functions to new scheme.Bastien Montagne
Also removed some only used locally from the header, `BKE_lib_id.h` is already way too big, no need to overload it with unused things.
2020-03-02Cleanup: Use generics properties for arrow keys navigation (walk-select)Valentin
This patch refactors arrow keys navigation to move properties and enum to generic ED_select_utils.h and property to WM_operator_properties_select_walk_direction() No functional change Reviewed By: Julian Eisel Differential Revision: https://developer.blender.org/D4771
2020-02-28Fix T71611: Outliner - Show only Visible/Hidden Objects not working when ↵Philipp Oeser
hiding Collections Use BASE_VISIBLE_VIEWLAYER (rather than BASE_VISIBLE_DEPSGRAPH -- which is not including the 'Hide in Viewport') Note: the is one case where this still 'fails': - 'Show only Hidden' plus excluding the parent collection (would be nice to show those -- but contents of excluded excluded collections dont get show in any case... this would be more work and for another report...) Maniphest Tasks: T71611 Differential Revision: https://developer.blender.org/D6953
2020-02-19Fix T74009: `bpy.ops.outliner.orphans_purge()` poll being too restrictive.Bastien Montagne
There is no reason to even require an editor at all here, for now just kept the 'orphan view needed' condition for the outliner case only.
2020-02-19Cleanup: assign Main, use existing assignmentsCampbell Barton
Avoid accessing inline since it's often used multiple times. In some cases it was already defined.
2020-02-17Fix T68749: BPY: Deprecate height of popupJeroen Bakker
`invoke_props_dialog` and `invoke_popup` had a width and a height field. The height field was ignored as the height is determined based on the content. This change removes the field from the BPY + WM_api Reviewed By: Campbell Barton, Jacques Lucke Differential Revision: https://developer.blender.org/D6694
2020-02-17Fix many typos and other issues in UI messages.Bastien Montagne
2020-02-15Cleanup: use UI_GetThemeColor3ubv when alpha is ignoredCampbell Barton
2020-02-10Cleanup: Rename `BKE_library_override_` functions to `BKE_lib_override_library_`Bastien Montagne
pqrt of T72604.
2020-02-10Refactor: move `Library`-specific functions into proper `BKE_library` file.Bastien Montagne
Even though we do not have much of those, this might change in the future, and in any case having specific functions for this ID type in generic `BKE_lib` area was really confusing.
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-01-30Fix T73499: Crash on hiding parent and all children of an object if one ↵Philipp Oeser
child is in an excluded collection Dont act on a base which cannot be found in the viewlayer. Oversight in rB41858a73111d. Maniphest Tasks: T73499 Differential Revision: https://developer.blender.org/D6721
2020-01-30Fix outliner delete not flushing multi-object edit-mode dataCampbell Barton
2020-01-16Fix T72887: Outliner crashes when after undo of some linking operation.Bastien Montagne
Outliner tree building code was not handling properly empty libraries (i.e. Lib datablocks in our bmain which have no used actual data anymore). Main issue here is unclean states of indirect hierarchies of linking involving several libraries after undo operation. This is not a critical issue though, just annoying and untidy.
2020-01-07Fix T69246: Outliner - Objects Filter Selected, Hidden and Active notPhilipp Oeser
working properly 'outliner_extract_children_from_subtree()' (introduced in rB40a1c671655c) was extracting the children of non-matching parents regardless of their own matching state. Now properly filter the subtree prior to extracting. Maniphest Tasks: T69246 Differential Revision: https://developer.blender.org/D6517
2019-12-24Cleanup: correct filenames in commentsCampbell Barton
2019-12-20UI: Remove orphan datablocks directly from File->Clean Up menuAntonio Vazquez
Actually, to purge orphans datablock you need go to Outliner, enable Orphan mode and press Purge button (that sometimes is out of the view because the window is too narrow). To have this option hidden make very difficult to users use and understand what means orphan data, so this patch just adds a new Clean Up menu to File menu with this option. This menu could be used in the future for more clean up options. To have a general Clean Up menu is common used in other softwares. Reviewed By: billreynish, mont29 Differential Revision: https://developer.blender.org/D6445
2019-12-20Fix T71844: Outliner: show_active doesn't expand armature to show active bonePhilipp Oeser
Since rB6bc6d016c5e7, outliner was not opening back up from the found active element (but only its ID instead -- all occurances of this ID in any collection). Now expand from the active element as well (but only do this for the first occurance of the corresponding ID) Maniphest Tasks: T71844 Differential Revision: https://developer.blender.org/D6329
2019-12-16Mantaflow [Part 6]: Updates in /blender/sourceSebastián Barschkis
A collection of smaller changes that are required in the /blender/source files. A lot of them are also due to variable renaming. Reviewed By: sergey Maniphest Tasks: T59995 Differential Revision: https://developer.blender.org/D3855
2019-12-12Modifier: New Weld Modifiermano-wii
Part of T70240 This is the initial implementation of Weld Modifier. New features will be added later. ToDo: - Seams: restrict welding to vertices along boundary edges. - Edge Collapse: collapse edges below the length threshold. - New icon. - Some customdata are not being correctly interpolated. Differential Revision: https://developer.blender.org/D6383
2019-12-10Fix T72258: Loading keymap crashes on startupCampbell Barton
2019-12-05Fix T72182: Fade Layers Option does not work when activating a layer from ↵Antonio Vazquez
Dope Sheet or Outliner The layer was activated, but the datablock was not tagged to recalc GPU cache.
2019-11-24Cleanup: doxygen commentsCampbell Barton
Also correct some outdated symbol references, add missing 'name' commands.
2019-11-20Outliner: Fixup for previous commit on tooltip/crash fixDalai Felinto
The issue was actually in Python extras (where it shows the ENUM option). I got a bit distracted by the "(undocumented operator)" message. It made me miss the missing ENUM once the crash was gone.
2019-11-20Outliner: Fix crash for tooltips on ID operationsDalai Felinto
This was introduced on 9ca2cbdcea6a.
2019-11-19Outliner: Don't show id operations (make single user) when not supportedDalai Felinto
For the make single user operation to work we expect a parent of the datablock to be around. However this is often not the case when not accessing the data from Scenes or Viewlayer display modes. For now we simply not show them in the other cases. They can be added later though, by testing the outliner tree parent compatibility with the expected parent id. Fix T71673 Differential Revision: https://developer.blender.org/D6276
2019-11-11Fix T71452: instance collection to scene from outliner not incrementing ↵Philipp Oeser
collection usercount Maniphest Tasks: T71452 Differential Revision: https://developer.blender.org/D6222
2019-11-08Cleanup: spellingCampbell Barton
2019-11-01Fix T71247: Outliner pose toggle looses bone selectionCampbell Barton
The outliner didn't account for weight-paint + pose-mode, making it consider all pose bones unselected. When syncing selection, bones were unselected. This adds a context argument to passed to drawing functions since finding the weight-paint pose-object in the drawing loop isn't efficient.
2019-10-31Fix inability to toggle pose-mode without sync-selectionCampbell Barton
- There was no way to select some kinds of data without activating them. - Pose mode could not be activated at all. No change to behavior with sync-selection enabled.
2019-10-30Fix T71026: Outliner - Show Hierarchy (Home Hotkey) Not Working CorrectlyPhilipp Oeser
In 2.8, code would not enter the new 'Objects' and Collections' 'folders'. Maniphest Tasks: T71026 Differential Revision: https://developer.blender.org/D6123
2019-10-24Fix T60689: Flip Active/Selected bone fails in weight paint modeCampbell Barton
Multiple selection operations failed with weight-paint + pose mode. Weight-paint + pose mode is a special case that doesn't support multi-pose mode, so we need to use this instead of the generic function.
2019-10-10Cleanup: clang-format, spellingCampbell Barton
2019-10-09Local Collections: Allow users to show hidden collectionsDalai Felinto
Users now can turn on in a viewport collections that are temporarily hidden (eye) in the view layer. Design task: T61327 As for the implementation, I had to decouple the visibility in the depsgraph from the visibility in the view layer. Also there is a "bug" that in a way was there before which is some operators (e.g., writing a text inside of a text object, tab into edit mode) run regardless of the visibility of the active object. The bug was present already (with object type visibility restriction) in 2.80 so if we decide to tackle it, can be done separately (I have a patch for it though P1132). Reviewed by: brecht (thank you) Differential Revision: D5992
2019-10-03Cleanup: argument naming, redundant NULL checksCampbell Barton
2019-10-02Revert "UI: use correct singular and plural nouns in report messages"Brecht Van Lommel
Convention is to use (s) postfix for cases where there can be one or multiple, so stay consistent with that. This reverts commit 3e8276311ed17d12e8b47b4fe8e2f68c1ce8c603.
2019-10-01UI: use correct singular and plural nouns in report messagesYevgeny Makarov
Differential Revision: https://developer.blender.org/D5729