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
2021-08-05XR Controller Support Step 2: Action MapsPeter Kim
Addresses the remaining portions of T77137 (Python API for Controller Interaction), which was partially completed by D10942. Adds an XR "action maps" system for loading XR action data from a Python script. Action maps are accessible via the Python API, and are used to pass default actions to the VR session during the xr_session_start_pre() callback. Since action maps are stored only as runtime data, they will be cleaned up with the rest of the VR runtime data on file read or exit. Reviewed By: Julian Eisel, Hans Goudey Differential Revision: https://developer.blender.org/D10943
2021-08-05Cleanup: remove redundant parenthesisCampbell Barton
2021-08-05XR: Action Binding ImprovementsPeter Kim
Provides several important improvements to the runtime action bindings operation and internal API. Moves input-specific action data (input thresholds, input regions, pose offsets/spaces) from actions to more granular action bindings. This allows a single action to be mapped to a variety of inputs, without having to share a single input threshold, region, or space. Also removes the need for action space creation API, as spaces for pose actions will be automatically created with the bindings. The correct action data for the current inputs is set by calling xrGetCurrentInteractionProfile() to get the current profile and then retrieving the corresponding mapped data. Does not bring about any changes for users since only internal runtime functionality is currently affected. Reviewed By: Julian Eisel Differential Revision: http://developer.blender.org/D12077
2021-08-05Win32 IME: Rename SetInputLanguage()Harley Acheson
GHOST_ImeWin32::SetInputLanguage() has a confusing name because it does not set the input language. It actually retrieves the current input locale from the OS and caches the value of the current input language ID. Therefore this patch renames it to "UpdateInputLanguage" Differential Revision: https://developer.blender.org/D12134 Reviewed by Ray Molenkamp
2021-08-04Win32 IME: Remove ime_status_Harley Acheson
This removes one member of GHOST_ImeWin32 that is not used and cannot be used in the future. It is holding the result of ImmIsIME, which is whether an input language supports IME. It does not indicate that one is in use, turned on, composing, in English mode, etc. see D12131 for more information. Differential Revision: https://developer.blender.org/D12131 Reviewed by Ray Molenkamp
2021-08-04Cycles: make object Fast GI Approximation panel a subpanel of ShadingBrecht Van Lommel
2021-08-04Fix Cycles material slots list being too shortRomain Toumi
Bring it in line with Eevee. Differential Revision: https://developer.blender.org/D11982
2021-08-04Cycles: More flexible GI Approximation AO distance controlSergey Sharybin
The goal: allow to easily use AO approximation in scenes which combines both small and large scale objects. The idea: use per-object AO distance which will allow to override world settings. Instancer object will "propagate" its AO distance to all its instances unless the instance defines own distance (this allows to modify AO distance in the shot files, without requiring to modify props used in the shots. Available from the new Fats GI Approximation panel in object properties. Differential Revision: https://developer.blender.org/D12112
2021-08-04Cleanup: use C comments for descriptive textCampbell Barton
2021-08-03Cleanup: use C++ comments or 'if 0' for commented codeCampbell Barton
2021-08-02Cleanup: Remove unused/unecessary OpenVDB C APIHans Goudey
This commit uses OpenVDB more directly for the voxel remesher, without the extra indirection of copying to a Blender API. This makes the code simpler, shorter, and easier to understand (though I didn't observe any performance improvement). This also removes the rest of the unused and undocumented OpenVDB C API, which was written when Blender's code didn't really use C++, and doesn't serve a purpose anymore. Those features will be implemented as nodes in the future anyway (see D12100). Differential Revision: https://developer.blender.org/D12097
2021-08-02Cleanup: spellingCampbell Barton
2021-08-01IME Win32: Fix Duplicated Initial CharacterTakahiro Shizuki
When entering characters using IME on Windows, Japanese and Chinese will both usually result in the first keystroke being duplicated. The problem is that we are informed too late, after the first key is pressed, that we are IME composing. This patch ensures we are entering non-English characters using ImmGetConversionStatus() and then deals with editing keys (like arrows and backspace) on a per-language basis. see D11929 for more details. Differential Revision: https://developer.blender.org/D11929 Reviewed by Brecht Van Lommel
2021-07-30Cleanup: Simplify logic, follow style guide for integer typesHans Goudey
- Use `int` instead of `unsigned int` for mesh indices - Use C++ types (Array, float3, IndexRange) - Use range based for loops
2021-07-30Fix EGL version being printed on every startupBrecht Van Lommel
After the switch to enable EGL over GLX. No need to print this debugging information always.
2021-07-30Cleanup: clarify license and origin of voronoi and dithering codeBrecht Van Lommel
2021-07-30Cleanup: missing leading '*' from comment blocksCampbell Barton
2021-07-30Cleanup: workaround for unstable formatting in clang-formatCampbell Barton
Running multiple times would re-indent differently.
2021-07-30Cleanup: clang-format (re-run after v12 version bump)Campbell Barton
2021-07-30Cleanup: spelling in commentsCampbell Barton
2021-07-29Fix T90295: inconsistent render pass order between Cycles and EeveeBrecht Van Lommel
2021-07-29Cleanup: Remove debug-only codeSergey Sharybin
2021-07-29Fix building without Cycles loggingSergey Sharybin
Ideally can use assert() checks instead of suppressing the check entirely, but for now just fix compilation error quickly.
2021-07-29Fix Cycles crash with fluid object motion blur disabledSergey Sharybin
Motion attributes expects mesh to have non-zero number of motion steps, which was violated in the case when fluid mesh had motion blur disabled. This is a bit of annoying fix, because of the order of updates. More ideal solution would be to handle cached and fluid velocities in the sync_mesh_motion() which ensures all the dependencies between settings.
2021-07-28Cycles: remove WITH_CYCLES_DEBUG, add WITH_CYCLES_DEBUG_NANBrecht Van Lommel
WITH_CYCLES_DEBUG was used for rendering BVH debugging passes. But since we mainly use Embree an OptiX now, this information is no longer important. WITH_CYCLES_DEBUG_NAN will enable additional checks for NaNs and invalid values in the kernel, for Cycles developers. Previously these asserts where enabled in all debug builds, but this is too likely to crash Blender in scenes that render fine regardless of the NaNs. So this is behind a CMake option now. Fixes T90240
2021-07-27Fix missing passes update on Use Denoising changeSergey Sharybin
Makes it so Render Layers node in the compositor is updated as soon as Use Denoising is changed for the final render. Differential Revision: https://developer.blender.org/D12010
2021-07-26Cycles: upgrade CUDA to 11.4Brecht Van Lommel
This fixes a performance regression on Ampere cards, on specific scenes like classroom. For cycles-x there is little difference, but this is still helpful for LTS releases, and we need to upgrade at some point anyway.
2021-07-26Cleanup: fix compiler warnings due to implicit castNikhil Shringarpurey
Differential Revision: https://developer.blender.org/D11950
2021-07-26Revert "GHOST/wayland: use Wayland only when 'BLENDER_WAYLAND' is set"Sybren A. Stüvel
This reverts commit c971c851d38ad52779fa5d75c86bbfb83abf660b. This change was part of the still-under-review patch D11489, which hasn't been accepted yet.
2021-07-26Cycles: Fixed memory leak in ColorSpaceManagerStefan Werner
Cached OCIO processors were not freed, instead the color spaces were freed twice. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D12011
2021-07-26Cleanup: clang-formatCampbell Barton
2021-07-26Cleanup: spelling in commentsCampbell Barton
2021-07-24GHOST/wayland: use Wayland only when 'BLENDER_WAYLAND' is setChristian Rauch
2021-07-24GHOST/wayland: explicitly delete 'GHOST_SystemWayland' when fallback to X11Christian Rauch
2021-07-24GTest: Use INC/INC_SYS for Libmv/OSD testsRay Molenkamp
This change transitions libmv/osd tests to our blender_add_test_executable macro that explicitly takes the include directories as a parameter. This is in preparation for future clean-up of global include directories. Differential Revision: https://developer.blender.org/D12012 Reviewed By: sergey
2021-07-23XR: Fix for Viewport Denoising ArtifactsPeter Kim
Addresses T76003. When using VR with Eevee and viewport denoising, scene geometry could sometimes be occluded for one eye. Solution is to use a separate GPUViewport/GPUOffscreen for each VR view instead of reusing a single one for rendering. Reviewed By: Julian Eisel, Clément Foucault Differential Revision: http://developer.blender.org/D11858
2021-07-23Cleanup: code comments punctuation / spacingCampbell Barton
2021-07-23XR: Reference Space ImprovementsPeter Kim
Improves control over the XR reference space by using the stage ref space (user-defined tracking bounds) instead of local ref space (position at application launch), if available. Also adds an "absolute tracking" session option to skip applying eye offsets that are normally added for placing users exactly at landmarks. By enabling absolute tracking, users can define the tracking origin in a way that is not linked to the headset position. Instead, the tracking values given by the XR runtime are left unadjusted and a user can manually calibrate an "origin" landmark object to adjust to their real world space. Can be useful for applications that use external tracking systems and those that primarily only need to use controllers and not the headset (e.g. motion capture). The absolute tracking option requires an update to the VR Scene Inspection addon to be accessible by regular users. Reviewed By: Julian Eisel Differential Revision: http://developer.blender.org/D10946
2021-07-21Cleanup: correct the comment in ghostYuki Hashimoto
The same comments were written in clientToScreen and screenToClient in GHOST. I corrected them. Ref D11986
2021-07-21Cleanup: spellingCampbell Barton
2021-07-21Cleanup: replace NB with NOTE in commentsCampbell Barton
2021-07-21UI: Fix Cycles Materials menu LayoutRomain Toumi
Fix an incoherence between the Eevee Materials menu and the Cycles Materials menu : Eevee : {F10230448} Cycles : {F10230449} Simply Fixed by replacing the Cycles UI code by the Eevee UI code. Thanks to @Brainzman for helping me create this diff and translate Reviewed By: Blendify Differential Revision: https://developer.blender.org/D11979
2021-07-20Cleanup: reserve C++ comments for disabled codeCampbell Barton
Use C comments for plain text.
2021-07-16Cleanup: sort struct declarationsCampbell Barton
2021-07-15Add support for RISC-V architectureHeinrich Schuchardt
* On RISC-V GCC 10.3 does not define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n. * Avoid a build error "Please add support for your platform in build_config.h" Cf: https://github.com/sergeyvfx/libNumaAPI/pull/3 Differential Revision: https://developer.blender.org/D11910
2021-07-15GHOST/wayland: create mmap-ed file manually if memfd_create is unavailableChristian Rauch
2021-07-14Fix T88088: Cycles and Eevee Vector Rotate node inconsistent with zero axisBrecht Van Lommel
Pass along the unmodified vector in this case.
2021-07-13Fix x/y mismatch in retract region trackerCampbell Barton
Correct X/Y mismatch in RetrackRegionTracker. NOTE: This isn't used at the moment. Reviewed By: sergey Ref D11895
2021-07-13Cleanup: Use correct _WIN32/64 defines for MSVCJesse Yurkovich
Docs: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros Differential Revision: https://developer.blender.org/D11460
2021-07-13Cleanup: Use C99 format string for the SIZET_FORMAT macroJesse Yurkovich
All platforms support the proper format string and it's already used in various other places. Differential Revision: https://developer.blender.org/D11460