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-03-13Start replacing write_custom_data with the attribute exporter.temp-abc-featuresKévin Dietrich
2022-03-13Merge branch 'master' into temp-abc-featuresKévin Dietrich
2022-03-13Cleanup: clang formatAaron Carlisle
2022-03-12Fix transform gizmo check for shift to constrain to a planeCampbell Barton
The eventstate was checked instead of the current event being handled, causing the check to be invalid in some cases.
2022-03-12GPencil: Fix unreported select error in Normalize operatorAntonio Vazquez
The curve selection was wrongly checked.
2022-03-12Fix T96352: Gpencil crash using Normalize Thickness with CurvesAntonio Vazquez
The stroke curve data could be NULL.
2022-03-12Fix T96229: GN Fillet Node unexpected limit radius behavior for 3 point splinesDilith Jayakody
This commit fixes T96229. The maximum possible radius was being used for 3 point splines, regardless of the current radius. Reviewed By: HooglyBoogly Maniphest Tasks: T96229 Differential Revision: https://developer.blender.org/D14311
2022-03-11UI: Use property split in curves surface panelHans Goudey
2022-03-11Cleanup: Use new enum for NURBS curve knots modesHans Goudey
Move the definition of the enum to `Curves` DNA, since the values will be saved in files, and ongoing development needs to use this.
2022-03-11Fix T94692: Show Cached OneDrive ThumbnailsHarley Acheson
When OneDrive files are offline, show preexisting thumbnails. See D13930 for details. Differential Revision: https://developer.blender.org/D13930 Reviewed by Julian Eisel
2022-03-11Curves: Move constructor/assignmentHans Goudey
Add the ability to move `CurvesGeometry` without copying its attributes and data. The benefit is more intuitive management of the data-block copying, and less overhead for copying in some cases. The "moved-from" source is left in an empty but valid state. A test file is added to test the move constructor.
2022-03-11Cycles: show viewport hair settings when using CyclesEthan-Hall
Before this patch, users had to switch render engines just to change how the hair should be displayed in solid and material preview viewport shading modes. Differential Revision: https://developer.blender.org/D14290
2022-03-11Cycles: make smart interpolation fallback to cubic for GPUEthan-Hall
Matching CPU and Eevee behavior. Differential Revision: https://developer.blender.org/D14296
2022-03-11Fix wrong line width when using Show Lines in Histogram scopeBrecht Van Lommel
By not resetting the line width, other scopes were using the wrong line thickness. Contributed by RedMser. Differential Revision: https://developer.blender.org/D12030
2022-03-11Cleanup: use M_PI_2 and M_PI_4 where possibleHallam Roberts
The constant M_PI_4 is added to GLSL to ensure it works there too. Differential Revision: https://developer.blender.org/D14288
2022-03-11Cleanup: fix source typos homogenous->homogeneousBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14306
2022-03-11Cleanup: fix source comment typosBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14307
2022-03-11Fix: Assert in set spline type node after recent commitHans Goudey
My own error when committing 0602852860dda. It appears that the "Endpoint" knots modes should be handled together, otherwise out of bounds array access is possible.
2022-03-11Fix T85689: Replace SHGetFileInfoW for Drive NameHarley Acheson
Win32: Replace SHGetFileInfoW as means to get friendly display names for volumes because it causes long pauses for disconnected remote drives. See D14305 for more details. Differential Revision: https://developer.blender.org/D14305 Reviewed by Brecht Van Lommel
2022-03-11Fix: Deleting vertex group attribute can change original meshHans Goudey
There was an error with the attribute API implementation for vertex groups. If the vertex group layer referenced an original mesh, it wasn't properly duplicated for writing.
2022-03-11Cleanup: Use helper variableHans Goudey
For a NURBS curve, the order is just the degree plus one. So just pass around the degree instead of always subtracting one.
2022-03-11Fix T96243: Workbench Curvature not rendering in background.Jeroen Bakker
When rendering using the command line the curvature wasn't rendered. The reason was that the ui_scale wasn't initialized and therefore the same pixels where sampled to detect the curvature. This is fixed by setting the ui_scale to 1 for any image render.
2022-03-11Event System: limit early evaluation of drag actions to mouse buttonsCampbell Barton
Change early drag evaluation added in 1f1dcf41d51a03150ee38f220c590f8715b11e88 to only apply to drag events from mouse buttons. Otherwise pressing two keyboard keys at one would create a drag event for the first pressed key. While this didn't cause any bugs as far as I know, this behavior makes most sense for drags that come from cursor input.
2022-03-11Event System: only set press values in win->eventstateCampbell Barton
Only set press events in the windows eventstate, not the current event since it's not useful for these to be set current events press values. This makes it possible for a press event to access values for the previous press.
2022-03-11Fix out of order event handling when calling operators from gizmosCampbell Barton
Activating a gizmo used the windows eventstate which may have values newer than the event used to activate the gizmo. This meant transforms check for the key that activated transform could be incorrect. Support passing an event when calling operators to avoid this problem.
2022-03-11Correct error in 1032f111d087e7ba77c16a4af78704019714bd6aCampbell Barton
Thanks to Jacques Lucke for spotting.
2022-03-11Fix threading conflict with movie cache lineSergey Sharybin
It was possible that a render thread will be freeing cache while the interface is iterating over cache items to build cache line. Found while looking into T94738. It might be a fix, but I am unable to reproduce the original issue, so can not know for sure whether there is something else going or or not.
2022-03-11Cleanup: remove duplicate compiler attributeCampbell Barton
2022-03-11Correct error in d2222d5b2cac203f4ddaae5c99b96701587231e7Campbell Barton
2022-03-11RNA: use a function to access the nurbs error messageCampbell Barton
It makes more sense to use a function in this case as this creates an error message which is not data associated with the NURBS curve.
2022-03-11Text: use simplified logic for txt_to_bufCampbell Barton
This function was copied from txt_sel_to_buf, including unnecessary complexity to support selection as well as checks for the cursor which don't make sense when copying the whole buffer. Use a simple loop to copy all text into the destination buffer.
2022-03-11PyAPI: use C/RNA API for Text.from_string/to_stringCampbell Barton
Use faster C code for getting the buffer from text.
2022-03-11RNA: support functions returning allocated stringsCampbell Barton
Now it's possible for a C/RNA function to return a dynamic string, The PROP_NEVER_NULL flag is also supported so a NULL string returns None in Python.
2022-03-11Cleanup: remove unused variableCampbell Barton
2022-03-11Cleanup: use doxy sections for the outlinerCampbell Barton
2022-03-11Fix dragging items in the outlinerCampbell Barton
Regression in b8960267dd51f9108b3b49e9b762e6b4d35ae1dc, it's important for box-select to use the drag start to check if the cursor is over an icon.
2022-03-11Curve: Improve NURBS knot generation modesLaurynas Duburas
This patch enables all 8 combinations of Nurbs modes: Cyclic, Bezier and Endpoint. Also removes restriction on Bezier Nurbs order. The most significant changes are mode combinations bringing new meaning. In D13891 is a scheme showing NURBS with same control points in a modes, and also further description of each possible case. Differential Revision: https://developer.blender.org/D13891
2022-03-11Fix T94121: PyAPI: ID property group returns wrong type with iter()Campbell Barton
Regression in 265d97556aa0f0f2a0e4dd7584e3b8573bbddd54. Where iterating directly on a property group failed, e.g.: `iter(group)`, tests missed this since only `group.keys()` was checked.
2022-03-11Cleanup: use doxy sections in image.ccCampbell Barton
Also minor improvements & clarifications to comments.
2022-03-11Cleanup: use enum for local versioning enumCampbell Barton
2022-03-11Transform/UI: individualize the option to use snap per editor typeGermano Cavalcante
`3DView`'s `use_snap` option has little or nothing to do with using snapping in `UV`, `Nodes` or `Sequencer`. So there are no real advantages to keeping these options in sync. Therefore, individualize the option to use snap for each "spacetype". Reviewed By: brecht Differential Revision: https://developer.blender.org/D13310
2022-03-11Fix: Handle handles reset when realizing with other curve typesHans Goudey
The result handle attributes for non-bezier types are zeroed. By mistake though, the entire array was zeroed, not just the area corresponding to that curves source.
2022-03-10Fix incorrect meta strip background colorRichard Antalik
When viewing meta strip, it had orange color. This was caused by overflow because of hard-coded offset. Theme got darker, and background was also set again further in code, but redundant drawing was removed in f4492629ea0.
2022-03-10Curves: actually delete curves with Delete brushJacques Lucke
Previously, the position was just set to zero as part of the prototype. Differential Revision: https://developer.blender.org/D14291
2022-03-10Fix T96292: unable to set active material output using PythonJacques Lucke
Differential Revision: https://developer.blender.org/D14301
2022-03-10Cleanup: Reduce duplication in realize instances codeHans Goudey
Realizing and copying attributes of meshes, curves, and points are very similar processes, but currently the logic is duplicated three times in the realize instances code. This commit combines the implementation for copying generic attributes and creating the result id attribute. The functions for threaded copying and filling should ideally be in some file elsewhere, since they're not just useful here. But it's not clear where they would go yet. Differential Revision: https://developer.blender.org/D14294
2022-03-10Fix T93710: Artifacts denoising hi-res images using OPtiXSergey Sharybin
Caused by an integer overflow in the tiling utilities of OptiX SDK. Seems for now it's easier to copy and modify code to our sources so that we don't need to bump SDK version requirement (which might lead to an increased driver requirement as well). There are still some fixes needed from a newer driver to have such denoising to work properly: Windows requires 511.79, Linux 510.54. Thanks Patrick for investigation! Differential Revision: https://developer.blender.org/D14300
2022-03-10Fix: closest image texture interpolation inconsistent in geometry nodesEthan-Hall
The `-0.5f` offset is inconsistent with shader nodes. See D14235 for an example file. Differential Revision: https://developer.blender.org/D14235
2022-03-10IK: make Ik chain length non-animatableSybren A. Stüvel
Mark the chain length of regular and spline IK constraints non-animatable. Changing the IK chain length requires a rebuild of depsgraph relations. This makes it unsuitable for animation. It's better to simply avoid having this property animatable than to allow animation but produce unstable results. Ref: T96203
2022-03-10Event System: key-press while dragging now activates drag firstCampbell Barton
When dragging with a large threshold (using a tablet for example), it's possible to press another key before the drag threshold is reached. So tweaking then pressing X would show the delete popup instead of transforming along the X-axis. Now key presses while dragging cause the drag event to be evaluated before the key press. Note that to properly base the mouse-move event on the previous state the last handled event is now stored in the window. Without this the inserted mouse-move event may contain invalid values from the next event (it's modifier state or other `prev_*` values). Requested by @JulienKaspar.