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
path: root/source
AgeCommit message (Collapse)Author
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: 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.
2022-03-10Fix T96279: 'Emulate 3 button mouse' fails to emulate MMBCampbell Barton
Regression in 08d8eee006f7e2a7ac05ef691bbaee230cbfbe5a caused emulate-middle mouse to work once, clearing the modifier key. Now the modifier key from emulated mouse events is never stored in the windows event-state.
2022-03-10Cleanup: de-duplicate event customdata freeing logicCampbell Barton
2022-03-10Cleanup: use SPDX license headerCampbell Barton
2022-03-10Cleanup: use 'WM_file_' prefix for file operationsCampbell Barton
2022-03-10Cleanup: spelling in comments & some minor clarificationsCampbell Barton
2022-03-10Cleanup: Move image.c to c++Jesse Yurkovich
Passing on all platforms: https://builder.blender.org/admin/#/builders/18/builds/329 Differential Revision: https://developer.blender.org/D13962
2022-03-10Cleanup: Simplify/deduplicate curves built-in attribute accessHans Goudey
Separate two templated functions that deal with custom data so that each built-in attribute accessor doesn't need the same boilerplace and logic.
2022-03-09Fix: Add missing breakHans Goudey
2022-03-09Fix: Use "construct" instead of "assign" for uninitialized memoryHans Goudey
The realize instances code used "assign", but the attribute buffers on the result aren't necessarily initialized. This doesn't make a difference for trivial types like `int`, but it would with more complex types.
2022-03-09Curves: Port realize instances node to the new data-blockHans Goudey
This commit replaces the temporary conversion to `CurveEval` with use of the new curves data-block. The end result is that the process looks more like the other components-- somewhere in between meshes and point clouds in terms of complexity. The final result is that the logic between meshes and curves is very similar. There are a few different strategies to reduce duplication here, so I'll investigate that separately. There is some special behavior for the radius and handle position attributes. I used the attribute API to store spans of these attributes temporarily. Using access methods on `CurvesGeometry` would be reasonable to, storing spans separately feels a bit more predictable for now though. There should be significant performance improvements in some cases, I haven't tested that specifically though. Differential Revision: https://developer.blender.org/D14247
2022-03-09Outliner: Ensure compiler error when passing wrong tree-element to macroJulian Eisel
Passing a `TreeElement *` instead of its `TreeStoreElement *` to `TSELEM_OPEN()` would seem to work but cause a bug. Add a type check that will cause a compiler error if it fails.
2022-03-09Outliner: Correct check for element cullingJulian Eisel
I don't see a reason to use 2x the element height for the "in-view" checks. That seems incorrect (although shouldn't cause issues). So remove that, I don't expect behavior changes.
2022-03-09Cleanup: Deduplicate Outliner item culling logicJulian Eisel
For whatever reason the "in-view" check was using 2x the element height. From what I can see this isn't needed, so I'll remove it in a follow-up commit.
2022-03-09Cleanup: fix wrong spelling of texture and indentationBrecht Van Lommel
Contributed by luzpaz. Ref D14271, D14270
2022-03-09Fix wrong detection of alpha for grayscale images, after recent changesEthan-Hall
Differential Revision: https://developer.blender.org/D14286
2022-03-09LibOverride/Outliner: Restrict further operations over liboverrides.Bastien Montagne
Restrict a lot deletion/moving around of liboverride objects and collections in the Outliner. While some of those operations may be valid in some specific cases, in the vast majority of cases they would just end up breaking override hierarchies/relationships. Part of T95708/T95707.
2022-03-09LibOverride: Add a 'is hierarchy root' macro check.Bastien Montagne
2022-03-09Curves: rename initial brushesJacques Lucke
The brushes that are still called "Test" still need to be changed until they can get their correct name. Ref T96259.
2022-03-09Fix T96233: Crash with gpencil data with vertex groupsFalk David
Blender crashes when a multi-user grease pencil object has vertex groups and is modified by modifiers, layer transform or parenting. The fix makes sure that we copy the vertex group names list. Reviewed By: antoniov Maniphest Tasks: T96233 Differential Revision: https://developer.blender.org/D14275
2022-03-09Fix T95738: wrong "Bottom" selection for cone without baseJacques Lucke
Original patch by @lone_noel with changes by me. Differential Revision: https://developer.blender.org/D14102
2022-03-09Fix cursor drag failing to use click-startCampbell Barton
Error in b8960267dd51f9108b3b49e9b762e6b4d35ae1dc, the flag was cleared before use.
2022-03-09Cleanup: use doxygen comments & sections for animation filesCampbell Barton
2022-03-09Fix T96250: Invalid default for uv_relax_methodCampbell Barton
Correct the default & version existing files.
2022-03-09Correct assert in 399ac1ff113e20688f277157ccb3c671648c9b1cCampbell Barton
Pass NULL instead of an empty string.
2022-03-09Fix subtype & default for keying set operator propertiesCampbell Barton
Error in 1a12c9edab4ac89c8a87c20ad3a2195d0e681bc8, also correct descriptions.
2022-03-09Fix T89560: Keymap editor no longer shows keying set dropdownCampbell Barton
Include built-in keying sets when ANIM_keying_sets_enum_itemf is called without a context to allow binding keys to built-in keying sets.
2022-03-09Cleanup: use ELEM macroCampbell Barton