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-08-21Tests: detect memory leaks in automated testsfail-on-memleakJacques Lucke
A memory leak should be considered a bug. Therefore, it makes sense to fail tests when they contain memory leaks. Differential Revision: https://developer.blender.org/D8665
2020-08-19Cycles : add a Volume Geometry NodeKévin Dietrich
This splits the volume related data (properties for rendering and attributes) of the Mesh node into a new `Volume` node type. This `Volume` node derives from the `Mesh` class since we generate a mesh for the bounds of the volume, as such we can safely work on `Volumes` as if they were `Meshes`, e.g. for BVH creation. However such code should still check for the geometry type of the object to be `MESH` or `VOLUME` which may be bug prone if this is forgotten. This is part of T79131. Reviewed By: brecht Maniphest Tasks: T79131 Differential Revision: https://developer.blender.org/D8538
2020-08-18Cleanup: GPUState: Remove stack from the state manager and rename itClément Foucault
2020-08-18Merge remote-tracking branch 'origin/blender-v2.90-release'Dalai Felinto
2020-08-18Remove (ifdef) RNA for simulation, point cloud and particlesDalai Felinto
For 2.90 release this should not be exposed in the RNA API. In master this needs to be ON by default, that's all. Differential Revision: https://developer.blender.org/D8589
2020-08-18Cycles: add a Pass NodeKévin Dietrich
The Pass struct is now a Node and the passes are moved from the Film class to the Scene class. The Pass Node only has `type` and `name` as sockets as those seem to be the only properties settable by exporters (other properties are implicit and depend on the pass type). This is part of T79131. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8591
2020-08-18Cycles: move some Scene related methods out of SessionKévin Dietrich
This moves `Session::get_requested_device_features`, `Session::load_kernels`, and `Session::update_scene` out of `Session` and into `Scene`, as mentioned in D8544. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8590
2020-08-17Merge branch 'blender-v2.90-release'Philipp Oeser
2020-08-17Fix T77683: Cycles baking crash with motion blur enabled and no cameraPhilipp Oeser
specified Maniphest Tasks: T77683 Differential Revision: https://developer.blender.org/D8593
2020-08-17Cycles: Fix local intersections in Embree for non-instancd geometry.Stefan Werner
Embree's occlusion filter was checking against the wrong object ID and not exiting correctly in case of a mismatch. Fixes T79723
2020-08-17Merge branch 'blender-v2.90-release'Richard Antalik
2020-08-17Fix T79052: Cycles new sky texture fails with sun size zeroBrecht Van Lommel
Clamp to a minimum angle to avoid precision issues.
2020-08-17Cycles: Fix local intersections in Embree for non-instancd geometry.Stefan Werner
Embree's occlusion filter was checking against the wrong object ID and not exiting correctly in case of a mismatch. Fixes T79723
2020-08-17Cleanup: spellingCampbell Barton
2020-08-14Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-14Fix warning when compiling on Linux with WITH_XR_OPENXR enabledJulian Eisel
2020-08-14Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-14Fix undefined behavior with --debug-xrJulian Eisel
Mistake in cb578ca1048d3. Before that, the extension vector was static, to make sure the extension name strings wouldn't get destructed when leaving the function. I didn't think that was an issue and couldn't recreate one, because until the previous commit we wouldn't actually add any extensions to the vector on Windows (the system I tested with). Use C++17's `std::string_view` now, which avoids the string copies `std::string` creates for itself and thus its destruction when leaving the local scope.
2020-08-14Fix --debug-xr not outputting OpenXR debug prints on WindowsJulian Eisel
The OpenXR debug extension was disabled on Windows as a workaround. This was an old leftover from when there was only the Windows Mixed Reality runtime on Windows. The debug extension didn't work for it and we didn't have a way to disable it just for Windows Mixed Reality. Now it seems to work though, so we remove the workaround. If specific runtimes still have trouble with the extension, we can disable it specifically for these runtimes now.
2020-08-14Fix T79769, T79768: crash tweaking volume settings with Cycles viewport renderBrecht Van Lommel
Refitting the BVH does not work in this case, it needs to be fully rebuilt.
2020-08-14Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-14Fix/workaround graphics issues breaking SteamVR use with BlenderJulian Eisel
Windows only workaround. I'll have to investigate Linux separately. Steam's OpenGL compatibility is still new and doesn't work for us yet (neither does it for standard OpenXR examples from what I've heard and seen myself). We can work around that by falling back to our DirectX compatibility layer. Note that this DirectX compatibility still doesn't work for some systems, see T76082. Implementation note: Since the graphics binding extensions have to be enabled before we can find out which runtime is in use (e.g. SteamVR vs. Oculus, etc), we can now enable multiple graphics binding extensions but settle for a single one to use later. Once the SteamVR OpenGL backend works, we can remove this workaround again. Fixes T78267.
2020-08-14Cleanup: C++ code style for Ghost-XRJulian Eisel
* Avoid deep copy of vectors (technically more than a cleanup). * Use `std::make_unique` for allocating unique pointers, rather than manual `new`. * Use `std::optional` for optional by-value return values, rather than C-style `bool` to indicate success + return-argument. * Use references rather than pointers for non-optional arguments. * Avoid manual `new`/`delete`. Use `std::unique_ptr` for local scope bound lifetime. * Use C++ `nullptr` rather than C's `NULL`. * Remove unnecessary friend declaration. These changes are generally considered good practise and move us more to a "modern C++" style. We can still go much further of course. See https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines.
2020-08-13Cleanup: clang-formatCampbell Barton
2020-08-12Merge branch 'blender-v2.90-release'Brecht Van Lommel
2020-08-12Fix T79680, T79680: confusing viewport denoise start sample behaviorBrecht Van Lommel
2020-08-12Cleanup: compiler warningsBrecht Van Lommel
2020-08-12Merge branch 'blender-v2.90-release'Brecht Van Lommel
2020-08-12Fixes T77882: artifacts rendering OpenVDB volumes with multiple grids in CyclesKévin Dietrich
The previous algorithm was not using all of the requested grids to build a mesh around the volume due to limitations regarding the use of a dense buffer to gather information about the volume's topology. This resulted in artefacts during rendering. The mesh generation is now done by merging all of the input grids and using the resulting grid's topology to create the mesh. The generation of the mesh is still done in index space as before, and the vertices are converted to object space by using the merged topology grid indexToWorld transform. To be able to merge the grids together we have to make sure that their transformation matrices and their index spaces match, thus, if they do not match we simply resample the grids. This behaviour should tackle one other limitation of the current algorithm, which is that only one transformation matrix was used to generate the final mesh. If we do not have an OpenVDB grid for the requested volume data, we generate a temporary OpenVDB grid for it. Differential Revision: https://developer.blender.org/D8401
2020-08-11Cleanup: Strict compiler flagsSergey Sharybin
Mainly caused by moving tests to source folder, which brings new compiler flags. Also, no need to extend include directories (to the non-existing paths, btw) since this is done by the CmakeList.txt which is in the blenlib folder.
2020-08-11Cleanup: GCC warning in guardedalloc_overflow_testCampbell Barton
2020-08-10Merge branch 'blender-v2.90-release'Julian Eisel
2020-08-10Fix T79636: Inserting special characters with Ctrl+Alt broken on WindowsJulian Eisel
We can't exactly follow what we do for macOS here. On Windows special characters can be inserted with Ctrl+Alt. So make sure we expect UTF-8 characters when Alt is held. Mistake in 87062d4d670c.
2020-08-10Cleanup: follow code style regarding bracesBrecht Van Lommel
2020-08-10Tests: move remaining gtests into their own module foldersBrecht Van Lommel
And make them part of the blender_test runner. The one exception is blenlib performance tests, which we don't want to run by default. They remain in their own executable. Differential Revision: https://developer.blender.org/D8498
2020-08-08Cleanup: remove redundant return parenthesisCampbell Barton
2020-08-08GPU: Move ghost default framebuffer getter to context creationClément Foucault
2020-08-07Cleanup: Fix reported clang-tidy code-style issues.Ray Molenkamp
This resolves `error: statement should be inside braces` in some windows specific code that previously was unchecked by clang-tidy.
2020-08-07Merge branch 'blender-v2.90-release'Sebastián Barschkis
2020-08-07Fix T79201: Mantaflow: Fluid guides don't affect simulation.Sebastián Barschkis
This broke during the OpenVDB update for 2.90. Just making sure that guiding velocity files are being read correctly.
2020-08-07Revert "Cleanup: Cycles, applied Clang-Format"Sybren A. Stüvel
This reverts commit 88cc3f167f7ee404640289ed9cfd6b13f0494d98. It was caused by running Clang-Format version 10, instead of 9 from the precompiled libs directory.
2020-08-07Cleanup: Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule. This should be the final commit of the series of commits that addresses this particular rule. No functional changes.
2020-08-07Cleanup: Cycles, applied Clang-FormatSybren A. Stüvel
No functional changes.
2020-08-07Merge branch 'blender-v2.90-release' into masterJacques Lucke
2020-08-07Code Style: use "#pragma once" in intern/ghostJacques Lucke
More information can be found in D8466.
2020-08-06Merge branch 'blender-v2.90-release'Antonio Vazquez
2020-08-06Fix T79586: "rendering paused" not shown when viewport render starts pausedBrecht Van Lommel
2020-08-06Merge remote-tracking branch 'origin/blender-v2.90-release'Dalai Felinto
2020-08-06Cycles: load OpenVDB file earlier in Blender exportBrecht Van Lommel
In an upcoming bugfix we'll use OpenVDB data structures directly to build mesh for sparse OpenVDB volumes, loading them OpenVDB grids earlier and removing any references to Blender data structures makes that easier. This also makes changes to Blender volumes to support this, so Cycles can take ownership of a grid without Blender having to keep its own reference to it. This should also be useful in a future Python API. Ref D8401
2020-08-05Merge branch 'blender-v2.90-release'Jeroen Bakker