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-01Fix 3d texture painting artifacts.Jeroen Bakker
When dimension of images aren't a multifold of 256 parts of the gpu textures are not updated. This patch will calculate the correct part of the image that needs to be reuploaded.
2022-03-01Fix painting on none 256 aligned images.Jeroen Bakker
Internally the update tiles are 256x256. Due to some miscalculations tiles were not generated correctly if the dimension of the image wasn't a multifold of 256.
2022-03-01Fix crash triggered by an introduced assert.Jeroen Bakker
2022-03-01Fix building error in previous commit.Jeroen Bakker
2022-03-01Image Engine: Performance 8 byte images.Jeroen Bakker
Previously we used to cache a float image representation of the image in rect_float. This adds some incorrect behavior as many areas only expect one of these buffers to be used. This patch stores float buffers inside the image engine. This is done per instance. In the future we should consider making a global cache.
2022-03-01Cleanup: remove unused codeCampbell Barton
2022-03-01Merge branch 'blender-v3.1-release'Aaron Carlisle
2022-03-01Cmake: Re-enable tissue add-onAaron Carlisle
This add-on now conforms to the distribution requirements, see: T95442.
2022-03-01Cleanup: move Event.is_repeat & is_direction_inverted to flagsCampbell Barton
Use a flag for events to avoid adding struct members every time a new kind of tag is needed - so events remain small. This also simplifies copying settings as flags can be copied at once with a mask.
2022-03-01Cleanup: ED_view3d_win_to_delta & ED_view3d_calc_zfac usageCampbell Barton
- Rename ED_view3d_win_to_delta `mval` argument to `xy_delta` as it as it was misleading since this is an screen-space offset not a region relative cursor position (typical use of the name `mval`). Also rename the variable passed to this function which also used the term `mval` in many places. - Re-order the output argument of ED_view3d_win_to_delta last. use an r_ prefix for return arguments. - Document how the `zfac` argument is intended to be used. - Split ED_view3d_calc_zfac into two functions as the `r_flip` argument was only used in some special cases.
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-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-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