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-01UI: Fix multi input socket outline and highlightLeon Schittek
Small fixes to the drawing of multi input sockets: - Make the outline thickness consistent with normal node sockets, independent from the screen DPI. - Only highlight multi input sockets when they are actually selected. - Skip selected multi inputs when drawing normal selected sockets. Differential Revision: https://developer.blender.org/D14192
2022-03-01Cleanup: use doxygen comments, correct spellingCampbell Barton
Also move eDupli_ID_Flags doc-string to it's declaration.
2022-03-01Fix: Don't tag curves component cache dirty for radiusHans Goudey
Changing the radius does not invalidate a cache on `CurvesGeometry`.
2022-03-01Fix: Use correct default in Curves to CurveEval conversionHans Goudey
Currently the code expects the radius attribuet to always exist on the input Curves. This won't be true in the future though, so the correct default value of one should be used when creating the data on CurveEval, where the data is not optional.
2022-03-01Curves: Add method to access cyclic attributeHans Goudey
Avoids the need to use the attribute API to access this commonly used builtin attribute.
2022-03-01Cleanup: Move object_add.c to C++Hans Goudey
This patch was tested on the buildbot first, it builds on all platforms.
2022-02-28Nodes: Improve readability of selected node linksLeon Schittek
This commit improves the drawing of selected node links: - Highlight the entire link to make it easier to spot where the link is going/coming from. - Always draw selected links on top, so they are always clearly visible. - Don't fade selected node links when the sockets they are connected to are out out view. - Dragged node links still get a partial highlight when they are only attached to one socket. Differential Revision: https://developer.blender.org/D11930
2022-02-28Geometry Nodes: Use std::move in dual mesh nodeWannes Malfait
Add a std::move in some places to prevent arrays from being copied. These cases were potentially optimized by the compiler, but this makes it more explicit. Differential Revision: https://developer.blender.org/D14129
2022-02-28Cleanup: Use bool instead of intHans Goudey
2022-02-28Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-02-28Cmake: Re-enable real snow add-onAaron Carlisle
This add-on now conforms to the distribution requirements, see: T95442.
2022-02-28Merge branch 'blender-v3.1-release'Brecht Van Lommel
2022-02-28Fix T92288, T96041: instancing of shared mesh objects without modifiers brokenBrecht Van Lommel
New code from the vertex normal refactor cfa53e0fbeed combined with older code from 592759e3d62a that disabled instancing for custom normals and autosmooth meant that instancing was always disabled. However we do not need to disable instancing for custom normals and autosmooth at all, this can be shared between instances just fine.
2022-02-28Fix T96032: add null check to constraint operatorsHenrik Dick
The constraint operators for delete, apply, copy and copy to selected were missing null checks and could crash blender when called wrongly from the python api. Differential Revision: http://developer.blender.org/D14195
2022-02-28Cleanup: Rename geometry set "curve" functions to "curves"Hans Goudey
Ref T95355
2022-02-28Geometry Nodes: Begin conversion to new curvesHans Goudey
This commit changes `CurveComponent` to store the new curve type by adding conversions to and from `CurveEval` in most nodes. This will temporarily make performance of curves in geometry nodes much worse, but as functionality is implemented for the new type and it is used in more places, performance will become better than before. We still use `CurveEval` for drawing curves, because the new `Curves` data-block has no evaluated points yet. So the `Curve` ID is still generated for rendering in the same way as before. It's also still needed for drawing curve object edit mode overlays. The old curve component isn't removed yet, because it is still used to implement the conversions to and from `CurveEval`. A few more attributes are added to make this possible: - `nurbs_weight`: The weight for each control point on NURBS curves. - `nurbs_order`: The order of the NURBS curve - `knots_mode`: Necessary for conversion, not defined yet. - `handle_type_{left/right}`: An 8 bit integer attribute. Differential Revision: https://developer.blender.org/D14145
2022-02-28Fix T96073: Don't remove links when inserting reroute nodesJacques Lucke
This was an oversight in rB06ac5992618a75c453e495e06af7c5faf30499a7.
2022-02-28Cleanup: Remove duplicated commentJulian Eisel
Something went wrong here in 61776befc3f8.
2022-02-28Cleanup: Move mesh_validate.c to C++Hans Goudey
This patch was tested on the build bots on all platforms.
2022-02-28Merge branch 'blender-v3.1-release'Bastien Montagne
2022-02-28Fix T96048: Crash on appending with driver variables loop in shapekeys.Bastien Montagne
The usual 'shape keys snowflake' nightmare again...
2022-02-28Fix T95506: Separate strings for "Back" (operator).Bastien Montagne
Add a new `EDITOR_VIEW3D` context to those view orientations.
2022-02-2818n: Add new `EDITOR_VIEW3D` translation context.Bastien Montagne
2022-02-28WM: Allow drop-box polls to use context from UIJulian Eisel
The UI context was only set for the operator polls, but not for the drop-box polls. Initially I thought this wouldn't be needed since the drop-boxes should leave up context polls to the operator, but in practice that may not be what API users expect. Plus the tooltip for the drop-boxes will likely have to access context anyway, so they should be able to check it beforehand.
2022-02-28Animation: Sensible frame range for motion pathsColin Marmont
Motion paths can now be initialised to more sensible frame ranges, rather than simply 1-250: - Scene Frame Range - Selected Keyframes - All Keyframes The Motion Paths operators are now also added to the Object context menu and the Dopesheet context menu. The scene range operator was removed, because the operators now automatically find the range when baking the motion paths. The clear operator now appears separated in "Selected Only" and "All", because it was not clear for the user what the button was doing. Reviewed By: sybren, looch Maniphest Tasks: T93047 Differential Revision: https://developer.blender.org/D13687
2022-02-28Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-28Fix T96054: Switching vertex group does not update displaySergey Sharybin
Caused by 0f89bcdbebf5 and was not fully addressed by 6f9828289f39: tagging an ID with flag 0 is to be seen as an explicit tag for copy on write. Would be nice to either consolidate code paths of flag 0 and explicit component tag, or get rid of tagging with 0 flag, but that is above of what we can do for the upcoming release.
2022-02-28Fix compilation warning.Jeroen Bakker
2022-02-28Fix T95298: Multiview images not displaying correctly.Jeroen Bakker
Image users have a multi_index that wasn't updated in case it is a normal image.
2022-02-28Fix T95992: Crash Ancored strokes 2d texture painting.Jeroen Bakker
When using ancored stroked the diameter of the stroke can be 0 what leads to a division by zero that on certain platforms wrap to a large negative number that cannot be looked up. This fix will clamp the size of the brush to 1.
2022-02-28Fix T95981: Remove implicit conversion in texture paint shader.Jeroen Bakker
This fixes a crash on selected platforms.
2022-02-28Event System: drag events now use modifier state on drag startCampbell Barton
Now drag & tweak can have modifier keys to be released while dragging. without this, modifier keys needs to be held which is more noticeable for tablet input or whenever the drag threshold is set to a large value. Resolves T89989.
2022-02-28Fix: Crash in Duplicate ElementJohnny Matthews
Return early if a curve has a domain size of 0. T96060
2022-02-27Fix: Incorrect assert in curves codeHans Goudey
The attribute data might be null if the number of curves is zero. While that is not common, an empty curves data-block is valid.
2022-02-26Merge branch 'blender-v3.1-release'Germano Cavalcante
2022-02-26Ghost/Event System: Support mapping more keysGermano Cavalcante
This fixes T93051, T76405 and maybe others. Characters like '²', '<' are not recognized in Blender's shortcut keys. And sometimes simple buttons like {key .} and {key /} on the Windows keyboard, although the symbol is "known", Blender also doesn't detect for shortcuts. For Windows, some of the symbols represented by `VK_OEM_[1-8]` values, depending on the language, are not mapped by Blender. On Mac there is a fallback reading the "actual character value of the 'remappable' keys". But sometimes the character is not mapped either. On Windows, the solution now mimics the Mac and tries to read the button's character as a fallback. For unmapped characters ('²', '<', '\''), now another value is chosen as a substitute. More "substitutes" may be added over time. Differential Revision: https://developer.blender.org/D14149
2022-02-26UI: Use title case for labelsAaron Carlisle
2022-02-26Cleanup: typos in comments.Kévin Dietrich
2022-02-26Cleanup: Mesh normal calculation comments and logicHans Goudey
Some logic and comments in the vertex normal calculation were left over from when normals were stored in MVert, before cfa53e0fbeed7178c7. Normals are never allocated and freed locally anymore.
2022-02-26Merge branch 'blender-v3.1-release'Hans Goudey
2022-02-26Fix: Failing OBJ export tests due to mesh normals commitHans Goudey
In some cases, the normal edit modifier calculated the normals on one mesh with the "ensure" functions, then copied the mesh and retrieved the layers "for write" on the copy. Since 59343ee1627f4c369e23, normal layers are never copied, and normals are allocated with malloc instead of calloc, so the mutable memory was uninitialized. Fix by calculating normals on the correct mesh, and also add a warning to the "for write" functions in the header.
2022-02-26Fix T93123: viewport lags with custom attributesKévin Dietrich
The check to see if newly requested attributes are not already in the cache was not taking into account the possibility that we do not have new requested attributes (`num_requests == 0`). In this case, if `attr_used` already had attributes, but `attr_requested` is empty, we would consider the cache as dirty, and needlessly rebuild the attribute VBOs.
2022-02-26Fix compile warning from earlier commit.Kévin Dietrich
2022-02-25Merge remote-tracking branch 'origin/blender-v3.1-release'Kévin Dietrich
2022-02-25Disable GPU subdivision if autosmooth or split normals are usedKévin Dietrich
These features are complicated to support on GPU and hardly compatible with subdivision in the first place. In the future, with T68891 and T68893, subdivision and custom smooth shading will be separate workflows. For now, and to better prepare for this future (although long term plan), we should discourage workflows mixing subdivision and custom smooth normals, and as such, this disables GPU subdivision when autosmoothing or custom split normals are used. This also adds a message in the modifier's UI to indicate that GPU subdivision will be disabled if autosmooth or custom split normals are used on the mesh. Differential Revision: https://developer.blender.org/D14194
2022-02-25Fix different shading between CPU and GPU subdivisionKévin Dietrich
Reuse the same vertex normals calculation as for the GPU code, by weighing each vertex normals by the angle of the edges incident to the vertex on the face. Additionally, remove limit normals, as the CPU code does not use them either, and would also cause different shading issues when limit surface is used. Fixes T95242: shade smooth artifacts with edge crease and limit surface Fixes T94919: subdivision, different shading between CPU and GPU
2022-02-25Fix T95977: Point Info node radius wrong under rotationBrecht Van Lommel
2022-02-25Fix: Only possible to create one 8 bit integer attributeHans Goudey
The custom data code checks for `LayerTypeInfo.defaultname` before adding a second layer with a certain type. This was missed in e7912dfa1959be671f77e4e67eab. In practice, this default name is not actually used.
2022-02-25Fix T94396: USD errors opening saved scenes.Michael Kowalski
Added call to ensure that the USD plugins are registered when opening a USD cache archive. This is to avoid USD load errors due to missing USD file format plugins when opening blender files that contain USD transform cache constraints and mesh sequence cache modifilers. Fixes T94396
2022-02-25Merge branch 'blender-v3.1-release'Bastien Montagne