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
path: root/intern
AgeCommit message (Collapse)Author
2020-02-06Merge branch 'blender-v2.82-release' into masterNathan Letwory
2020-02-06OpenVDB: Fix IOError in try catch statementSebastián Barschkis
Broader exception handling for OpenVDB IO errors.
2020-02-06Fluid: Fixed slow cache loading for smoke dataSebastián Barschkis
Cache files are currently loaded via the Manta Python API. With very big caches this can slow down the viewport playback. Especially smoke simulations, which just load grids and no meshes, can suffer from this. This fix solves this problem by directly loading the cache files from disk (no Python). This fix has been in the works for some time. The developer of this patch is ready to handle any potential fall-out of this patch quickly.
2020-02-06Code_Cleanup_Day/Windows: Clean-up windows API Level.Ray Molenkamp
Not sure when this happened but apparently the lower bar is now windows 7 [1] This patch bumps to API version to 0x0601 (Win7) and cleans up any uses that worked around the globally set API version. [1] https://www.blender.org/download/requirements/ Reviewed By: brecht Differential Revision: https://developer.blender.org/D6758
2020-02-06Cycles: Track specular throughput to account for reflection color in ↵Lukas Stockner
denoising albedo pass To determine the albedo pass, Cycles currently follows the path until a predominantly diffuse-ish material is hit and then takes the albedo there. This works fine for normal mirrors, but as it completely ignores the color of the bounces before that diffuse-ish material, it also means that any textures that are applied to the specular-ish BSDFs won't affect the albedo pass at all. Therefore, this patch changes that behaviour so that Cycles also keeps track of the throughput of all specular-ish closures along the path so far and includes that in the albedo pass. This fixes part of the issue described in T73043. However, since it has an effect on the albedo pass in most scenes, it could cause cause regressions, which is why I'm uploading it as a patch instead of just committing as a fix. Differential Revision: https://developer.blender.org/D6640
2020-02-04Merge branch 'blender-v2.82-release'Pablo Dobarro
2020-02-04Fix wrong default value for Lacunarity in Musgrave textureBartosz Moniewski
Lacunarity parameter determines scaling of subsequent octaves in fractal noises. For example, Noise node have this scaling hardcoded to 2.0. Each octave have twice bigger scale than previous one, resulting in finer details. By design fractal noises that generate octaves with same seed should not have Lacunarity set to 1.0, since then it just stacks up identical noises. Differential Revision: https://developer.blender.org/D6742
2020-02-03Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-02-03Fix Cycles particle hair rendering broken after recent changesBrecht Van Lommel
This code was already wrong, we were just lucky that the previous coordinate was repeated due to using the same memory location.
2020-02-02Cleanup: clang-formatCampbell Barton
2020-01-31Cycles: bump version to 1.12, matching Blender 2.83 release cycleBrecht Van Lommel
2020-01-31Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-31Fix T64024: fullscreen switching on macOS shows red line artifactsYevgeny Makarov
Specifically, this happened when automatically hiding and showing of the menu bar and dock was enabled in the system preferences. Differential Revision: https://developer.blender.org/D6710
2020-01-31Cleanup: enforce immutability through const, instead of a commentNicholas Rishel
Differential Revision: https://developer.blender.org/D6504
2020-01-31Fix issues in Cycles standalone, particularly related to render displayBrecht Van Lommel
Some code was removed to avoid storing the combined pass when viewport rendering other passes. But we can keep this by default, Blender overrides the list of passes entirely.
2020-01-31Cycles: bump version to 1.11, matching Blender 2.82 release cycleBrecht Van Lommel
2020-01-31Fluid: More stable flow emissionSebastián Barschkis
Reverting some changes that were made in 33317b464777
2020-01-31Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-31Fix potential crash in guarded alloc stats, when there are no allocationsJames Fulop
This was found with static analysis warnings in Visual Studio 2019. Differential Revision: https://developer.blender.org/D6564
2020-01-31Fix more undefined behavior in tangent space computationBrecht Van Lommel
Ref D6677
2020-01-30Cleanup: clang-format, unused variableCampbell Barton
2020-01-29Merge branch 'blender-v2.82-release'Philipp Oeser
2020-01-29Fluid: Fixes for flow objects and initial velocitiesSebastián Barschkis
This commit cleans up the flow emission code (i.e. the code that determines where flow is generated). It also addresses an issue with initial velocities. Related issues (that might be fixed through this commit) are: T73422, T72949
2020-01-29Fix T73469: OSL: Vector Math Node modulo uses wrong functionCharlie Jolly
This also fixes glsl version of fmod when both inputs are negative. Differential Revision: https://developer.blender.org/D6704
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-28Linux: update EGL context code to fully work, including offscreen renderingChristian Rauch
This is a step towards Wayland and headless rendering support, using EGL instead of GLX. The EGL backend is not enabled by default, it can be tested using WITH_GL_EGL=ON. Differential Revision: https://developer.blender.org/D6585
2020-01-27UI: Win32 - Restore Minimized App On WM_CloseHarley Acheson
Changes needed for Windows 10 to restore and show close dialog from minimized state. https://developer.blender.org/D5107 Reviewed by Brecht Van Lommel
2020-01-27Merge remote-tracking branch 'origin/blender-v2.82-release'Ray Molenkamp
2020-01-27Fix: Building without WITH_MOD_FLUIDRay Molenkamp
When MOD_FLUID was off and WITH_CYCLES was on there was a build error. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6542
2020-01-27Merge branch 'blender-v2.82-release'mano-wii
2020-01-27Fix undefined behavior in tangent space computationSimon G
Use an improved implementation for circular shift. Differential Revision: https://developer.blender.org/D6677
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-27Shading: Add color output to White Noise nodeCharlie Jolly
Hash input values to a color. Differential Revision: https://developer.blender.org/D6672
2020-01-27Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-27Memory: add OBJECT_GUARDED_SAFE_DELETE like MEM_SAFE_FREEBrecht Van Lommel
2020-01-27Fix OBJECT_GUARDED_FREE compiler error when type is in namespaceBrecht Van Lommel
2020-01-27Cleanup: fix compiler warningsBrecht Van Lommel
2020-01-25Cleanup: include missing CMake headersCampbell Barton
2020-01-24Merge branch 'blender-v2.82-release'Pablo Dobarro
2020-01-24Fluid: Added resume cache boolean to standalone scriptsSebastián Barschkis
Exported Manta script was missing the new resume options in the data load functions.
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-23Merge branch 'blender-v2.82-release'Antonio Vazquez
2020-01-23Fix: Use a minimal alignment of 8 in MEM_lockfree_mallocN_alignedJacques Lucke
`posix_memalign` requires the `alignment` to be at least `sizeof(void *)`. Previously, `MEM_mallocN_aligned` would simply return `NULL` if a too small `alignment` was used. This was an OS specific issue. The solution is to use a minimal alignment of `8` for all aligned allocations. The unit tests have been extended to test more possible alignments (some of which were broken before). Reviewers: brecht Differential Revision: https://developer.blender.org/D6660
2020-01-22Fluid: Cleaned up functions that deal with Python objects (C-API)Sebastián Barschkis
This commit belongs to T72894. It's related to (my) previous commits on pointer exchanges (today + yesterday). It cleans up the functions by describing their usage in the comments, adds additional nullptr checks, and fixes the reference count responsibilities of newly created PyObjects.
2020-01-22Fluid: Refactored Mantaflow <-> Blender pointer exchange once moreSebastián Barschkis
2020-01-22Fix T71344: Optix render errors with motion blur and unknown bone constraint ↵Patrick Mours
relationship The OptiX SRT motion expects a motion defined by translation, rotation, shear and scale, but the matrix decomposition code in Cycles was not able to extract shear information and instead produced a stretch matrix with the information baked in. This caused conflicting transforms between traversal and shading and lead to render artifacts. This patch changes the matrix decomposition to produce factors inline with what OptiX expects to fix that. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6605
2020-01-22Merge branch 'blender-v2.82-release'Richard Antalik
2020-01-22Fix T73311: Mantaflow > Liquid: Enabling Initial Velocity on Inflow / ↵Sebastián Barschkis
Outflow crashes Blender
2020-01-22Fix T72894: Mantaflow: several crashes due to null pointersSebastián Barschkis
Incorporated LazyDodo's suggestions from the task.