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
AgeCommit message (Collapse)Author
2022-05-19DRW: Replace StorageFlexibleBuffer with explicit `get_or_resize()`Clément Foucault
This is to avoid hiding resize inside the `[]` operator.
2022-05-19Cleanup: BLI_math_base.h: Document `power_of_2_max|min()`Clément Foucault
2022-05-19BLI: float4x4: Add == and != operatorsClément Foucault
2022-05-19BLI: float4x4: Add << operatorClément Foucault
Use nice formating to have lining up rows.
2022-05-19DRW: Fix DRW_shgroup_buffer_texture namingClément Foucault
We do not need `_ex` suffix.
2022-05-18Cleanup: Move strip handle manipulation to time sectionRichard Antalik
2022-05-18VSE: Remove still frame offsetsRichard Antalik
To clarify term still frame: This is portion of strip that displays static image. This area can exist before or after strip movie content. Still frames were implemented as strip property, but this was never displayed in panel. Only way to set still frames was to drag strip handle with mouse or using python API. This would set either `seq->*still` or `seq->*ofs` where * stands for `start` or `end`. When strip had offset, it can't have still frames and vice versa, but this had to be enforced in RNA functions and everywhere in code where these fields are set directly. Strip can not have negative offset or negative number of still frames. This is not very practical approach and still frames can be simply implemented as applying negative offset. Merging these offsets would simplify offset calculations for example in D14962 and could make it easier to also deprecate usage `seq->*disp` and necessity to call update functions to recalculate strip boundaries. For users only functional change is ability to set negative strip offset using property in side panel. Reviewed By: sergey Differential Revision: https://developer.blender.org/D14976
2022-05-18Cleanup: fix Cycles asan warningBrecht Van Lommel
Not sure why constructing a ustring inside [] is causing issues here, but it's slightly more efficient to construct it once anyway.
2022-05-18Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-18Fix T98225: file saved with an object in sculptmode that is disabled in ↵Bastien Montagne
viewports crashes on reload Issue revealed by rB90e12e823ff0. Hidden objects may not be fully evaluated by the despgraph, do not attempt to restore edit/sculpt/etc. modes for those. Should also be backported to 2.93 LTS release.
2022-05-18Merge branch 'blender-v3.2-release'Sergey Sharybin
2022-05-18Fix incorrect track search area election colorSergey Sharybin
It was following the pattern area selection color instead of its own.
2022-05-18Fix T97761: incorrect mixing of integersJacques Lucke
Sometimes integers are mixed using float weights. In those cases the mixed result has to be converted from into float again. Previously, this was done using a simple cast, which was unexpected because e.g. 14.999 would be cast to 14 instead of 15. Now, the values are rounded properly. This can affect existing files unfortunately without a good option for versioning. Gladly, very few files seem to depend on the details of the old behavior. Differential Revision: https://developer.blender.org/D14892
2022-05-18Subdiv: support interpolating orco coordinates in subdivision surfacesBrecht Van Lommel
This makes changes to the opensubdiv module to support additional vertex data besides the vertex position, that is smootly interpolated the same way. This is different than varying data which is interpolated linearly. Fixes T96596: wrong generated texture coordinates with GPU subdivision. In that bug lazy subdivision would not interpolate orcos. Later on, this implementation can also be used to remove the modifier stack mechanism where modifiers are evaluated a second time for orcos, which is messy and inefficient. But that's a more risky change, this is just the part to fix the bug in 3.2. Differential Revision: https://developer.blender.org/D14973
2022-05-18Fix T98157: improve animation fps with better check in depsgraphJacques Lucke
Previously, the depsgraph assumed that every node tree might contain a reference to a video. This resulted noticeable overhead when there was no video. Checking whether a node tree contained a video was relatively expensive to do in the depsgraph. It is cheaper now due to the structure of the new node tree updater. This also adds an additional run-time field to `bNodeTree` (there are quite a few already). We should move those to a separate run-time struct, but not as part of a bug fix. Differential Revision: https://developer.blender.org/D14957
2022-05-18Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-18Fix T88792: WindowManager.clipboard missing in Python API docsCampbell Barton
Support RNA types using the Py/C-API PyGetSetDef defined properties. Currently `WindowManager.clipboard` is the only instance of this.
2022-05-18Cleanup: use "filepath" instead of "filename" for full paths, fileops.cCampbell Barton
Handle separately as fileops.c had to be tested on multiple platforms.
2022-05-18Fix build error on WIN32 from `_bpy.context_members`Campbell Barton
As of [0] which references context arrays from the Python API, C++ name mangling caused 'node_context_dir' not to be found for WIN32. [0]: c8edc458d13c0483907d0fe6f44f6e2887263b57
2022-05-18Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-18Fix (unreported) crash in some rare case when making liboverride.Bastien Montagne
If making liboverride of an empty collection, this (root of override hierarchy) collection would get untagged in code when checking for collections that do not need to be overridden, leading to not overriding this root collection, and later in code to using NULL pointer.
2022-05-18Cleanup: Naming of private membersSergey Sharybin
2022-05-18Cleanup: suppress dangling-pointer warning for GCC 12.1+Campbell Barton
2022-05-18Cleanup: remove redundant sequencer name checksCampbell Barton
The `seq->name + 2` check dates back to 2009 [0] but does nothing. [0]: 6e0c1cd4e5acaa91adbfd2137709a6803647cde7
2022-05-18Cleanup: remove unused variables, redundant assignmentsCampbell Barton
2022-05-18Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-18Fix T98216: OpenEXR: No difference in file size between ZIP, DWAA, DWAB.Bastien Montagne
Check in code would not expect major version of OpenEXR > 2. Investigated by Jesse Yurkovich (@deadpin), thanks!
2022-05-18Cleanup: 'space between backslash and return' warning.Bastien Montagne
2022-05-18LineArt: Use array instead of lists for edges pending occusion queryYimingWu
It turns out there's no practical use for separating different edge types before final occlusion stage, also using an array should be faster overall. So changed those lists into one pending array, it also made the iteration and occlusion task scheduling simpler. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14951
2022-05-18LineArt: Remove LineartEdge::obindex.YimingWu
After changing the duplicated edge removal method in D14903, these two obindex variables are no longer needed. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14949
2022-05-18LineArt: Use safe lineart_discard_duplicated_edgesYimingWu
The old method doesn't check e for array boundary. The new method ensures it only access valid elements. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14903
2022-05-18LineArt: Prioritize connecting chains from the same contour loopYimingWu
This change allows the chaining function to select edges from the same contour loop first, thus reduced rouge chain connections (connected different objects instead of chaining inside the same object first) and improved chaining quality. This patch also included the default value change for chain split threshold (Now don't split by default to make initial result as smooth as possible) Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14950
2022-05-18PyDoc: support building full API docs on macOS & WIN32Campbell Barton
Accessing context members depended on `ctypes` to access symbols which were hidden for macOS & WIN32. Add an API call that doesn't require the symbols to be exported. This allows most symbols to be hidden on Linux, see D14971.
2022-05-18Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-18Fix T98192: Crash when apply transforms after deleting an objectCampbell Barton
2022-05-18Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-18Fix T98191: Alt-LMB for node detach fails with RMB selectCampbell Barton
Regression caused by [0] which changed node selection to use PRESS for selection and CLICK_DRAG to transform the selection. This conflicted with Alt-LMB which would select the node then pass-though to node.background_sample, preventing the drag event from being activated. Resolve by only activating background-sample when the cursor isn't over a node or socket. [0]: 4c3e91e5f565b81dd79b5d42f55be5b93662d410
2022-05-18Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-18Cleanup: formatCampbell Barton
2022-05-18Fix T98214: UV selection crash with wire edgesChris Blackbourn
Regression in ffaaa0bcbf477c30cf3665b9330bbbb767397169 which removed the NULL pointer check.
2022-05-18Python: log the status of '--python-use-system-env' on initializationCampbell Barton
Report when the PYTHONPATH is expected to be used to help debug Python initialization issues (see T98131).
2022-05-17Merge branch 'blender-v3.2-release'Richard Antalik
2022-05-17Fix T98021: Crash when using scene strip as sequencer inputRichard Antalik
Issue was caused by treating such strip as meta and using `seq->channels` directly, which is not valid for scene strips. Pointer to channels is now provided by function `SEQ_get_seqbase_from_sequence`.
2022-05-17Fix T97921: Cycles MNEE issue with light path nodesOlivier Maury
Ensure the correct total/diffuse/transmission depth is set when evaluating shaders for MNEE, consistent with regular light shader evaluation. Differential Revision: https://developer.blender.org/D14902
2022-05-17Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-17Fix T98201: Corrution of filepaths in some case during 'make relative' process.Bastien Montagne
We need to ensure `Main.filepath` is consistent with the current path where we are saving the .blend file, otherwise some path processing code can produce invalid results (happens with e.g. the code syncing the two path storages in Library IDs).
2022-05-17Fix T98163: Cycles OSL rendering normal maps differentlyBrecht Van Lommel
Match SVM and ensure valid reflection when setting up BSDFs.
2022-05-17Fix T98052: Eevee / Workbench background render crash with GPU subdivisionBrecht Van Lommel
The problem is that depsgraph evaluation happens before the OpenGL context is initialized, and so modifier evaluation happens without GPU subdivision. Later the BKE_subsurf_modifier_can_do_gpu_subdiv test in the draw code gives a different result. This just checks if the mesh has information for GPU subdivision in the draw code, and if so uses it. This is only set if the test for supported GPU subdivision passes in the modifier evaluation. Additionally it may be good to perform OpenGL context initialization earlier so background render can take advantage of GPU subdivision, but this is more complicated. Differential Revision: https://developer.blender.org/D14969
2022-05-17Revert "Outliner: Remove the 'Remap data-block usages' operation."Bastien Montagne
This reverts commit 30534deced8dad16c566dd82db3edd462283de13. After discussion and feedback from users, it's better to keep this tool available until there is time to properly re-think the whole Outliner's contextual menu.
2022-05-17Cleanup: blendloader: add logger to `writefile.c`, remove some asserts.Bastien Montagne
Properly use CLOG to report info or errors in `writefile.c`, instead of printf's. And remove some assert when logging error reports and the issue is not critical.