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-09-15Fix T80477: Crash when rendering with Embree but denoising with OptiXPatrick Mours
Commit 009971ba7adc9603b90e9bf99b6b6d53eeae6c3a changed it so Cycles creates a separate Embree device for each Cycles device, but missed the multi-device case. A multi-device with Embree BVH can occur when CPU rendering is used with OptiX denoising and BVH creation then failed to get a valid pointer to the Embree device, which crashed. This fixes that by providing the correct device pointer in the multi-device case as well.
2020-09-15Cleanup: add missing headers to CMake, formattingCampbell Barton
2020-09-15Fix T80774: (correction) keep MEM_init_memleak_detection call earlyCampbell Barton
2020-09-15Cleanup: spellingCampbell Barton
2020-09-12Fix remaining GL calls/type preventing from building due to recent cleanupClément Foucault
2020-09-12Cleanup: use C style doxygen commentsCampbell Barton
2020-09-10Fix build error after clog color printing changesBrecht Van Lommel
2020-09-10CLog: Support colorized logging on windowsRay Molenkamp
When using Windows Terminal the same control codes Linux uses to colorize the text can be used. WT can be detected by looking at the WT_SESSION environment variable. Differential Revision: https://developer.blender.org/D8848 Reviewed by: campbellbarton
2020-09-10Cleanup: CLog fix bad use_color defaultRay Molenkamp
`use_color` was defaulted to 'on' and only turned off when it was decided the terminal didn't support this. This was the wrong way to go about things, since that test only ran for Linux/Mac other operating systems would get color formatting regardless if they supported it. The new default is `off` until the platform specific code inside `CLG_ctx_output_set` turns it on after running some sanity checks. This fix was part of the review of D8848 but deserved its on commit Reviewed By: campbellbarton
2020-09-10Fix T71012: Cycles baking crash with locked-UI & background-modeCampbell Barton
2020-09-10UI: Use split layout for world mist settingsAaron Carlisle
Differential Revision: https://developer.blender.org/D7548
2020-09-10Cleanup: spellingCampbell Barton
2020-09-09Cleanup: spellingCampbell Barton
2020-09-08GPUImmediate: Make activation / deactivation implicitClément Foucault
This avoids unecessary complexity. Also makes the GPUImmediate threadsafe by using a threadlocal imm variable.
2020-09-08Cleanup: consistent syntax for doxygen parametersCampbell Barton
Also use back-slash instead of '@'.
2020-09-07Cleanup: tabs in CMake filesCampbell Barton
2020-09-07Cleanup: spellingCampbell Barton
Also correct wrapped lines of example code in threads.cc.
2020-09-05Cleanup: clang-formatCampbell Barton
2020-09-05GPUTexture: OCIO: Workaround new missing bind error checkingClément Foucault
We cannot change the texture bind point since the interface count 4/5 textures to bind. Changing the uniform to avoid one bind make the system thinks one texture is missing. Avoid this by creating a dummy texture and binding it to the empty slot.
2020-09-05Cleanup: GPUTexture: Move debug messages outside of creation functionClément Foucault
# Conflicts: # source/blender/gpu/intern/gpu_framebuffer.cc
2020-09-05GPUTexture: Change texture creation APIClément Foucault
This is to modernize the API: - Add meaningful name to all textures (except DRW textures). - Remove unused err_out argument: only used for offscreen python. - Add mipmap count to creation functions for future changes. - Clarify the data usage in creation functions. This is a cleanup commit, there is no functional change. # Conflicts: # source/blender/gpu/GPU_texture.h
2020-09-05OCIO: Use GPUTexture instead of OpenGL calls and remove gl dependencyClément Foucault
Simple cleanup. Part of the Vulkan Port T68990.
2020-09-05Fix Cycles redefining some Blender macrosBrecht Van Lommel
These changes were accidentally copied over from the Cycles repository, remove them again.
2020-09-04Fix Cycles unsetting most GCC and Clang C++ flagsJulian Eisel
Caused by f04260d8c679. Cycles' CMake defines macros with the same name as Blender, which override the Blender ones. There's however a small difference in the re-defined `remove_cc_flag()`, the Cycles version only takes one flag at a time. So I guess Blender's calls to it would only result in the first flag being removed. Of course Cycles shouldn't override any Blender macros, but I'll leave that up to Brecht to fix properly.
2020-09-04Fix build error on macOS after recent changesBrecht Van Lommel
2020-09-04CMake: refresh building and external library handling of Cycles standaloneBrecht Van Lommel
* Support precompiled libraries on Linux * Add license headers * Refactoring to deduplicate code Includes work by Ray Molenkamp and Grische for precompiled libraries. Ref D8769
2020-09-04Cycles: Cleanup, mark overridden virtual methods as suchSergey Sharybin
Solves strict Clang warnings reported on Linux.
2020-09-03Fix T79803: Wrong Distance To Edge 1D VoronoiOmarSquircleArt
The current 1D Voronoi implementation for the Distance to Edge option computes the distance to the cells instead. This patch fixes that and compute the distance to the edge. Reviewed By: JacquesLucke, brecht Differential Revision: https://developer.blender.org/D8634
2020-09-02Fix missing "extern_bullet" library when building rigidbodiesSebastian Parborg
2020-09-02Fix unused variable warning on Windows with WITH_INPUT_IME disabledJulian Eisel
2020-09-02Cycles: Support WITH_CYCLES_NATIVE_ONLY with MSVCRay Molenkamp
This change enables the developer option `WITH_CYCLES_NATIVE_ONLY` for MSVC. This allows a developer to just build the cycles CPU kernel for their specific system rather than all kernels, speeding up development. Other platforms have had this option for years, but MSVC lacks the compiler switch to target the host architecture hence it always build all kernels. This change uses a small helper program to detect the required flags. Only AVX/AVX2 are tested, for the following reasons - SSE2 is enabled by default and requires no flags - SSE3/4 have no specific build flags for msvc - AVX512 is not yet supported by cycles Differential Revision: https://developer.blender.org/D8775 Reviewed by: brecht, sergey
2020-09-02Cleanup: Clang-formatRay Molenkamp
2020-09-02Make rigidbody simulation handle animated objects gracefullySebastian Parborg
The animated objects was not updated for each internal substep for the rigidbody sim. This would lead to unstable simulations or very annoying clipping artifacts. Updated the code to use explicit substeps and tie it to the scene frame rate. Fix T47402: Properly updating the animated objects fixes the reported issue. Reviewed By: Brecht, Jacques Differential Revision: http://developer.blender.org/D8762
2020-09-01Cycles: Separate Embree device for each CPU Device.Stefan Werner
Before, Cycles was using a shared Embree device across all instances. This could result in crashes when viewport rendering and material preview were using Cycles simultaneously. Fixes issue T80042 Maniphest Tasks: T80042 Differential Revision: https://developer.blender.org/D8772
2020-09-01Fix Cycles build error when disabling some kernel featuresImre Palik
Differential Revision: https://developer.blender.org/D8372
2020-09-01Fix T79941: mantaflow cache doesn't work with ' character in pathJacques Lucke
The fix is to escape the `'` character as well. Reviewers: sebbas Differential Revision: https://developer.blender.org/D8773
2020-09-01Cycles: Fixed Cycles standalone build.Stefan Werner
The node refactor in 429afe0c626a was missing in the standalone code.
2020-09-01OCIO: Make GLSL implementation use GPUUniformBuf to avoid debug errorsClément Foucault
Now that we use internal state info, we require drawing that uses the GPU api to use it throughout the whole pipeline. This is in order to track the GL state and do our own error checking.
2020-09-01Cleanup: Fix warnings in our intern bullet api wrapperSebastian Parborg
No functional changes.
2020-09-01Cycles: Followup fixes for node ownership refactor.Stefan Werner
There were some places where nodes still would end up without owners. See D8540 and 429afe0c626a
2020-09-01GHOST: Enable debug context on offscreen context tooClément Foucault
This was a long standing TODO. This was also preventing debug callbacks form other context than the main window.
2020-08-31Cycles: introduce an ownership system to protect nodes from unwanted deletions.Kévin Dietrich
Problem: the Blender synchronization process creates and tags nodes for usage. It does this by directly adding and removing nodes from the scene data. If some node is not tagged as used at the end of a synchronization, it then deletes the node from the scene. This poses a problem when it comes to supporting procedural nodes who can create other nodes not known by the Blender synchonization system, which will remove them. Nodes now have a NodeOwner, which is set after creation. Those owners for now are the Scene for scene level nodes and ShaderGraph for shader nodes. Instead of creating and deleting nodes using `new` and `delete` explicitely, we now use `create_node` and `delete_node` methods found on the owners. `delete_node` will assert that the owner is the right one. Whenever a scene level node is created or deleted, the appropriate node manager is tagged for an update, freeing this responsability from BlenderSync or other software exporters. Concerning BlenderSync, the `id_maps` do not explicitely manipulate scene data anymore, they only keep track of which nodes are used, employing the scene to create and delete them. To achieve this, the ParticleSystem is now a Node, although it does not have any sockets. This is part of T79131. Reviewed By: #cycles, brecht Maniphest Tasks: T79131 Differential Revision: https://developer.blender.org/D8540
2020-08-28Merge branch 'blender-v2.90-release'Philipp Oeser
2020-08-28Fix T80149: Cycles OpenCL baking broken after changes to uses tiles for bakingBrecht Van Lommel
We forgot to update this code as part of D3108. I'd like to include this in 2.90, it's entirely broken now so can't really get any worse. Differential Revision: https://developer.blender.org/D8738
2020-08-27Clang Tidy: Fix warningHans Goudey
Fix readability-static-definition-in-anonymous-namespace in new code
2020-08-27Cleanup: Fix MSVC warning in mantaflowRay Molenkamp
This resolves the following MSVC warning: warning C4805: '&=': unsafe mix of type 'int' and type 'bool' in operation
2020-08-26Tests: fail automated tests on memory leaks and other internal errorsJacques Lucke
This adds a new `--debug-exit-on-error` flag. When it is set, Blender will abort with a non-zero exit code when there are internal errors. Currently, "internal errors" includes memory leaks detected by guardedalloc and error/fatal log entries in clog. The new flag is passed to Blender in various places where automated tests are run. Furthermore, the `--debug-memory` flag is used in tests, because that makes the verbose output more useful, when dealing with memory leaks. Reviewers: brecht, sergey Differential Revision: https://developer.blender.org/D8665
2020-08-26Fix T80129: Cycles shadow catcher viewport error with exposure other than 1Brecht Van Lommel
2020-08-26Fix T77900: File Browser in macOS fullscreen crashesYevgeny Makarov
When Blender is started in fullscreen mode from the command line, or if the fullscreen state is saved in the startup file, all temporary windows will also open in fullscreen mode. When closing the fullscreen File Browser, Blender would either crash or parent window becomes black. This does not happen if the Blender switches to full screen manually. `NSWindowCollectionBehaviorFullScreenPrimary` should be set for windows that can enter full-screen mode. Otherwise macOS will turn the wrong window into full-screen. Similar fix: rB4b39de677d20 Differential Revision: https://developer.blender.org/D8708 Reviewed by: Julian Eisel
2020-08-26Cleanup: typosJacques Lucke