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
2021-08-26Cleanup: spelling in commentsCampbell Barton
2021-08-26Cleanup: clang-formatCampbell Barton
2021-08-26Fix T90915: outliner select behaves as if Ctrl is heldCampbell Barton
Error in 452cc0193255c9e80ca4f163a2d524ed6bb17ef1
2021-08-26Cleanup: Refactor proximity node to be more data type agnosticHans Goudey
Before, distances from each component were handled in the same loop, making it more complicated to add support for more component types in the future (and probably hurting performance by dealing with two BVH trees at the same time, though I didn't test that). Now each component is handled in a separate function, so that adding support for another component type is much simpler.
2021-08-25BLF: Remove ASCII-only Code PathsHarley Acheson
Remove redundant code for drawing text strings that contain only ASCII. See D12293 for much more detail. Differential Revision: https://developer.blender.org/D12293 Reviewed by Campbell Barton
2021-08-25Windows/Ninja: Optimize linker performanceRay Molenkamp
The /Zc:inline flag is by default off in the MSVC compiler however when you build with msbuild it adds it to the build flags on its own. Ninja however does not decide on its own to add flags you didn't ask for and was building without this flag. This change explicitly adds the compiler flag so msbuild and ninja builds are once more building with the same build flags leading to smaller .obj files when building with ninja and lightening the workload for the linker. This flag is available starting MSVC 2013 update 2 so does not need to be guarded with version checks.
2021-08-25Fix wrong length value in the header of the Move operatorGermano Cavalcante
Missed in {rB0d36439f95c0}.
2021-08-25Fix T90248: missing depsgraph update tag for node groupJacques Lucke
The code assumed that when a node group is is at the highest level in the node editor, then it is embedded into another data block and can't be referenced by other node groups. This is true for shader and compositor nodes, but not for geometry nodes.
2021-08-25Fix T90911: Move along axis does not display real distance unitsGermano Cavalcante
Variable was wrongly set to 0. Caused by {rB7192e57d63a5}.
2021-08-25Cleanup and remove SEQ_ALL_BEGIN macroSebastian Parborg
We now use a for_each function with callback to iterate through all sequences in the scene. This has the benefit that we now only loop over the sequences in the scene once. Before we would loop over them twice and allocate memory to store temporary data. The allocation of temporary data lead to unintentional memory leaks if the code used returns to exit out of the iteration loop. The new for_each callback method doesn't allocate any temporary data and only iterates though all sequences once. Reviewed By: Richard Antalik, Bastien Montagne Differential Revision: http://developer.blender.org/D12278
2021-08-25Cleanup: else-after-returnJacques Lucke
2021-08-25T90908: Reduce loading times when extracting thumbnails from Blendfiles.Jeroen Bakker
Previously when loading an thumbnails for an asset the whole file was read. Reason this was done was perhaps a future idea to load all thumbnails inside a blendfile in a single go. This was never implemented and currently unneeded disk and cpu cycles was spend with finding out what preview to load. This patch adds an early break when the thumbnail that the caller is interested in has been found. This improves the thumbnail extraction when looking into large files. Reviewed By: mont29 Maniphest Tasks: T90908 Differential Revision: https://developer.blender.org/D12312
2021-08-25XR: Enable controller profile extensionsPeter Kim
Enables all currently documented OpenXR controller profile extensions (Reverb G2, Vive Cosmos, Huawei Controller) in order to support bindings for more VR hardware. This is necessary because, if these extensions are not enabled, the OpenXR runtime will return an error when creating a binding with one of these profiles. Does not bring about any changes for users at the moment, since default controller actions have not yet been exposed to users (will be addressed with D10944, D10948, and D11271).
2021-08-25XR: Improve "Invalid stage ref space" warningPeter Kim
Originally mentioned that absolute tracking was disabled, which is wrong because absolute tracking (skipping application of eye offsets) is always available, although it may not give the expected result of persistent tracking origins across sessions if the stage space is unavailable (hence the need for a warning). Now, the warning makes no mention of absolute tracking, instead informing the user that the local space fallback will be used and that they should define tracking bounds via the XR runtime if they wish to use the stage space.
2021-08-25Fix: Crash on file read with active VR sessionPeter Kim
Add null check for runtime data since it could already have been freed via wm_xr_exit() (called on file read) prior to the session exit callback. Also, fix potential memory leak by freeing session data in wm_xr_runtime_data_free() instead of session exit callback.
2021-08-25Fix: XR action map memory leaksPeter Kim
This fixes two memory leaks related to XR action maps. 1. Freeing of action maps needs to be moved from wm_xr_exit() to wm_xr_runtime_data_free() since the runtime may have already been freed when calling wm_xr_exit(). 2. Action bindings for action map items were not being freed. This was mistakenly left out of e844e9e8f3bb since the patch needed to be updated after d3d4be1db3a0.
2021-08-25Fix: Incorrect declaration of XrActionMaps RNAPeter Kim
This fixes a mistake in the XrActionMaps RNA struct declaration. Originally, the XrActionMaps struct SDNA was set as wmXrData to get access to wmXrRuntimeData. However, this doesn't give a valid pointer and the XrSessionState RNA pointer needs to be passed instead. Since XrSessionState itself does not have SDNA, it is necessary to pass the XrSessionState pointer to the XrActionMaps struct functions (new(), new_from_actionmap(), ...) instead of simply using RNA_def_struct_sdna().
2021-08-25Cleanup: skip saving selection properties set in the keymapCampbell Barton
Having settings such as "extend" saved between executions causes keymaps that don't include this setting to remember the value between execution. No longer store this setting for selection operations & remove redundant values from the key-maps, see: T90275.
2021-08-25Cleanup: Mentioning incorrect source file in comment.Jeroen Bakker
Code mentions that ID_* were defined in DNA_ID.h but are actually defined in DNA_ID_enums.h.
2021-08-25Cleanup: separate IMB_thumb_load_blend in multiple functions.Jeroen Bakker
2021-08-25Keymap: repeat was disabled for Ctrl-Backspace in the text editorCampbell Barton
2021-08-25Cleanup: Fixed compile error in debug code.Jeroen Bakker
2021-08-25Fix assert caused by 38630711a02e553f209ace9a8627a7a851820a2dCampbell Barton
2021-08-25Correct error in 38630711a02e553f209ace9a8627a7a851820a2dCampbell Barton
2021-08-25BLI_string_utf8: remove unnecessary utf8 decoding functionsCampbell Barton
Remove BLI_str_utf8_as_unicode_and_size and BLI_str_utf8_as_unicode_and_size_safe. Use BLI_str_utf8_as_unicode_step instead since it takes a buffer bounds argument to prevent buffer over-reading.
2021-08-25BLI_string_utf8: simplify utf8 stepping logicCampbell Barton
There were multiple utf8 functions which treated errors slightly differently. Split BLI_str_utf8_as_unicode_step into two functions. - BLI_str_utf8_as_unicode_step_or_error returns error value when decoding fails and doesn't step. - BLI_str_utf8_as_unicode_step always steps forward at least one returning the byte value without decoding (needed to display some latin1 file-paths). Font drawing uses BLI_str_utf8_as_unicode_step and no longer check for error values.
2021-08-25VSE: Set default sound and video export formatRichard Antalik
Use video format for export instead of image sequence. Settings are same as defined in h264_in_MP4 preset. Sound default is AAC with 256kbit bitrate. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D7916
2021-08-25Cleanup: Use shorter enum item namesHans Goudey
2021-08-25LineArt: Fix (Unreported) Crash when loading objects.YimingWu
Fix mesh freeing call for obi->original_me so the address is correct.
2021-08-25Cleanup: Remove unecessary variablesHans Goudey
Instead of passing separate booleans for whether to store the locations and distances, check if the spans are empty. And instead of passing a separate boolean for whether there is valid tree data, pass a pointer to the data.
2021-08-24Fix T90900: Crash when rendering geometry nodes created curveHans Goudey
The comment for data_eval mentions that it should contain a mesh for curve objects, however with geometry nodes, objects can evaluate to curves as well (though they are only containers for the `CurveEval`. That is a larger issue, but with the upcoming geometry instancing patch the situation changes, so this commit does not correct that. I also hope to remove this code in favor of the new curve to mesh code soon. Instead, just check the evaluated data type in this case, which prevents the crash, though it is hacky.
2021-08-24Cleanup: Make function static, remove unused argumentsHans Goudey
2021-08-24Nodes: Improvements to edge panning in the node editor.Lukas Tönne
- New operator property to toggle edge panning in the keymap: This is disabled by default to avoid edge-panning in cases where it gets distracting, such as adding a new node. Only the explicit translate operator(s) (GKEY or drag) have this enabled now. - Restore the initial view rect on edge pan cancel: The initial view rect is now stored in the edge pan operator data. When an operator with edge panning is cancelled it can now call the `UI_view2d_edge_pan_cancel` function to restore the original View2D rect. - Less delay in node editor scrolling: Delay is useful when scrolling through long lists, such as in the outliner, but makes node scrolling feel sluggish and unresponsive. The lower scroll speed here makes a faster response the better option. - Zoom influence feature: Somewhat slower scrolling in UI-space when zoomed out. With the 0.5 zoom influence factor nodes behave as if zoom factor is halved, otherwise it gets too fast when zoomed out. Previously scrolling would always be constant-speed in UI space, now it's half-way between UI space and node (view) space.
2021-08-24Fix T90715: Remove correct particle modifier through Python APIRobert Guetzkow
Before this patch attempting to remove a particle modifier programmatically through Python would fail, because it deleted the modifier associated with the currently active particle system instead of the one passed as an argument to `bpy.types.ObjectModifiers.remove()`. This fix adds an additional argument for the particle system to `object_remove_particle_system`. This allows to specify which particle system and its associated modifier shall be removed. In case of `particle_system_remove_exec` it will remain the currently active particle system, whereas `object_remove_particle_system` passes the particle system of the modifier. Hence, the correct modifier will be removed. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D12234
2021-08-24Cleanup: ID management: Remove useless internal for ↵Bastien Montagne
`BKE_lib_id_clear_library_data`. This static internal `_ex` function was not doing anything extra, just move back whole code to public API `BKE_lib_id_clear_library_data`.
2021-08-24Cleanup: Remove useless Camera `make_local` callback.Bastien Montagne
Not sure why this one was still there, probably just escaped a previous cleanup somehow.
2021-08-24Cleanup: Simplify logicHans Goudey
2021-08-24Render: Lazily allocate render passes pixels storageSergey Sharybin
The idea is to only allocate pixel storage only when there is an actual data to be written to them. This moves the code forward a better support of high-res rendering when pixel storage is not allocated until render engine is ready to provide pixel data. Is expected to be no functional changes for neither users no external engines. The only difference is that the motion and depth passes will be displayed as transparent for until render engine provides any tile result (at which point the pixels will be allocated and initialized to infinite depth). Differential Revision: https://developer.blender.org/D12195
2021-08-24FFMPEG: Fix building with older versions that need ↵Sebastian Parborg
FFMPEG_USE_DURATION_WORKAROUND
2021-08-24Disable Fade Inactive Geometry overlay by defaultPablo Dobarro
This overlay was intended to identify the active objects in modes like Sculpt Mode, where you don't have any extra visual indication of what is the current and target object when switching directly between them. After having flash on mode transfer on the transfer mode operator, the visual information this overlays provides is redundant. It is still available in case some users want to use it like a way of focusing on the active object. Reviewed By: JulienKaspar, JacquesLucke Differential Revision: https://developer.blender.org/D12303
2021-08-24Fix T90840: Can't duplicate or copy (Ctrl-C) object from linked file.Bastien Montagne
We need to separate the flag telling duplicate code to not handle remapping to new IDs etc., from the one telling the code that we are currently duplicating a 'root' ID (i.e. not a dependency of another duplicated ID). This whole duplicate code/logic is still fairly unsatisfying, think it will need further refactor, or maybe even re-design, at some point...
2021-08-24Fix invalid mask use for the UV-project modifierCampbell Barton
Mistake in a30a8179331d689c9e599fb9a530c0b6b155f689.
2021-08-24Added more Geometry Node testsHimanshi Kalra
* Attributes * Utilities * Volume Test folder located in `lib\tests\modeling\geometry_nodes` It contains around 34 new tests. * attribute clamp + other attribute nodes * Curve Primitive nodes * Mesh Primitive nodes * delete geometry * convex hull * subdivision surface * boolean intersect * boolean diff * volume to mesh Reviewed By: zazizizou, JacquesLucke Differential Revision: https://developer.blender.org/D12250
2021-08-24PyAPI: remove active area test for script.python_file_run operatorCampbell Barton
There is no reason running a Python file should require an active area.
2021-08-24Fix buffer size mismatch in SCRIPT_OT_python_file_runCampbell Barton
Reading paths over 512 bytes would cause a buffer overrun.
2021-08-24Fix reporting Python reference leaks with WITH_PYTHON_SAFETYCampbell Barton
Error in f3e26c847b6ba0924cfd02641345164c54234425
2021-08-24Fix BLI_str_utf8_as_unicode_step reading past intended boundsCampbell Barton
Add a string length argument to BLI_str_utf8_as_unicode_step to prevent reading past the buffer bounds or the intended range since some callers of this function take a string length to operate on part of the string. Font drawing for example didn't respect the length argument, potentially causing a buffer over-read with multi-byte characters that could read past the end of the string. The following command would read 5 bytes past the end of the input. `BLF_draw(font_id, (char[]){252}, 1);` In practice strings are typically null terminated so this didn't crash reading past buffer bounds. Nevertheless, this wasn't correct and could cause bugs in the future. Clamping by the length now has the same behavior as a null byte. Add test to ensure this is working as intended.
2021-08-24Cleanup: spellingCampbell Barton
2021-08-24Cleanup: quiet clang-format warnings, unused argumentCampbell Barton
2021-08-24Fix T90854: Cycles, normal map fails with applied transformationsKévin Dietrich
Prior to rBb8ecdbcd964a normals were stored both in DeviceScene.tri_vnormal and the float3 attributes buffer. However, the normals in `DeviceScene.tri_vnormal` might have be transformed to world space if the object's transformation was applied, while the data in the float3 attributes buffer were not. This caused shading issues in cases where the objects did have transformation applied, as the math expects the normals to be in object space. To fix this, convert the normals to object space if necessary before applying the normal map. Reviewed By: brecht Maniphest Tasks: T90854 Differential Revision: https://developer.blender.org/D12294