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-02-24Workbench: Fix typo in rB32ca8e58a374Clément Foucault
This was creating incorrectly occluded overlays.
2021-02-24Cleanup: Simplify vector direction comparisonAntonio Vazquez
Multiply the two number together. If the sign of the result is positive, then the sign was the same. If the sign of the result is negative, then the signs were different.
2021-02-24Geometry Nodes: store available attribute names in node ui storageJacques Lucke
This information will be used by the attribute search in string sockets. Ref T85657. Differential Revision: https://developer.blender.org/D10462
2021-02-24PyAPI: Fix memory leak of parameters used for python 'draw_callbacks'Germano Cavalcante
When closing the blender, while the callbacks are removed, the reference count of the object used as `customdata` is not decremented. This commit adds two functions that correctly release the python `draw_callbacks` before releasing all `draw_callbacks`. Differential Revision: https://developer.blender.org/D10478
2021-02-24Cleanup: Fix commentAntonio Vazquez
2021-02-24GPencil: Improve Interpolate AutoFlip algorithm IIAntonio Vazquez
Improved the calculation of the distances and changed the variable names to make it more readable. Still, there are some corner cases that could be not handled properly, but we keep as is to test more real drawings to analyze if the small number of corner cases needs to be fixed or not.
2021-02-24Cleanup: CryptomatteLayerJeroen Bakker
Missing code flow.
2021-02-24Cleanup: Cryptomatte Use StringRef(Null).Jeroen Bakker
2021-02-24Cleanup: CryptomatteLayer structure.Jeroen Bakker
Current implementation was to restricting for future enhancements where the CryptomatterLayer could be read from existing metadata.
2021-02-24Cleanup: Move some utilities to 'gpu_py.h'Germano Cavalcante
2021-02-24Fix T85947: Missing check of master collection for objects being instanced.Bastien Montagne
`object_in_any_collection` used during linking/appending to check whether an object is already instanced by at least one collection, was not taking into account embedded master collections from scenes.
2021-02-24Fix crash updating themes in background modeCampbell Barton
2021-02-24Cleanup: quiet asan overflow warningJacques Lucke
2021-02-24Workbench: Fix samples taken outside of pixel footprintClément Foucault
With the previous implementation, we could have pixels with offset larger than 1 pixel. Also fix a bug when the closest_index is not last. The sample positions were incorrect in this case.
2021-02-24Fix T85726 Workbench: Orthographic view is blurryClément Foucault
This was caused by the window_translate_m4 not offsetting the winmat in the right direction for perspective view. Thus leading to incorrect weights. The workbench sample weight computation was also inverted. This fix will change the sampling pattern for EEVEE too (it will just mirror it in perspective view).
2021-02-24Fix line width broken for consecutive line draw callsJulian Eisel
D9054 did multiple consecutive `immBegin()`/`immEnd()` draw calls to draw multiple lines at varying thickness. This would only work for the first line, then they'd all get a 1px thickness (at least on macOS). Issue was that `wide_line_workaround_end()` called `immBindShader()` directly to restore the old shader (which the workaround overrides). However this doesn't set `imm->builtin_shader_bound` which has to be done for the workaround to work on the next `immBegin()` call. Instead `immBindBuiltinProgram()` can be called. Differential Revision: https://developer.blender.org/D10520 Reviewed by: Clément Foucault
2021-02-24Fix T85939: Eevee Specular BSDF shader compile errorJeroen Bakker
Introduced by 7f7e6830991b.
2021-02-24Cleanup: spellingCampbell Barton
2021-02-24Docs: clarify radial/cycle use for BMesh loopsCampbell Barton
Also add minor corrections clarifications elsewhere.
2021-02-24Geometry Nodes: Move node UI storage function to BKEHans Goudey
This function will be used in another file with attribute search, so it makes sense to share from the UI storage header.
2021-02-24GPencil: Fix typo error in previous commitAntonio Vazquez
2021-02-24GPencil: Improve Flip algorithm for InterpolateAntonio Vazquez
If the lines cross, but the angle is very sharp, check the distance between the extremes.
2021-02-23Fix T85895: Viewing value passes in Image Editor displays the value as alphaPhilipp Oeser
There was a similar report prior to the introduction of the Image Engine, see T74586. This was fixed by rB6a5bd812b569 at that time, but got lost in the refactor it seems. Above commit introduced the `ED_space_image_get_display_channel_mask` function that will determine the valid bitflags for the display channel of a given ImBuf. But since the refactor, this is not called anymore (`draw_image_main` is not called anymore) Now it seems we can safely reuse that said function `ED_space_image_get_display_channel_mask` also for the Image Engine. Maniphest Tasks: T85895 Differential Revision: https://developer.blender.org/D10510
2021-02-23Cleanup: Remove unecessary double negativeHans Goudey
2021-02-23Geometry Nodes: improve accessing attribute meta dataJacques Lucke
This allows accessing attribute meta data like domain and data type without having to create a `ReadAttribute`. I kept the `attribute_names` method for now to keep the patch more self contained. Differential Revision: https://developer.blender.org/D10511
2021-02-23Fix T84707: Wrong icon for Movie Clip EditorYevgeny Makarov
Sync the list of icons in CMakeLists.txt with UI_icons.h. Restore, in the source file, the FUND icon that was accidentally deleted. Delete four old/unused icons. See also D9715.
2021-02-23BLI: new FunctionRef typeJacques Lucke
Using `FunctionRef` is better than using `std::function`, templates and c function pointers in some cases. The trade offs are explained in more detail in code documentation. The following are some of the main benefits of using `FunctionRef`: * It is convenient to use with all kinds of callables. * It is cheaper to construct, copy and (possibly) call compared to `std::function`. * Functions taking a `FunctionRef` as parameter don't need to be declared in header files (as is necessary when using templates usually). Differential Revision: https://developer.blender.org/D10476
2021-02-23Cleanup: Use shorter enum namesHans Goudey
With the full node name at the beginning, these names can get quite long. Slightly different words shorten them just a bit.
2021-02-23Fix T85638: Child Window Positioning on Multiple MonitorsHarley Acheson
Constraint of new window position can be incorrect when using multiple monitors. Differential Revision: https://developer.blender.org/D10469 Reviewed by Brecht Van Lommel
2021-02-22UI: Remove Blend Thumb PassepartoutHarley Acheson
Removal of 'camera frame' around blend file thumbnail images. Differential Revision: https://developer.blender.org/D10490 Reviewed by Brecht Van Lommel
2021-02-22UI: Simplify Window CreationHarley Acheson
Refactoring: WM_window_open() that can open different types of windows. 'New Window' with simplified layout. Differential Revision: https://developer.blender.org/D10419 Reviewed by Brecht Van Lommel
2021-02-22Fix: Geometry nodes not depending on instanced collections properlySebastian Parborg
Geometry nodes were not adding referenced instanced collections as dependencies to depsgraph. This would lead to meshes and data not being ready on evaluation in certain cases.
2021-02-22Cleanup: Use bool instead of charHans Goudey
2021-02-22Fix T85753: Default UVs for Icosphere are flipped horizontallyPhilipp Oeser
These were flipped since their introduction in rBa070a5befa11. Maniphest Tasks: T85753 Differential Revision: https://developer.blender.org/D10465
2021-02-22Fix Principled BSDF specular color for black base colorPascal Schön
Specular color is set to black instead of white inside the Principled BSDF when the base color is set to fully black. This is contradictory to the sample code of the Disney BRDF in BRDF Explorer. This patch aligns both implementations. Differential Revision: https://developer.blender.org/D10448
2021-02-22Fix T85609 EEVEE: Viewport "vibrates" when mouse input is activeClément Foucault
Taa offset was applied on first sample. This wasn't happening before DOF refactor. Also fixes T85618 Wireframe Displays Strangely in Eevee (Rendered, material Preview)
2021-02-22Fix T85720 EEVEE: Contact shadows do not appear when enabling SSRClément Foucault
Contact shadows needed correct `gl_FragCoord.z` but this is not correctly set for fullscreen passes. Need to pass depth using a global variable until we get rid of `cl_eval.tracing_depth`.
2021-02-22Fix T85549: GPencil draw tool offset when UI scale is not 1Antonio Vazquez
There was a mistake in the variables saved and when resolution of the UI was not 1.0, the viewport was offset.
2021-02-22Cleanup: Use more clear field nameSergey Sharybin
Disambiguate which time the frames are measured in.
2021-02-22Cleanup: Tracking, reduce indentation levelSergey Sharybin
2021-02-22Cleanup: Spelling in commentSergey Sharybin
2021-02-22Cleanup: Decrease variable scopeHans Goudey
2021-02-22Cleanup: Clang tidy inconsistent parameter nameHans Goudey
Use the most recent names for the conflicting parameters.
2021-02-22Fix compilation error in bypass bmesh commit when GMP not defined.Howard Trickey
2021-02-22Various UI messages fixes and tweaks.Bastien Montagne
2021-02-22Fix proportional connected not working with loose edges due to hidden geometryPablo Dobarro
This was introduced in the new geodesic distances algorithm for proportional editing. When all faces of an edge are hidden, that edge should be considered as loose geometry. Initial patch by Pablo with modifications by Brecht. Differential Revision: https://developer.blender.org/D10488
2021-02-22Merge branch 'blender-v2.92-release'Philipp Oeser
2021-02-22Fix T85865: Crash when selecting Image texture nodePhilipp Oeser
Typo in rB7470c10601d0. Maniphest Tasks: T85865 Differential Revision: https://developer.blender.org/D10496
2021-02-22PyAPI: expose unstable type bpy.props._PropertyDeferredCampbell Barton
Even though this might change, rigify, animation-nodes & translation extraction depend on being able to extract this information.
2021-02-22GPU Python: Use 'PyC_ParseStringEnum' to parse itemsGermano Cavalcante
Currently the GPU module for python has different ways to handle enums. - Organizing items in `PyC_StringEnumItems` arrays and parsing them with `PyC_ParseStringEnum`. - Using dedicated functions for each type of enum (`bpygpu_ParsePrimType`, `pygpu_ParseVertCompType` and `pygpu_ParseVertFetchMode`). Although apparently more efficient (especially `pygpu_ParseVertCompType` which transforms strings into integers for simple comparison), these dedicated functions duplicate functionality, increase the complexity of the code and consequently make it less readable. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D10456