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-19Fix View Roll failure to align the quaternion to the view-axisCampbell Barton
View roll checked if the resulting roll was close to a view axis but didn't write the aligned quaternion back to the final result. Add ED_view3d_quat_to_axis_view_and_reset_quat since most callers to ED_view3d_quat_to_axis_view will reset the quaternion when a view aligned axis is found.
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-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-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-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-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-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-18Fix T98192: Crash when apply transforms after deleting an objectCampbell 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-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-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-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-17Fix unreported: GPencil Time offset modifier Reverse only plays 2 timesAleš Jelovčan
This patch fixes long standing issue of reverse mode only performing loop 2 times and then stops displaying. Differential revision: https://developer.blender.org/D14921
2022-05-17Cleanup: fix compiler warningBrecht Van Lommel
2022-05-17Fix console errors about missing properties in circle selectSergey Sharybin
A regression since 113b8030ced9: circle selection operators does not define properties like deselect_all and a special name callback is to be used for those. This is what was already done for circle select in the 3D viewport. Some other spaces were using the generic pick operator for the circle selection which causes error prints in the console.
2022-05-17Update tests to account for Text.as_string not adding a trailing newlineCampbell Barton
Regression in tests from [0] tests were written to assume a newline was added to the result of Text.as_string which is no longer the case. [0]: f4ff36431ccfac2f0a99fc23c18fe0d9de38b36d
2022-05-17Fix click detection for simulated eventsCampbell Barton
Refactoring event click-drag detection broke click detection for simulated events. Resolve this by sharing logic for update previous values in `wmWindow.eventstate` for regular event handling (no functional changes for non-simulated events). Failure to detect clicks for simulated events broke the undo test `test_undo.view3d_multi_mode_select` in `../lib/tests/ui_simulate/run.py`. All undo tests now pass.
2022-05-17Fix text.as_string() adding a trailing new-lineCampbell Barton
Moving Text.as_string() from Python to C [0] added an extra new-line causing a round-trip from_string/to_string to add a new-line, this also broke the undo test `test_undo.text_editor_simple` in `../lib/tests/ui_simulate/run.py`. [0]: 231eac160ee394d41c84e0cc36845facb7594ba5
2022-05-17Fix T96414: Stencil mapping is incorrect for UDIMsJesse Yurkovich
When texture painting, brush textures and brush texture masks were not transformed to account for UDIM tiles. Differential Revision: https://developer.blender.org/D14671
2022-05-16Fix T96289: Crash when accessing mesh via `ob.data` in a driverSybren A. Stüvel
Fix a crash when a driver variable targets an object and uses `data.shape_keys.key["name"].value` in its expression. The fix consists of adding an extra relation from the targeted object's `GEOMETRY` component to the driver evaluation. This ensures that its `data` pointer has been evaluated by the depsgraph and is safe to follow. This also resolves the concern raised on rB56407432a6aa. Reviewed by: brecht Differential Revision: https://developer.blender.org/D14956
2022-05-16Fix: Node editor "Group" panel displays for embedded node treesHans Goudey
Embedded node trees are not groups, since their inputs and outputs are not exposed anywhere. So these panels should not be displayed.
2022-05-16Fix T98136: Crash undoing "Make Library Override" in some cases.Bastien Montagne
The 'OVERRIDE_HIDDEN' extra collection would often be mistakenly added to a linked collection, which is totally forbidden and guaranteed to crash on undo/redo. Reworked the code instantiating that extra collection in a more generic and hopefully robust way now.
2022-05-16Fix T97867: Cycles MNEE blocky artefacts for rough refractive interfacesOlivier Maury
Made tangent frame consistent across the surface regardless of the sample, which was not the case with the previous algorithm. Previously, a tangent frame would stay consistent for the same sample throughout the walk, but not from sample to sample for the same triangle. This actually resulted in code simplification. Also includes additional fixes: * Fixed an important bug that manifested itself with multiple lights in the scene, where caustics had abnormally low amplitude: The final light pdf did not include the light distribution pdf. * Removed unnecessary orthonormal basis generation function, using cycles' native one instead. * Increased solver max iteration back to 64: It turns out we sometimes need these extra iterations in cases where projection back to the surface takes many steps. The effective solver iteration count, the most expensive part, is actually much less than the raw iteration count. Differential Revision: https://developer.blender.org/D14931
2022-05-16Fix broken unit test `bl_rigging_symmetrize`Sybren A. Stüvel
Fix parameters used in `self.assertAlmostEqual()` call; the code was passing the error message to the `places` parameter.
2022-05-16Fix T96503: Assert using PropertyGroup and PointerProperty prop in Panel.Bastien Montagne
Wrong assert introduced in {rBad63d2f60e24}, added comment in code explaining why NULL RNA pointer is a valid value to be skipped here.
2022-05-15Fix T98049: crash rendering multilayer EXR with some color spacesBrecht Van Lommel
2022-05-15Fix T80174: Dyntopo not initializing face set values correctlyJoseph Eagar
BMLog was zeroing face sets when creating new faces, which is not valid. They're now set to 1.
2022-05-15Fix T81715: Unprojected radius mode messes up sculpt texture radiusJoseph Eagar
We really need to fix how unprojected radius (scene unit) works. What happened is the paint code updates the brush's normal radius with the current unprojected pixel radius, which was then used by texture brush tiled mode. To fix this I just cached the pixel radius at stroke start in UnifiedPaintSettings->start_pixel_radius.
2022-05-13Fix T98072: Regression: When appending a Scene, the Collections that are ↵Bastien Montagne
excluded get instanced into Current Scene. This was due to using `BKE_scene_has_object` function, which uses the cache of bases of the viewlayers, which do not have entries for the content of excluded collections... Now use `BKE_collection_has_object_recursive` instead.
2022-05-13Fix possible null-pointer dererence for active button dataJulian Eisel
The button returned from `UI_region_active_but_get()` is not guaranteed to have active button data, so code can't rely on that.
2022-05-13Fix crash when displaying some button tooltipsJulian Eisel
Steps to reproduce were: - Factory startup - Right-click in 3D View - Move the mouse over "Shade Flat", wait for the tooltip The changed logic in 4680331749aa to lookup an active button was incorrect. It didn't respect the priority of active button candidates.
2022-05-13Fix T97518: All buttons with eyedropper highlight if one is hoveredJulian Eisel
Issue is that the operator acts on the active button, and also uses that in the poll. So the actually active button would affect the poll of a different button. For the superimposed icons we need to be able to execute these polls properly for non-active buttons. This enables temporarily overriding the active button for lookups via context. While a bit of a hack it makes sense conceptually. Reviewed By: Campbell Barton Maniphest Tasks: T97518 Differential Revision: https://developer.blender.org/D14880
2022-05-13Fix: Incorrect order in geometry nodes add menuHans Goudey
2022-05-13Fix T97386: Node socket labels swallow click/drag eventsCampbell Barton
Regression caused by [0] which made `ui_but_is_interactive` consider label buttons with tool-tips to be interactive. This prevented the clicks to pass through to the nodes for selecting/dragging. Resolve this by allowing buttons to be activated for the purpose of showing tool-tips but otherwise considering them disabled (as if the UI_BUT_DISABLED is set when handling events). [0]: 484a9146479e05946d291e9886cdf3febca6d05d Reviewed By: Severin Ref D14932
2022-05-13MacOS/AMD: Drawing artifacts in VSE.Jeroen Bakker
Related to the partial revert done for T97272. It seems also that the workaround should be enabled for any MACOS platform.
2022-05-13Fix crash toggling marker translate with marker offsetSergey Sharybin
The shortcut is G-G. Caused by loop argument "shadowing".
2022-05-13Fix T97330: UV points missing with some modifiersKévin Dietrich
When extracting UV point indices, only the vertex points coming from the original geometry should be drawn. For this, the routines (for subdivision and coarse meshes) would only consider a vertex to be real if the extraction type is `MAPPED`, and that an origin index layer on the vertices exist with a valid origin index for the current vertex. However, if the extraction type is `MESH`, which can happen with for example an empty Geometry Node modifier, or with deferred subdivision, this would consider every vertex to not be "real" and therefore hidden from the UV editor. This reworks the condition for "realness" to also consider a vertex to be real if there is no origin layer on the vertices. The check on the extraction type is removed as it becomes redundant. This only modifies the check in the UV data extraction for point indices, however similar checks exist throughout the extraction code, these will be dealt with separately in master. Differential Revision: https://developer.blender.org/D14773
2022-05-13Fix T89909: Circle Select tool status bar doesn't match the operationsCampbell Barton
Assign get_name functions for select picking and circle select so modifier keys show the result of holding the modifiers.
2022-05-13Fix T97872: Annotation lines lost AAGermano Cavalcante
Since rB2a7a01b339ad, `lineSmooth` has lost its default value of true. rBa0a99fb25284 only fixed the problem on master. But thanks to @hitrpr for spotting the bug in version 3.2 too. Differential Revision: https://developer.blender.org/D14876
2022-05-12Build: patch USD to avoid using rdtscp instruction not available on older CPUsBrecht Van Lommel
Disable the new more accurate timing code, this is not needed for Blender. In USD itself this code is disabled on macOS anyway, so it should operate fine without it. Ref T97950, T95206 Differential Revision: https://developer.blender.org/D14928
2022-05-12Cleanup: use proper naming in Warp modifier read/write code.Bastien Montagne
2022-05-12Fix (unreported) bad memory access in read/write code of MeshDeform modifier.Bastien Montagne
This abuse of one one size value to handle another allocated array of a different size is bad in itself, but at least now read/write code of this modifier should not risk invalid memory access anymore. NOTE: invalid memory access would in practice only happen in case endian switch would be performed at read time I think (those switches only check for given length being non-zero, not for a NULL data pointer...).
2022-05-12Fix T98071: Overlay: UV selection inverted bewteen vertex and edge selectClément Foucault
Self describing title. Also remove the layout inside the geometry shader as they are now generated by the backend.