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-06-28fix missing type conversiontemp-attribute-processorJacques Lucke
2021-06-28Merge branch 'master' into temp-attribute-processorJacques Lucke
2021-06-28Functions: improve CPPTypeJacques Lucke
* Reduce code duplication. * Give methods more standardized names (e.g. `move_to_initialized` -> `move_assign`). * Support wrapping arbitrary C++ types, even those that e.g. are not copyable.
2021-06-28BLI: improve enum operatorsJacques Lucke
* Use unsigned integer types for bit operations. * Use 64 bit integer instead of 32 bit. * Support scoped enumes (aka `enum class`) by adding some more casts.
2021-06-28Fix T89455: Cycles crash when rendering a Mesh with autosmoothKévin Dietrich
The crash was caused by a mistake in 5f9677fe0c533b008b815d7fee0b56509a414ab7 where the pointers to the custom data layers would be overwritten with the one for the first layer, as CustomData_duplicate_referenced_layer is only about the first layer. customData_duplicate_referenced_layer_index should be used instead to duplicate the right layer.
2021-06-28GPU: Refactored +cleanup compilation log parsing.Jeroen Bakker
Old implementation has a single parser of many different formats. With the introduction of Vulkan this would lead to another parser in the same function. This patch separates the log parsing using a visitor pattern so the log parsing can be configured per GPU backend or even per driver. With Vulkan we manage the compiler our self so the parsing will become more straight forward. The OpenGL part depends on many factors (OS, Driver) and perhaps even GPU.
2021-06-28GPU: Separate compiler log from shader.Jeroen Bakker
Current compiler log parser is to complex to follow. Moving it to its own compile unit before refactoring.
2021-06-28Cleanup: use doxy sections for editcurve_select.cCampbell Barton
Signed-off-by: Campbell Barton <ideasman42@gmail.com>
2021-06-28Fix edit-mesh random select regression in random seed usePiotr Makal
Fix regression in 9c202281287743494fd7d81a13970053bc8a33b5 that wasn't using the random seed correctly.
2021-06-28Apply random selection precisely for curves, lattices & objectsPiotr Makal
This patch is part of: T87228. Support accurate random selection for: - CURVE_OT_select_random - LATTICE_OT_select_random - OBJECT_OT_select_random Ref D11685
2021-06-28BLI_rand: support for randomizing bitmapsPiotr Makal
Add utility functions: - BLI_bitmap_randomize - BLI_rng_shuffle_bitmap Part of D11685
2021-06-28Cleanup: Fix const warnings in buttons_context.cYimingWu
2021-06-28UI: Hide collection tab when scene master collection is activeYimingWu
CollectionLineart does not care about the configurations in master collection. Other options are not applicaple for master collection as well. Hence hiding it. Reviewed by Dalai Felinto (dfelinto) Differential Revision: https://developer.blender.org/D11702
2021-06-28Outliner: View Layers filter for View Layer ModeDalai Felinto
This option allow users to see the view layer in context to the others. It is particularly useful to see which view layers have which collections enabled, and their render settings (holdout, ...). This option is off by default. Differential Revision: https://developer.blender.org/D11708
2021-06-28Fix: Crash Requesting GPU_SHADER_GPENCIL_FILL builtin shader.Jeroen Bakker
Shader doesn't have any shader code. Requesting the shader would crash blender. Solved by removing the enum_value.
2021-06-28GPU: Testcases for builtin shaders.Jeroen Bakker
Adding compiler test (does it compile?) test for all builtin shaders.
2021-06-28Cleanup GPU/Draw test cases.Jeroen Bakker
In preparation of supporting vulkan. Draw/GPU tests should use GPU_TEST or DRAW_TEST macros. These macros will run the test on available drawing context backends like OpenGL or Vulkan. As in master there is only an OpenGL backend nothing changed.
2021-06-28Cleanup: use view3d_navigate prefix for walk/fly operatorsCampbell Barton
Use matching file-name prefix as these operators are closely related.
2021-06-28Cleanup: update commentsCampbell Barton
2021-06-28Cleanup: de-duplicate 3D-view depth calculation functionCampbell Barton
2021-06-28Cleanup: typos in RNA enumsCampbell Barton
2021-06-28Cleanup: repeated terms in code comments & error messagesCampbell Barton
2021-06-28UI: Cleanup: Phrasing of tooltips in line art modifierHans Goudey
Start the tooltip with a verb instead of a gerund, other small changes for consistency and readability.
2021-06-27Fix T89330 Exact Boolean fails on a simple model.Howard Trickey
The problem was an optimization I put in to triangulate quads. It was wrong if the quad, after projecting onto a 2d plane, was not convex. Handling quads the same as other faces fixes the bug. Unfortunately, this will slow down Exact Boolean when the input has many quads (the usual case, of course). Will attempt to fix that with a later change, but for now, this at least restores correctness.
2021-06-26Cleanup: spellingCampbell Barton
2021-06-26Cleanup: remove redundant/outdated commentsCampbell Barton
2021-06-26Cleanup: redundant use of static constantCampbell Barton
2021-06-26Cleanup: full sentences in comments, improve comment formattingCampbell Barton
2021-06-26GPencil: Duplicate Masks when separate Layer/StrokesAntonio Vazquez
Now, the mask layers are copied and later a cleanup is done in order to verify all mask layer exist in destination object. If the layer mask does not exist, it's removed from the list. This is related to T89234.
2021-06-26Edit Mesh: optimize common use-cases for partial updatesCampbell Barton
Skip updating normals & tessellation for contiguous geometry regions for operations such as translate & uniform scale. This means when all geometry is selected, no updates are needed as the relative locations of vertices aren't being modified. Performance: As this is skipping a multi-threaded operation, larger improvements are noticeable on systems with fewer cores. - ~1.15x to ~1.3x overall gain for 32 cores. - ~1.7x to ~2.2x overall gain for 1 core (limited using `-t 1` argument). Details: - Rotate & non-uniform scale only skip tessellation. - Proportional editing and axis-mirror have special handling ensure geometry is properly grouped before considering a face part of a single group that can be skipped. - Loose vertices always need their normals to be recalculated since they're calculated based on the location. - Non-affine transform operations such as shrink-fatten & bend, don't take advantage of this optimization. - Snap projection also disables the optimization.
2021-06-26Cleanup: move snap with projection check into a functionCampbell Barton
2021-06-26BMesh: skip partial updates when there is nothing to doCampbell Barton
2021-06-26Cleanup: RNA warningCampbell Barton
2021-06-25Fixes a bug where the instances count in the spreadsheetFabian Schempp
editor dataset region always showed 0. This was caused by a conditional statement that needed a domain to be set, which is not the case for Instances component type. Reviewer: Hans Goudey (Hoogly Boogly) Differential Revision: https://developer.blender.org/D11710
2021-06-25Fixes a warning where dst array size was wrong in theFabian Schempp
signiture of BLI_str_format_attribute_domain_size. Reviewer: Hans Goudey (Hoogly Boogly) Differential Revision: https://developer.blender.org/D11710
2021-06-25UI: Improved File Browser Preview Image ScalingHarley Acheson
This patch enables sample filtering when scaling preview images in File Browser, improving the result a bit. Reduces blockiness and other artifacts when enlarging the images. see D11706 for details and examples. Differential Revision: https://developer.blender.org/D11706 Reviewed by Julian Eisel
2021-06-25Cleanup: Clang formatHans Goudey
2021-06-25Cycles: add view layer option to disable motion blur, in the Filter panelBrecht Van Lommel
2021-06-25Cleanup: make formatDalai Felinto
string.c still needs cleanup, but I will leave to the original author of the latest chagnes to do it since it needs some tags to skip formatting.
2021-06-25Fix T87185: value assigned to modal Scale does not work properlyCampbell Barton
`t->values` does not necessarily represent a final value of the transformation, as each mode treats this value differently. So, unfortunately, we cannot have a generic offset solution for modal transform operations. Offset needs to be handled by each mode. Note: Currently only, `Move`, `Rotate` and `Resize` support this.
2021-06-25Fix T89430: Realizing NURBS curve instances is brokenHans Goudey
The "copy_data" function for nurbs splines was incorrect, it always set the destination's knots vector as "not dirty," even if the source's was.
2021-06-25Linux: prefer using dedicated GPU when launching BlenderMihnea Stoian
Adds "PrefersNonDefaultGPU" and "X-KDE-RunOnDiscreteGpu" to the .desktop file. Similar hints for macOS and Windows exist already, to prefer using a dedicated GPU over a slower integrated GPU. See: https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/13 Differential Revision: https://developer.blender.org/D11643
2021-06-25Fix T88756: crash when baking with autosmoothKévin Dietrich
When baking some data, we create a new Mesh with edits and modifiers applied. However, in some cases (e.g. when there is no modifier), the returned Mesh is actually referencing the original one and its data layers. When autosmooth is enabled we also split the Mesh. However, since the new Mesh is referencing the original one, although `BKE_mesh_split_faces` is creating new vertices and edges, the reallocation of the custom data layers is preempted because of the reference, so adding the new vertices and edges overwrites valid data To fix this we duplicate referenced layers before splitting the faces. Reviewed By: brecht Differential Revision: https://developer.blender.org/D11703
2021-06-25LineArt: Filtering feature lines with face maskYimingWu
User can specify filtering options inside line art modifier, like inverting selection and including face mark region border. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11307
2021-06-25Spreadsheet: Dataset region for spreadsheet editorFabian Schempp
This patch adds a left aligned sidebar to the spreadsheet editor. This Sidebar can be used to navigate the geometry component types and attribute domains. It also provides a quick overview of domain sizes. It replaces the two dropdowns in the regions header. Next step will be to add the domain cycling shortcut using the CTRL + mouse wheel. Reviewer: Dalai Felinto (dfelinto), Julian Eisel (Severin), Hans Goudey (HooglyBoogly). Differential Revision: https://developer.blender.org/D11046
2021-06-25LineArt: More type & related chaining improvementsYimingWu
This patch includes: Floating edge type support, Special chaining option for floating edge, Chaining option for reducing jagged edges when floating edges are involved. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11306
2021-06-24GHOST/XR: support Wayland via XrGraphicsBindingOpenGLWaylandKHRChristian Rauch
2021-06-24GHOST: remove unused EGL context includes in Win32 and CocoaChristian Rauch
2021-06-24GHOST/EGL: store pointer to GHOST_System for downcast testsChristian Rauch
2021-06-24GHOST/Wayland: auto-select highest supported OpenGL versionChristian Rauch