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-03-05Cleanup: Libmv, clang-formatSergey Sharybin
Is based on Google style which was used in the Libmv project before, but is now consistently applied for the sources of the library itself and to C-API. With some time C-API will likely be removed, and it makes it easier to make it follow Libmv style, hence the diversion from Blender's style. There are quite some exceptions (clang-format off) in the code around Eigen matrix initialization. It is rather annoying, and there could be some neat way to make initialization readable without such exception. Could be some places where loss of readability in matrix initialization got lost as the change is quite big. If this has happened it is easier to address readability once actually working on the code. This change allowed to spot some missing header guards, so that's nice. Doing it in bundled version, as the upstream library needs to have some of the recent development ported over from bundle to upstream. There should be no functional changes.
2021-03-05Cleanup: spellingCampbell Barton
2021-03-05Cleanup: maintain include order without disabling clang formatCampbell Barton
2021-03-05Fix T86185: Win32 Multiple Monitor Window PositionHarley Acheson
Because of D10469 we can now not force child windows onto parent's monitor and allow them to go where they wish. Differential Revision: https://developer.blender.org/D10593 Reviewed by Ray Molenkamp
2021-03-05Windows/CLog: Support color logging on Win 10Jacob Møller
Windows 10 supports V100 on all consoles given you enable the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag for the console. This patch enables color logging only on windows 10 and only if the log is not being redirected to a file. Differential Revision: https://developer.blender.org/D10546
2021-03-04macOS/Ghost: Opt out of AppKit’s automatic window tabbingCorbin Dunn
Since Blender is single-tabbed, this will prevent extraneous tab-related options from appearing in "Window" menu in case AppKit's internals change. Reviewed By: #platform_macos, sebbas, ankitm Differential Revision: https://developer.blender.org/D10606
2021-03-03macOS/Ghost: Remove redundant nil check after initWithContentRectCorbin Dunn
AppKit’s NSWindow.h has NS_ASSUME_NONNULL_BEGIN, and only methods/ properties explicitly marked nullable will ever return nil. Reviewed By: #platform_macos, sebbas Differential Revision: https://developer.blender.org/D10603
2021-03-03macOS/Ghost: Fix memory leak.Corbin Dunn
`new` allocates a new object that needs to be autoreleased. Reviewed By: #platform_macos, sebbas, ankitm Maniphest Tasks: T86222 Differential Revision: https://developer.blender.org/D10597
2021-03-02Cleanup: spelling, minor correctionsCampbell Barton
Also use doxygen comments for sculpt functions.
2021-03-01GLog: Lower default logging severity to INFOSergey Sharybin
Before this change messages of ERROR and above were printed. This change makes it so LOG(INFO), LOG(WARNING), LOG(ERROR) and LOG(FATAL) will be printed to the console by default (without --debug-libmv and --debug-cycles). On a user level nothing is changed because neither INFO nor WARNING severity are used in our codebase. For developers this change allows to use LOG(INFO) to print relevant for debugging information. Bering able to see WARNING messages is also nice, since those are not related to debugging, but are about some detected "bad" state. After this change the LOG(INFO) is really treated as a printf. Why not to use printf to begin with? Because it is often more annoying to print non-scalar types. Why not to use cout? Just a convenience, so that all type of logging is handled in the same way. When one is familiar with Glog used in the area, it is easy to use same utilities during development. Also, it is easy to change LOG(INFO) to VLOG(2) when development is done and one wants to keep the log print but make it only appear when using special verbosity flags. The initial reason why default severity was set to maximum possible value is because of misuse of VLOG with verbosity level 0, which is the same as LOG(INFO). This is also why back in the days --debug-libmv was introduced. Now there is some redundancy between --debug-libmv, --debug-cyles and --verbose, but changes in their meaning will cause user level side effects. Differential Revision: https://developer.blender.org/D10513
2021-03-01Libmv: Avoid use of LOG(INFO) in solverSergey Sharybin
Usage of LOG(INFO) actually went against own guidelines in the logging.h: the INFO is for messages which are to be printed regardless of debug/verbosity settings.
2021-03-01Fix Cycles build error without Embree on WindowsBrecht Van Lommel
Don't use ssize_t, it's not available in MSVC.
2021-03-01Cleanup: spellingCampbell Barton
2021-02-26Cleanup: unused class memberKévin Dietrich
2021-02-25Fix T85926: Cycles missing viewport updates when making materials single userKévin Dietrich
This issue seems to be caused by the reallocation flag not being set on the device shader data array so it was never updated on the GPU although the host memory was modified.
2021-02-24Cmake/deps: Update OSL to 1.11.10.0Ray Molenkamp
This bumps OSL to 1.11.10.0. OSL Has a new build time dependency: Clang, and more importantly it expects clang and llvm to share a library folder, which it previously for us did not. This patch changes: -OSL Update to 1.11.10.0 -refactor the llvm/clang/clang-tools-extra builds into the llvm build using the llvm-project tarball for building that has all of the subprojects in it. -update ispc/openmp builds since clang no longer its own dependency and they have to depend on the llvm build now. -Update the windows builder to use the 64 bit host tools since it ran out of ram linking clang -Since OSL now needs clang to link successfully a findclang.cmake has been provided for linux/OSX Differential Revision: https://developer.blender.org/D10212 Reviewed By: brecht, sebbas, sybren
2021-02-24Revert Automatic Tablet API dynamic fallback.Nicholas Rishel
Removes fallback to Windows Ink when Wintab reports no devices present. Returns to old behavior of using only Wintab if Wintab.dll exists.
2021-02-24Fix T85844: high pressure at start of line.Nicholas Rishel
m_tabletInRange is no longer set for Wintab after 2e81f2c01abd21fdbc reverted Wintab changes. This reverts most button processing to behavior present in 2.91.2. Left in place is a bugfix for Windows Ink: button events while a Windows Ink pen is in range should still be processed. Events processed by Windows Ink and not passed to DefWindowProc do not create WM_*BUTTON events, but button events from e.g. tablet pad express keys do create WM_*BUTTON events and should be handled.
2021-02-24Revert high fequency mouse input for Windows.Nicholas Rishel
Windows mouse history function GetMouesMovePointsEx has well documented bugs where it receives and returns 32 bit screen coordinates, but internally truncates to unsigned 16 bits. For mouse (relative position) input this is not a problem as motion events and the resulting screen coordinates reliably fit within 16 bit precision. For tablets (absolute position) the 16 bit truncation results in corrupt history when tablet drivers use mouse_event or SendInput from the Windows API to move the mouse cursor. Both of these functions take absolute mouse position as singed 32 bit value on the range of 0-65535 (or 0x0-0xFFFF) inclusive. Values larger than 0x7FFF (the largest signed 16 bit value) are reliably corrupt when retrieved from GetMouesMovePointsEx history. This is true regardless of whether mouse history is retrieved using display resolution (GMMP_USE_DISPLAY_POINTS) or high resolution points (GMMP_USE_HIGH_RESOLUTION_POINTS), the latter of which should return points in range 0-65535. Reviewed By: brecht Maniphest Tasks: T85874 Differential Revision: https://developer.blender.org/D10507
2021-02-23WM_MOUSEMOVE cleanup.Nicholas Rishel
2021-02-23Cycles: Add option to change input passes for viewport denoisingPatrick Mours
There are cases where the default input passes of color+albedo do not yield useful results and while this was possible to change that for final frame rendering (in the layer settings), viewport denoising always used a fixed color+albedo. This adds an option to change the input passes for viewport denoising too, so that one can use it in scenes that otherwise wouldn't work well with it. Reviewed By: brecht Differential Revision: https://developer.blender.org/D10404
2021-02-23Alembic procedural: avoid storing constant hair topology for each frameKévin Dietrich
Only store the curve keys and radiuses for each frame if the topology does not change through time, this helps saving quit a bit of memory.
2021-02-23Alembic procedural: cleanup, demultiply Object and Geometry NodeKévin Dietrich
creation
2021-02-23Alembic procedural: use an enumeration to discriminate IObjectsKévin Dietrich
Using the various IObject::matches() to do so was expensive and would show up in profiles as requires creating std::strings for each call.
2021-02-23Alembic procedural: fix crash when accessing data out of frame boundsKévin Dietrich
2021-02-22Win32: Do not (yet) set window styles for DialogHarley Acheson
Remove the setting of Dialog window styles until we confirm expected behavior between platforms. Differential Revision: https://developer.blender.org/D10470 Own Code
2021-02-22Fix Principled BSDF specular color for black base colorPascal Schön
Specular color is set to black instead of white inside the Principled BSDF when the base color is set to fully black. This is contradictory to the sample code of the Disney BRDF in BRDF Explorer. This patch aligns both implementations. Differential Revision: https://developer.blender.org/D10448
2021-02-22Fix T85768: Win32 Full-Screen Owned WindowsHarley Acheson
Improvements to how window states are determined and changed. Differential Revision: https://developer.blender.org/D10470 Reviewed by Brecht Van Lommel
2021-02-22Fix Cycles world volume scattering missing light in some casesBrecht Van Lommel
With very large distances there were precision / overflow errors, normalize the average albedo to avoid that. This was causing test failures on macOS Arm, but also other architectures had slightly wrong results. Ref T78710
2021-02-21PyAPI: use postponed annotations to support Python 3.10Campbell Barton
Support Python 3.10a5 or 3.9x with support explicitly enabled. - Enable Python's postponed annotations for Blender's RNA classes types registered on startup. - Using postponed annotations has implications for how they are defined, since they must evaluate in the modules name-space instead of the classes name-space. See changes to annotations in `release/scripts`. - Use `from __future__ import annotations` at the top of the module to ensure the script will run with Python 3.10. - Old logic is kept since it could be used if PEP-649 is supported. Resolves T83626 Ref D10474
2021-02-20Geometry Nodes: expose float2 attribute in rnaJacques Lucke
This also fixes the issue reported in T85651. Differential Revision: https://developer.blender.org/D10477
2021-02-20Cleanup: doxygen sectionsCampbell Barton
2021-02-18Cleanup: clang-formatCampbell Barton
2021-02-18Cleanup: spelling, correct doc-string argumentsCampbell Barton
2021-02-18Cleanup: Fix unused variable warningRay Molenkamp
exception was not used and can be safely removed
2021-02-17Cycles: Fix build error on windowsRay Molenkamp
Function __bsf was in util/util_simd.h twice problem located by @EAW on chat.
2021-02-17Fix OpenColorIO 2.0 GPU shader error in uniform assignmentBrecht Van Lommel
And fix a (harmless) compiler warning.
2021-02-17Fix T85694: Cycles incorrect grayscale conversion with some OpenColorIO configsBrecht Van Lommel
2021-02-17Cycles: add support for Arm Neon instructions using sse2neonBrecht Van Lommel
Based on patch contributed by Apple and Stefan Werner. Ref D8237, T78710
2021-02-17Cycles: add utility functions for zero float2/float3/float4/transformBrecht Van Lommel
Ref D8237, T78710
2021-02-17Cycles: refactor intrinsic functions implementationBrecht Van Lommel
* Add processor independent fallbacks * Use uint32_t and uint64_t types * Remove unused functions * Better comments and less indentation Ref D8237, T78710
2021-02-17BLI: use sse2neon to emulate SSE instructions with Arm NeonBrecht Van Lommel
* WITH_CPU_SSE was renamed to WITH_CPU_SIMD, and now covers both SSE and Neon. * For macOS sse2neon.h is included as part of the precompiled libraries. * For Linux it is enabled if the sse2neon.h header file is detected. However this library does not have official releases and is not shipped with any Linux distribution, so manual installation and configuration is required to get this working. Ref D8237, T78710
2021-02-17Merge branch 'blender-v2.92-release'Brecht Van Lommel
2021-02-17Fix T85440: crash with displacement shaders and updating geometry in viewportBrecht Van Lommel
When primitive offsets change we need to rebuild or refit BVHs, however this was also tagging other data as modified too late in the geometry update process. Now ensure only the BVHs are updated. Ref D10441
2021-02-17Cycles: support accessing custom mesh attributesJacques Lucke
This makes custom mesh attributes available in Cycles. Typically, these attributes are generated by Geometry Nodes, but they can also be created with a Python script. * The `subdivision` code path is not yet supported. * This does not make vertex weights and some other builtin attributes available in Cycles, even though they are accesible in Geometry Nodes. All attributes generated in Geometry Nodes should be accessible though. * In some cases memory consumption could be removed by not storing all attributes in floats. E.g. booleans and integer attributes for which all values are within a certain range, could be stored in less than 4 bytes per element. Differential Revision: https://developer.blender.org/D10210
2021-02-17Cycles: detect when attributes have changedJacques Lucke
This patch has originally been written by Kévin Dietrich, thanks! It is part of D10210. As Brecht noted in D10210, this might not handle all cases yet. I better solution should come soonish.
2021-02-17Cleanup: spellingCampbell Barton
2021-02-17Merge branch 'blender-v2.92-release'Nicholas Rishel
2021-02-17Fix T84701: Popup closes on release while dragging parameter.Nicholas Rishel
Windows Ghost cursor movement was previously changed to use SendInput because SetCursorPos sporadically allows the cursor to escape the window. This is now reverted because SendInput causes mouse history via GetMouseMovePointsEx to contain invalid movement history, likely due to interaction with mouse acceleration. This resulted in popups closing when the cursor appeared to leave their range.
2021-02-17Fix T85671: color management crash with Medium Contrast lookBrecht Van Lommel