Blender Git Loki

Kaikki Blender Git kommitit.

Page: 46 / 8462

December 6, 2021, 16:42 (GMT)
Asset Indexer: use fixed-length string for ID code

Use fixed-length string to convert `char[2]` to `std::string`. Otherwise
`strlen()` is called, which is problematic as the `char[2]` is not
zero-terminated.
December 6, 2021, 16:42 (GMT)
Disable asset indexing in the Asset List

Asset indexing should be disabled, but this was overlooked in the
asset list (used for the pose library in the 3D View).
December 6, 2021, 16:31 (GMT)
Cleanup: remove unnecessary extern template implementations

This technique isn't really necessary anymore, because unity builds
avoid instantiating the same template too many times already.
December 6, 2021, 16:01 (GMT)
VSE: Fix strip with mask modifier not blending

Set `ibuf->planes` to `R_IMF_PLANES_RGBA` because mask modifier adds
transparent areas to image.
December 6, 2021, 16:01 (GMT)
Fix T93314: Thumbnails not drawn with default scale

Decrease threshold for drawing thumbnails.

This was unintended change in daaa43232d34 that was overlooked.
December 6, 2021, 15:46 (GMT)
cmake: fix linking with WITH_X11_XF86VMODE and bfd

Fix typos in the variables of the Xxf86vm libray to fix link failure
with bfd. These variables are defined in platform_unix.cmake.

Reviewed By: zeddb

Differential Revision: https://developer.blender.org/D12911
December 6, 2021, 14:50 (GMT)
Fix T93707: Dragging the tweaked NLA strip causes crash

Earlier code assumed that the active strip was on the active track. This
commit detects when this assumption doesn't hold, and adds a more thorough
search of the active strip.
December 6, 2021, 14:47 (GMT)
Added a better comment to maxUv;
December 6, 2021, 14:39 (GMT)
Fix border for tiled images.
December 6, 2021, 14:20 (GMT)
Fix T93611: Curve modifier crash in editmode in certain situations

Caused by {rB3b6ee8cee708}

Above commit was trying to get the vertexgroup from the mesh that is
passed into `deformVertsEM` (but that can be NULL).
When can it be NULL, when is is non-NULL?
`editbmesh_calc_modifiers` only passes in a non-NULL mesh to
`deformVertsEM` under certain conditions:
- a non-deform-only modifier is handled currently
- a non-deform-only modifier preceeds the current modifier
- a deform-only modifier preceeds the current modifier (and the current
one depends on normals)

So the passed-in mesh cannot be relied on, now get the vertex group from
the context object data (like it was before the culprit commit).

Related commit: rB8f22feefbc20

Maniphest Tasks: T93611

Differential Revision: https://developer.blender.org/D13487
December 6, 2021, 13:45 (GMT)
Fix tile image drawing
December 6, 2021, 12:55 (GMT)
Added Border back.
December 6, 2021, 10:29 (GMT)
Cleanup: remove some temp dev asserts in new link/append code.

No longer needed now that all code uses that new
BKE_blendfile_link_append module, and that instantiation code in
BLO_readfile has been removed.
December 6, 2021, 02:40 (GMT)
Fix T93732: Snap Cursor not working after changing Add Object settings

`g_data_intern.state_default.gzgrp_type` is a very specific member and
cannot be set to default.
December 6, 2021, 02:40 (GMT)
Fix T93388: dropping object on grid in orthogonal view misses the floor plane

`ED_view3d_win_to_3d_on_plane` does not use the `clip_start` and
`clip_end` values of the scene, so the `do_clip` option can be misleading
especially in the orthographic view where the `clip_start` is negative.

For now, don't use the `do_clip` option in orthographic view.
December 5, 2021, 22:47 (GMT)
Shader Nodes: Declare nodes in their own namespace

Follow up on rB1df8abff257030ba79bc23dc321f35494f4d91c5

This puts all static functions in geometry node files into a new
namespace. This allows using unity build which can improve
compile times significantly

- The namespace name is derived from the file name.
That makes it possible to write some tooling that checks the names later on.
The filename extension (cc) is added to the namespace name as well.
This also possibly simplifies tooling but also makes it more obvious that this namespace is specific to a file.
- In the register function of every node, I added a namespace alias namespace `file_ns = blender::nodes::node_shader_*_cc`;.
This avoids some duplication of the file name and may also simplify tooling, because this line is easy to detect.
The name `file_ns` stands for "file namespace" and also indicates that this namespace corresponds to the current file.

In the future some nodes will be split up to separate files and given their own namespace
This will allow function names to be simplified similar to rBfab39440e94

Reviewed By: HooglyBoogly

Differential Revision: https://developer.blender.org/D13480
Revision 0a8a22f by Hans Goudey (master)
December 5, 2021, 22:15 (GMT)
Cleanup: Remove unused next and prev pointers in bNodeType
Revision 9a312ba by Hans Goudey (master)
December 5, 2021, 22:12 (GMT)
Cleanup: Remove unnecesary node type draw callback

As a followup to 338c1060d5d7, apply the same change to the node
drawing callback. This helps to simplify code when the complexity
of a callback isn't necessary right now.
Revision 338c106 by Hans Goudey (master)
December 5, 2021, 21:45 (GMT)
Cleanup: Remove unnecessary node type callbacks for drawing

Currently there are a few callbacks on `bNodeType` that do the same
thing for every node type except reroutes and frame nodes. Having a
callback for basic things complicates code and makes it harder to
understand, and reroutes and frames are special cases in larger way.

Arguably frame nodes shouldn't even be drawn like regular nodes,
given that it adds a case of O(N^2) looping through all nodes.
"Unrolling" the callbacks makes it easier to see what's happening,
and therefore easier to optimize.

Differential Revision: https://developer.blender.org/D13463
December 5, 2021, 21:38 (GMT)
Cleanup: clang-tidy: modernize-redundant-void-arg

This change follows up on recent c --> c++ conversions
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021