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-11-12Fix T82466: Library Overrides: overrides disappear when appending.Bastien Montagne
`BKE_library_make_local` was not properly checking for tags and/or libs in liboverrides case.
2020-11-12Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-12Sculpt: fix face set extract clicking in empty spacePhilipp Oeser
Should not do anything in that case. ref T82615 Maniphest Tasks: T82615 Differential Revision: https://developer.blender.org/D9532
2020-11-12Sculpt: use ESC key in addition to RMB to cancel eyedropperPhilipp Oeser
This is more in line to other eyedropper usages throughout blender. Affected operators: - Sample Dyntopo detail - Extract Face Set (as reported in T82615) ref T82615 Maniphest Tasks: T82615 Differential Revision: https://developer.blender.org/D9531
2020-11-12Merge branch 'blender-v2.91-release' into masterSergey Sharybin
2020-11-12Codesign: Report codesign errors from server to workerSergey Sharybin
Pass codesign errors (if any) from codesign buildbot server to the buildbot worker, so that the latter one can abort build process if the error happens. This solves issues when non-properly-notarized DMG package gets uploaded to the buildbot website.
2020-11-12Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-12Fix T82624: Skin modifiers root bone cannot be movedPhilipp Oeser
When creating an armature from the skin modifier, resulting bones would always be flagged BONE_CONNECTED. Those bones cannot be transformed (just rotated). Now only flag bones that really have a parent BONE_CONNECTED. Maniphest Tasks: T82624 Differential Revision: https://developer.blender.org/D9534
2020-11-12Fix T82388: Sculpt mode: Unexpected undo behavior.Bastien Montagne
Issue exposed by rB4c7b1766a7f1. Main idea is that non-memfile first undo step should check into previous memfile and tag the ID it is editing as `future_changed`. That way, when we go back and undo to the memfile, said IDs are properly detected as changed and re-read from the memfile. Otherwise, undo system sees them as unchanged, and just re-use the current data instead. Note that currently only Sculpt mode seems affected (probably because it is storing the mode switch itself as a Sculpt undo step instead of a memfile one), but similar action might be needed in some other cases too. Maniphest Tasks: T82388 Differential Revision: https://developer.blender.org/D9510
2020-11-12Codesign: Report codesign errors from server to workerSergey Sharybin
Pass codesign errors (if any) from codesign buildbot server to the buildbot worker, so that the latter one can abort build process if the error happens. This solves issues when non-properly-notarized DMG package gets uploaded to the buildbot website.
2020-11-12Fix T82617: artifacts in Cycles viewport when changing subdivision attributesKévin Dietrich
The old attributes were not cleared when synchronizing the geometries, this could also lead to crashes in other cases. Ref T82608.
2020-11-12Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-12Merge branch 'blender-v2.91-release'Jeroen Bakker
2020-11-12Fix T82093: Sampled Colors Mismatch When Painting (Partial)Jeroen Bakker
When painting in the image editor on data images (Non-color, Raw) the color mismatched between the sampled color and the actual effect that the painting has on the image. The root cause is that the sampling is color managed, but the painting still uses a fixed color management pipeline with a lot of assumptions. Due to recent changes the drawing of the image editor is color managed, but the painting isn't what made these changes show up. This patch is a work-a-round so that the sampled colors and the effect the paint has on the texture matches. This isn't the correct solution as that would be to migrate all the painting tools to use proper color management. Reviewed By: Pablo Dobarro Differential Revision: https://developer.blender.org/D9411
2020-11-12Fix T81673: Color picker picks up UI and OverlayJeroen Bakker
There are two implementations of the Sample Color operation. One is used by the paint texture and one by the image editor. The image editor variant sampled from the ibuf directly, but the paint texture variant was sampling from the screen front buffer. This can lead into incorrect samples due to color pipeline. This patch will use the image editor variant when sampling a color for 2d texture painting Reviewed By: Pablo Dobarro Differential Revision: https://developer.blender.org/D9408
2020-11-12Cleanup: split view3d_placement depth & orientation calculationCampbell Barton
Split out functionality needed for preview plane drawing.
2020-11-12Cleanup: clang-tidy, remove invalid commentsCampbell Barton
2020-11-12Cleanup: Imperative tense in property descriptionRichard Antalik
2020-11-12ImBuf: pass the number of bytes read to 'is_a' callbacksCampbell Barton
Previously the header was a fixed size and assumed to be zeroed. Now read in bytes up to `HEADER_SIZE`, pass the number or bytes read to the callback which must not read past those bytes.
2020-11-12Cleanup: RNA ID enum utility functionCampbell Barton
- Avoid calling `GS(id->name)` on each iteration. - Remove unused arguments. - Pass `const ID *` to the filter callback.
2020-11-12Cleanup: spellingCampbell Barton
2020-11-12Cleanup: warningsCampbell Barton
2020-11-12Cleanup: Remove SSE math optimization i386 macOS buildsAaron Carlisle
We haven't supported 32bit mac builds for a while so this should be safe to remove. Reviewed By: #platform_macos, brecht Differential Revision: https://developer.blender.org/D9489
2020-11-12Merge branch 'blender-v2.91-release'Howard Trickey
2020-11-12Fix T80475, bad bevel: side vertex in bad plane in some cases.Howard Trickey
Needed a better normal to for plane to offset into when there are non in-plane edges between two beveled edges. It was using the vertex normal, which is just wrong. Differential Revision: https://developer.blender.org/D9508
2020-11-11UI: Tooltips: dont add period to labelsAaron Carlisle
These are generally only one or two word phrases and are not sentences. This change slightly improves readability. Note, the check when display labels: ``` Tip Label (only for buttons not already showing the label). ``` Could be improved here because there are a lot of false positives.
2020-11-11Cleanup: Split header for Outliner tree building into C and C++ headersJulian Eisel
See https://developer.blender.org/D9499. It's odd to include a C++ header (".hh") in C code, we should avoid that. All of the Outliner code should be moved to C++, I don't expect this C header to stay for long.
2020-11-11Cleanup: Rename Outliner "tree-view" types to "tree-display" & update commentsJulian Eisel
See https://developer.blender.org/D9499. "View" leads to weird names like `TreeViewViewLayer` and after all they are specific to what we call a "display mode", so "display" is more appropriate. Also add, update and correct comments.
2020-11-11Cleanup: Follow C++ code style for new Outliner building codeJulian Eisel
See https://developer.blender.org/D9499. * Use C++17 nested namespaces. * Use `_` suffix rather than prefix for private member variables. Also: Simplify code visually in `tree_view.cc` with `using namespace`.
2020-11-11Cleanup: General cleanup of Outliner Blender File display mode buildingJulian Eisel
See https://developer.blender.org/D9499. * Turn functions into member functions (makes API for a type more obvious & local, allows implicitly sharing data through member variables, enables order independend definition of functions, allows more natural language for function names because of the obvious context). * Prefer references over pointers for passing by reference (makes clear that NULL is not a valid value and that the current scope is not the owner). * Reduce indentation levels, use `continue` in loops to ensure preconditions are met. * Add asserts for sanity checks.
2020-11-11UI Code Quality: Convert Outliner Blender File mode to new tree buiding designJulian Eisel
See https://developer.blender.org/D9499. Also: * Add `space_outliner/tree/common.cc` for functions shared between display modes. * I had to add a cast to `ListBaseWrapper` to make it work with ID lists. * Cleanup: Remove internal `Tree` alias for `ListBase`. That was more confusing than helpful.
2020-11-11Cleanup: Put Outliner C++ namespace into `blender::ed` namespace, add commentsJulian Eisel
See https://developer.blender.org/D9499. Also remove unnecessary forward declaration.
2020-11-11Fix possible null-pointer dereference in new Outliner tree building codeJulian Eisel
2020-11-11Cleanup: Remove redundant parameter from new Outliner tree building codeJulian Eisel
See https://developer.blender.org/D9499.
2020-11-11Cleanup: Comments and style improvements for new Outliner C++ codeJulian Eisel
See https://developer.blender.org/D9499. * Add comments to explain the design ideas better. * Follow code style guide for class layout. * Avoid uninitialized value after construction (general good practice).
2020-11-11UI Code Quality: Use C++ data-structures for Outliner object hierarchy buildingJulian Eisel
See https://developer.blender.org/D9499. * Use `blender::Map` over `GHash` * Use `blender::Vector` over allocated `ListBase *` Benefits: * Significantly reduces the amount of heap allocations in large trees (e.g. from O(n) to O(log(n)), where n is number of objects). * Higher type safety (no `void *`, virtually no casts). * More optimized (e.g. small buffer optimization). * More practicable, const-correct APIs with well-defined exception behavior. Code generally becomes more readable (less lines of code, less boilerplate, more logic-focused APIs because of greater language flexibility).
2020-11-11UI Code Quality: General refactor of Outliner View Layer display mode creationJulian Eisel
See https://developer.blender.org/D9499. * Turn functions into member functions (makes API for a type more obvious & local, allows implicitly sharing data through member variables, enables order independend definition of functions, allows more natural language for function names because of the obvious context). * Move important variables to classes rather than passing around all the time (shorter, more task-focused code, localizes important data names). * Add helper class for adding object children sub-trees (smaller, more focused units are easier to reason about, have higher coherence, better testability, can manage own resources easily with RAII). * Use C++ iterators over C-macros (arguably more readable, less macros is generally preferred) * Add doxygen groups (visually emphasizes the coherence of code sections, provide place for higher level comments on sections). * Prefer references over pointers for passing by reference (makes clear that NULL is not a valid value and that the current scope is not the owner).
2020-11-11UI Code Quality: Start refactoring Outliner tree building (using C++)Julian Eisel
This introduces a new C++ abstraction "tree-display" (in this commit named tree-view, renamed in a followup) to help constructing and managing the tree for the different display types (View Layer, Scene, Blender file, etc.). See https://developer.blender.org/D9499 for more context. Other developers approved this rather significantly different design approach there. ---- Motivation General problems with current design: * The Outliner tree building code is messy and hard to follow. * Hard-coded display mode checks are scattered over many places. * Data is passed around in rather unsafe ways (e.g. lots of `void *`). * There are no individually testable units. * Data-structure use is inefficient. The current Outliner code needs quite some untangling, the tree building seems like a good place to start. This and the followup commits tackle that. ---- Design Idea Idea is to have an abstract base class (`AbstractTreeDisplay`), and then sub-classes with the implementation for each display type (e.g. `TreeDisplayViewLayer`, `TreeDisplayDataAPI`, etc). The tree-display is kept alive until tree-rebuild as runtime data of the space, so that further queries based on the display type can be executed (e.g. "does the display support selection syncing?", "does it support restriction toggle columns?", etc.). New files are in a new `space_outliner/tree` sub-directory. With the new design, display modes become proper units, making them more maintainable, safer and testable. It should also be easier now to add new display modes.
2020-11-11Fix T82521: Bump OpenImageIO minimum version 1.8 > 2.2.1 for install_deps.shBastien Montagne
Since rB6fdcca8de64cd70f, we need at least OpenImageIO 2.1.12 to build Blender.
2020-11-11GPencil: Fix unreported crash when style is NULLAntonio Vazquez
2020-11-11Cleanup: correct argument order to callbackCampbell Barton
Currently the callback isn't used, found when testing a new enum callback.
2020-11-11Merge branch 'blender-v2.91-release' into masterPhilipp Oeser
2020-11-11Fix T82553: Outliner F2 renaming issue when item is out of viewPhilipp Oeser
- scrolling would be restricted (usually, if the object to be renamed is in view, this prevents scrolling away without finishing the rename operation) - renaming by typing and confirming with Enter was not possible (you would have to escape, scroll to the object and use F2 again) - other shortcuts like A and H are still active instead of being handled as text input Avoid all these issue by forcing the item into view using outliner_show_active / outliner_scroll_view. Maniphest Tasks: T82553 Differential Revision: https://developer.blender.org/D9521
2020-11-11Cleanup: Use `NDEBUG` define, `DEBUG` one is not reliable.Bastien Montagne
2020-11-11Fix 'outliner_scroll_view()' not reaching wanted elementPhilipp Oeser
Scrolling to an item after opening relevant parents can go wrong if said parent e.g. the last in the list [as in: then the Outliner does not scroll down all the way] It stems from the fact that 'region->v2d.tot.ymin' is not up-to-date in outliner_scroll_view after outliner_show_active opens up parents, 'tot' will only update on a redraw. Now calculate the trees height on the fly using 'outliner_tree_dimensions()'. ref D9521 ref T82553 Maniphest Tasks: T82553 Differential Revision: https://developer.blender.org/D9523
2020-11-11Fix T82602: checking image header reads past buffer boundsCampbell Barton
Use the size argument to ensure checking the header doesn't read past the buffer bounds when reading corrupt/truncated headers from image files.
2020-11-11Cleanup: pass header size to 'is_a' callbacksCampbell Barton
No functional changes, prepare for fixing out-of-bounds access when reading headers.
2020-11-11Cleanup: use 'filepath' instead of 'name' for ImBuf utilitiesCampbell Barton
2020-11-11Cleanup: use bool for imbuf save callbacksCampbell Barton
2020-11-11Cleanup: avoid boolean literals for functions that return intCampbell Barton