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-10Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-10Fix T96520 Node editor: Tweak fails with unselected nodesCampbell Barton
Use the same method for node selection and dragging that is used in the 3D viewport and UV editor. Instead of relying on a modal operator - use the keymap to handle click/drag events. Details: Failure to transform unselected nodes was caused by [0] & [1] however detecting drag relied on specific behavior which I don't think we should be depending on. This error happened when selection was defined both in the key-map for the tool and for the node-editor. - The left mouse button would activate selection in both the tool and "Node Editor" keymap. - The first selection would return `FINISHED | PASS_THROUGH` when selecting a previously unselected node. - The same PRESS would trigger a second selection would return `RUNNING_MODAL | PASS_THROUGH`, (starting a NODE_OT_select as a modal operator). - In 3.1 (with tweak events) the modal operator would then exit and fall-back to the tweak event which would transform the selected nodes. - In 3.2 (as of [0]) the PRESS that starts the modal operator is considered "handled" and prevents drag event from being detected. The correct behavior in this case isn't obvious: If a modal operator starts on pressing a button, using that same the release to generate drag/click events is disputable. Even in the case or 3.1 it was inconsistent as tweak events were generated but click events weren't. Note: after investigating this bug it turns out a similar issue already existed in 2.91 and all releases afterwards. While the bug is more obscure, it's also caused by the tweak event being interrupted as described here, this commit resolves T81824 as well. [0]: 4d0f846b936c9101ecb76a6db962aac2d74a460a [1]: 4986f718482b061082936f1f6aa13929741093a2 Reviewed By: Severin Ref D14499
2022-05-10Fix for crash opening the file selector multiple timesCampbell Barton
This is part of a fix for T88570, where the file selector would crash when activated multiple times. Calling save multiple times would free the operator, leaving a dangling pointer which was used when panels were visible that accessed the "active_operator". Reviewed By: Severin Ref D14905
2022-05-10Cleanup: remove non-existent includeCampbell Barton
guardedalloc was already included.
2022-05-10DrawManager: Hide lock acquire behind experimental feature.Jeroen Bakker
The acquire locking of the draw manager introduced other issues. The current implementation was a hacky solution as we know that the final solution is something totally different {T98016}. Related issues: * {T97988} * {T97600}
2022-05-10Fix: Missing curves type count cache update in add brushHans Goudey
2022-05-10DrawManager: Hide lock acquire behind experimental feature.Jeroen Bakker
The acquire locking of the draw manager introduced other issues. The current implementation was a hacky solution as we know that the final solution is something totally different {T98016}. Related issues: * {T97988} * {T97600}
2022-05-10Merge branch 'blender-v3.2-release'Clément Foucault
2022-05-10Fix T88570: Crash when saving after pressing ctrl+S twice.Julian Eisel
Existing code to replace the file operation was failing when done from the window for the file operation itself. Basically, this patch does two things: - Implement a well defined window context to use as the "owner" or "root" of the File Browser. This will be used for managing the File Browser and to execute the file operation, even after the File Browser was closed. - Ensure the context is valid when dealing with file File Browser event handlers. Previously the window context just wasn't well defined and just happened to work well enough in most cases. Addressing this may unveil further issues, see T88570#1355740. Differential Revision: https://developer.blender.org/D13441 Reviewed by: Campbell Barton
2022-05-10Fix T95298 ImageEditor: Multi-view images fail to display properlyClément Foucault
This was because the shader had wrong output slot order. This also add a note about why the order is reversed compared to the texture binding.
2022-05-10Cleanup: Move mesh primitive cube to the geometry moduleHans Goudey
This allows easy reuse elsewhere in Blender.
2022-05-10Merge branch 'blender-v3.2-release'Jeroen Bakker
2022-05-10Curves: Add disabled message for add empty hair operatorHans Goudey
Ref 2ba081f59bc62f1fc7f59a6391c
2022-05-10Fix T97272: Lag when resizing viewports.temp-T97272Jeroen Bakker
Viewports where cleared explicitly due to compatibility reasons with Intel iGPUs. This slowed down other platforms as well, this wasn't noticeable on all platforms. This patch will be more selective when to enable the workaround. Currently only for iGPUs on Mac + Linux.
2022-05-10Merge branch 'blender-v3.2-release'Jeroen Bakker
2022-05-10Eevee: Fix GLSL compilation error.Jeroen Bakker
Introduced by {35594f4b92fa4cbb5b848f447b7a3323e572b676}. Some platforms do not support temp variables to be used as inout parameter. Detected on Mac with Intel iGPU.
2022-05-10Fix T50398: Constrain to Image Bounds failed with 2D cursor pivotChris Blackbourn
Use more robust logic for "Constrain to Image Bounds" when scaling UVs. Reviewed By: campbellbarton Ref D14882
2022-05-10Merge branch 'blender-v3.2-release'Joseph Eagar
2022-05-10D14887: Fix artifacts in hue filterRamil Roosileht
The hue color filter now wraps correctly. Fixes T97768. Reviewed By: Julien Kaspar & Joseph Eagar Differential Revision: https://developer.blender.org/D14887 Ref D14887
2022-05-10Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-10Merge branch 'blender-v3.2-release'Campbell Barton
2022-05-10Fix T86358: Use per face aspect correction for primitive UV projectionsChris Blackbourn
During UV unwrapping, Cube Projection, Sphere Projection, Cylinder Projection and Project From View (in the 3D Viewport), when "Correct Aspect" toggle is active, it now uses a query cache to perform a per-face aspect ratio ("per_face_aspect") correction for the active image of each face. Reviewed By: campbellbarton Ref D14852
2022-05-10Fix T97545 GPU: Crash caused by uncommented quote char in source stringClément Foucault
Some drivers completely forbid quote characters even in unused preprocessor directives. This patch adds a debug build check for all `.glsl` files that need to be manually handled. For shared headers with `#include` directives, we need to do runtime patching of the source to remove the quote. Also fix an instance of the quotes check failing in `eevee_next`.
2022-05-10Cleanup: Return earlyHans Goudey
2022-05-10Merge branch 'blender-v3.2-release'Clément Foucault
2022-05-10EEVEE: Fix missing CLOSURE_DEFAULTClément Foucault
2022-05-10Fix T97985 EEVEE: Shader mixing not working correctly when reusing shader nodesClément Foucault
This was caused by the `Closure` members being added to the final contribution more than once. The workaround is to clear the members once a closure has been added to the final contribution. I used `inout` on `Closure` inputs so that the render engine implementation of mix and add closure nodes can do its own thing. The nodegraph handling of inout was changed for this to work.
2022-05-09Fix T97984: GPUCodegen: crash when loading demo fileClément Foucault
This was caused by the name buffer not being ensured in all cases. Change the behavior and always create the `NameBuffer`.
2022-05-09Fix T97983 EEVEE: Tangent Normal of Curves info behaves differently in EeveeClément Foucault
Curve tangent was correctly mistaken with curve normal. This patch fixes the name of the output in the glsl function and make curve attributes more explicit (with `curve_` prefix). This also improve the normal computation by making it per pixel to match cycles. Also ports the changes to eevee-next.
2022-05-09Cleanup: simplify filling curve batch cache buffersJacques Lucke
Write to arrays directly instead of using the "step" utility.
2022-05-09Cleanup: use different hardcoded shape to make the root/tip radius usefulJacques Lucke
Those settings are intended to be removed at some point, but for now they are still needed because the radius attribute isn't supported.
2022-05-09Fix T97906: OpenEXR files with lower case xyz channel names not read correctlyBrecht Van Lommel
Adds some utility functions to avoid using toupper() which depends on the locale and should not be used for this type of parsing.
2022-05-09BLI: Avoid invoking tbb for small parallel_reduce callsHans Goudey
Apply a change similar to e1309030603980c6b2f33486 for `parallel_reduce`, just like `parallel_for`. I measured a performance improvement in viewport FPS of at least 10% with 1 million small instances (one bottleneck was computing many small bounding boxes).
2022-05-09Cleanup: Remove incorrect statement after recent refactorHans Goudey
2022-05-09Fix T97853: Crash with edit mode X-ray and subdivisionHans Goudey
The mesh drawing code used a different mesh to check whether or not to draw face dots and to actually retrieve them. The fix is moving the responsibility of determining whether to use subsurf face dots to the creation of `MeshRenderData` where the mesh used for drawing is known, rather than doing it at a higher level. Differential Revision: https://developer.blender.org/D14855
2022-05-09Fix T97853: Crash with edit mode X-ray and subdivisionHans Goudey
The mesh drawing code used a different mesh to check whether or not to draw face dots and to actually retrieve them. The fix is moving the responsibility of determining whether to use subsurf face dots to the creation of `MeshRenderData` where the mesh used for drawing is known, rather than doing it at a higher level. Differential Revision: https://developer.blender.org/D14855
2022-05-09Refactor: Move resample curves code to the geometry moduleHans Goudey
This commit moves the code for the resample curves node to the geometry module, to allow reusing it in any editor. Split from D14870.
2022-05-09Move particle system modifier to C++Jacques Lucke
The modifier is supposed to create a Curves data block soon, which helps with the transition to the new Curves object in drawing code. Utilities for the new Curves object are mostly in C++.
2022-05-09Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-09Fix T97927: bpy.utils.units.to_string uses wrong units for velocity, ↵Bastien Montagne
acceleration, lens length, and power `TEMPERATURE` type was also missing, not only the new-ish `TIME_ABSOLUTE` one... Added a static assert on the size of the `bpyunits_ucategories_items` array, and a comment on anonymous enum of `B_UNIT_`, in the hope this won't happen again in the future.
2022-05-09Cleanup: typo in variable name.Bastien Montagne
2022-05-09Cleanup: Replace UNUSED with comments (CPP style).Jeroen Bakker
2022-05-09GPencil: Tooltip and UI text changesAntonio Vazquez
Apply @pablovazquez feedback.
2022-05-09Merge branch 'blender-v3.2-release'Jeroen Bakker
2022-05-09GPU: Unable to compile material shaders.Jeroen Bakker
This fixes a threading issues when material shaders with textures are used. It localizes the names of the samplers.
2022-05-09Fix: compiler warnings due to recent commitEthan-Hall
This is a fix for warnings caused by the patch b96cdbcf7aac. Differential Revision: https://developer.blender.org/D14891
2022-05-09Merge branch 'blender-v3.2-release'Bastien Montagne
2022-05-09Minor typo fixes in UI messages.Bastien Montagne
2022-05-09Fix T97529: NLA track buttons still work when hiddenColin Basnett
NLA track option buttons (lock track, etc.) now no longer respond to clicks when they are hidden. The bug stems from the fact that there was duplicate input handling going on for the buttons: once in the normal button UI system, and then again in the `mouse_nla_channels` function. The logic in `mouse_nla_channels` does not inspect whether or not the setting button is there or not, it just assumes that it is. This function should no longer be handling mouse input for buttons (there is even comment suggesting that the button handling to be deprecated) since the button UI system already handles it. Therefore, the button handling code has been removed from that `mouse_nla_channels`. In addition, the redundant mouse button handling for pressing the "Push Down Action" button has also been removed from this function as well. Reviewed By: sybren, lichtwerk Differential Revision: https://developer.blender.org/D14868
2022-05-09Geometry Nodes: use .a_ prefix for anonymous attribute namesJacques Lucke
Ref T97452.