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-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
2021-07-12GHOST/wayland: remove unused 'input-event-codes.h' headerChristian Rauch
This was accidentally committed by rBecbf838feefc.
2021-07-12Fix T87844: Cycles losing 1 bit of precision when loading packed byte imagesBrecht Van Lommel
This could lead to colors that are supposed to be exactly white to be slightly darker.
2021-07-12Fix T89736: Cycles error with persistent data, displacement and motion blurBrecht Van Lommel
2021-07-12Fix T89396: Cycles missing passes with multiple view layers and persistent dataBrecht Van Lommel
2021-07-11Cleanup: correct spelling in comments, remove profanityCampbell Barton
2021-07-09Fix cycles crash when changing viewport display passSergey Sharybin
It was possible that render buffers and scene kernel data will be out of sync because reset and scene update happens in different locks. This is similar issue we've fixed in the Cycles X branch, so backported relevant changes from there. This change removes what seems to be unused feature kernel. Differential Revision: https://developer.blender.org/D11828
2021-07-08CMake: add missing headers, sort file listsCampbell Barton
2021-07-07Cleanup: Code-style correction in Ghost (Clang-format)Julian Eisel
2021-07-07Cleanup: comment on source of button event codesChristian Rauch
2021-07-07Cleanup: spelling in commentsCampbell Barton
2021-07-06cmake: use harvested 'wayland-protocols' if system version is insufficientChristian Rauch
2021-07-06GHOST/wayland: define BTN event codes manuallyChristian Rauch
2021-07-06Cleanup: quiet discarded-qualifiers warningCampbell Barton
2021-07-06Fix macOS builds after removing Ghost integral types.Nicholas Rishel
2021-07-05Replace Ghost integrals with stdint fixed width integers.Nicholas Rishel
Also replace integer with bool in Ghost API when only used as boolean, and uint8* with char* in Ghost API when variable is a string. Reviewed By: brecht Differential Revision: https://developer.blender.org/D11617 Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
2021-07-05macOS: support Chinese and Korean input for text buttonsYuki Hashimoto
This patch extends D11695 to provide full support for Chinese and Korean input on macOS. Chinese input notes: You can input symbolic characters (such as '! , '$') during Chinese input. The difference from Japanese input is that multiple `insertText` may be called with a single key down (`keyDown` method). This happens when you input a symbolic character (such as '! , '$') during conversion. The conversion is confirmed (`insertText`) and the symbolic character is entered (`insertText`). To solve this problem, I have `result_text` to concatenate the strings and store them in `result`. Korean input notes: Korean does not display a conversion suggestion window. Like Chinese, Korean input may call multiple `insertText` methods. Also, in Korean, the previous confirmation (`setMarkedText` and `insertText`) and the next conversion is processed (`setMarkedText`) may be called simultaneously with a single key down (`keyDown` method). For example: 1. press g ㅎ (`setMarkedText`) 2. press k 하 (`setMarkedText`) 3. press t 앗 (`setMarkedText`) 4. press k 하세 (`setMarkedText`, `insertText`, `setMarkedText`) Fixed so that the `insertText` and the last `setMarkedText` are processed. Also, if a control character (such as Arrow, Enter) is input during Korean input, the conversion will be confirmed (`setMarkedText`, `insertText`) and the original control character will be processed. In other words, if you press the left arrow key while typing in Korean, the cursor will move to the left after the character is confirmed. Therefore, I modified the `keyDown` method so that the `handleKeyEvent` is called again after the `insertText` is processed in the `interpretKeyEvents` method. Differential Revision: https://developer.blender.org/D11699
2021-07-05macOS: support Japanese input for text buttonsYuki Hashimoto
Blender did not support to input East Asian characters (Chinese, Japanese, Korean) on macOS. This patch adds support for Japanese input, by implementing the appropriate processing for the NSTextInputClient protocol. Technical notes: * The conversion candidate window is drawn by the input method program calling `firstRectForCharacterRange`. * The string before confirmation (called `composite` in blender) is handled in the `setMarkedText` method called by the input method program. * The string after confirmation (called `result` in the blender) is processed in the `insertText` method called by the input method program. Ref T51283 Differential Revision: https://developer.blender.org/D11695
2021-07-05Cleanup: spelling, punctuationCampbell Barton
2021-07-05Fix T89655: tweak Cycles transparent bounces UI for clarityBrecht Van Lommel
Transparent bounces are independent of other bounces, so don't group them together.
2021-07-05Cleanup: replace NSTextInput with NSTextInputClientYuki Hashimoto
This revision replaces the deprecated protocol NSTextInput with NSTextInputClient in Cocoa Text View. No functional changes. For more information of the methods, please see: https://developer.apple.com/documentation/appkit/nstextinputclient Differential Revision: https://developer.blender.org/D11407
2021-07-05Cleanup: use arrayWithObject to reduce the codeYuki Hashimoto
Similar code is found in Apple's code samples. Differential Revision: https://developer.blender.org/D11434
2021-07-05Fix T89523: Cycles OpenCL compile error after shadow terminator changesBrecht Van Lommel
2021-07-05Cleanup: unused variableJacques Lucke
2021-07-05Cleanup: remove temporary headerCampbell Barton
2021-07-05Cleanup: spelling in commentsCampbell Barton
2021-07-03Cleanup: consistent use of tags: NOTE/TODO/FIXME/XXXCampbell Barton
Also use doxy style function reference `#` prefix chars when referencing identifiers.
2021-07-02Fix T89581: Cycles crash rendering some OpenVDB files with inactive voxelsBrecht Van Lommel
Print an error message instead.
2021-07-02Cleanup: use template utility function to handle OpenVDB grid types in CyclesBrecht Van Lommel
2021-07-02Cleanup: spelling in commentsCampbell Barton
2021-07-02Fix T88909: Win32 getTitle() UTF8 SupportHarley Acheson
In the Win32 platform our setTitle() can properly assign a Unicode utf-8 window title. Unfortunately our getTitle() will only read regular 8-bit character strings. This means that we can never compare what we set to what we get. This patch updates getTitle() to use Unicode-aware GetWindowTextLengthW and GetWindowTextW. see T88909 for an example of this affecting user experience. Differential Revision: https://developer.blender.org/D11782 Reviewed by Ray Molenkamp
2021-07-01Cleanup: spellingCampbell Barton
2021-06-30Cleanup: use const for datatoc declarationsCampbell Barton
2021-06-29Fix T89523: Cycles OpenCL compile error after recent changesBrecht Van Lommel
Also correctly used inverse transposed matrix for normal transform.
2021-06-29Win32: Window Placement DPI and Scale AdjustmentHarley Acheson
When using multiple monitors that differ in scale and/or dpi, the varying sizes of the window titles and borders can cause the placement of those windows to be out by a small amount. This patch adjusts for those differences on Windows 10 and newer. see D10863 for details and examples. Differential Revision: https://developer.blender.org/D10863 Reviewed by Ray Molenkamp
2021-06-29Cleanup: Win32 Window CreationHarley Acheson
This is just some cleanup of the Win32 window creation code. After CreateWindowExW() this patch uses some early exits to replace some potentially confusing if blocks. No functional changes. Differential Revision: https://developer.blender.org/D11446 Reviewed by Ray Molenkamp
2021-06-29Fix Cycles hair render error on GPU after recent changesBrecht Van Lommel
Volumes primitive needs to be part of traceable primitives.
2021-06-29Fix T70615: Cycles ignores BSDF inputs when nodes are optimizedKévin Dietrich
When compiling BSDF nodes, we only assing stack space to the normal and tangent inputs if they are linked. However, it could be that the ConstantFolder removed the link, so checking if there is a link fails to take this into account. To fix this, added a flag to ShaderInput to keep track of whether a constant was folded into the input, and use it as well to verify that the socket is linked when assigning stack space. Reviewed By: brecht Maniphest Tasks: T70615 Differential Revision: https://developer.blender.org/D11731
2021-06-29Cleanup: clang-formatCampbell Barton