Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 533 / 5574

October 19, 2020, 15:43 (GMT)
Spelling: Then Versus Than

Corrects incorrect usages of the words 'then' and 'than'.

Differential Revision: https://developer.blender.org/D9246

Reviewed by Campbell Barton
October 19, 2020, 15:12 (GMT)
Spelling: It's Versus Its

Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required.

Differential Revision: https://developer.blender.org/D9250

Reviewed by Campbell Barton
Revision d2bf71b by Hans Goudey
October 19, 2020, 14:19 (GMT)
Fix use of uninitialized variable
Revision 7ef3a63 by Hans Goudey
October 19, 2020, 14:17 (GMT)
Cleanup: Use BLI string functions

It's better not to assume that strings passed as arguments
will have the proper size.
Revision 9bf1bf5 by Julian Eisel
October 19, 2020, 13:38 (GMT)
Cleanup: Missing parentheses around macro in versioning

Although the `ELEM` macro wraps logic into parentheses, it's not intended to be
used that way. Unexpanded macros should still follow regular coding style for
readability and for tools parsing the code (it confused clang-format for
example).
Revision 8312485 by Ankit Meel
October 19, 2020, 13:17 (GMT)
Cmake/macOS: strictly disallow searching in frameworks

This is a stricter version of the change made in
{rBbb872b25f219d1a9bc2446228b6dc}

Cmake must never look into Frameworks when the system
library guards (`without_system_libs_begin`/`without_system_libs_end`)
are present.

OpenAL didn't follow this and OpenAL.framework in Xcode would be used.
The Cmake's `FindOpenAL.cmake` looks for both library (in this case,
the .framework file), and include dir.
Precompiled libraries don't contain the former. So `find_package`
cannot be used, or it becomes the hack that {rBb2c707747da9} removed.
So hardcode the include dir path, and other variables.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D9267
Revision 4d9f357 by Campbell Barton
October 19, 2020, 13:09 (GMT)
Fix T81806: Cycles error when GPU device_type is NONE

Own regression in 4bea4702d5d5a
October 19, 2020, 13:01 (GMT)
Fix T81484: Weight/Vertex paint with mirror and viewport clipping does not update stroke on initial side

Issue introduced in rB4f616c93f7cb.

Issue here is that the the `StrokeCache` `mirror_symmetry_pass` is still
in its previous state when entering
`wpaint_do_symmetrical_brush_actions`.
For the initial stroke this means that the (wrong) cache
`mirror_symmetry_pass` ends up in SculptBrushTest `mirror_symmetry_pass`
as well and thus the clipping test in `sculpt_brush_test_clipping` will
fail.
[ This one flips the coords to test against clipping according to (now
wrong) `mirror_symmetry_pass` ]

Solution seems simple: just ensure we start of with a
`mirror_symmetry_pass` of zero in `wpaint_do_symmetrical_brush_actions`
for the initial stroke.
Same thing is done for vertex paint as well.

Maniphest Tasks: T81484

Differential Revision: https://developer.blender.org/D9268
October 19, 2020, 12:02 (GMT)
Animation: Improve labels on Snap menu in graph editor

Add "Selection to" as prefix for those menu items that move the selected
keyframes to something, for both the Key ? Snap menu and the Shift+S pie
menu.

No functional changes.
October 19, 2020, 11:06 (GMT)
Fix libmv eigen alignment issues when compiling with AVX support

There would be eigen alignment issues with the custom libmv vector
class when compiling with AVX optimizations. This would lead to
segfaults.

Simply use the std::vector base class as suggested by the old TODO in
the class header.

Reviewed By: Sergey

Differential Revision: https://developer.blender.org/D8968
October 19, 2020, 10:54 (GMT)
Silence an unused variable warning in bmesh_bevel.c.
October 19, 2020, 10:50 (GMT)
Fix (unreported) crash when unlinking a brush from a tool.

Cursor drawing code was not checking for potential NULL pointers.
October 19, 2020, 10:28 (GMT)
Fix: skip drawing input sockets that do not have a draw method

Contributed by @povmaniaco with minor changes by me.

Differential Revision: https://developer.blender.org/D9263
October 19, 2020, 10:12 (GMT)
Volumes: new Volume to Mesh modifier

This modifier is the opposite of the recently added Mesh to Volume modifier.
It converts the "surface" of a volume into a mesh. The "surface" is defined
by a threshold value. All voxels with a density higher than the threshold
are considered to be inside the volume, while all others will be outside.

By default, the resolution of the generated mesh depends on the voxel
size of the volume grid. The resolution can be customized. It should be
noted that a lower resolution might not make this modifier faster. This
is because we have to downsample the openvdb grid, which isn't a cheap
operation.

Converting a mesh to a volume and then back to a mesh is possible,
but it does require two separate mesh objects for now.

Reviewers: brecht

Differential Revision: https://developer.blender.org/D9141
October 19, 2020, 09:35 (GMT)
Cleanup: clang tidy
October 19, 2020, 09:29 (GMT)
Image: Export emissive colors in 3 channel PNG images

Related to T81199. When saving a rendered image with transparency (RGBA)
to a 3 channel PNG image the emissive colors were not exported. This
change adds the emissive colors to the written file.

NOTE: this does not fix the limitation of writing emissive colors to a 4
channel PNG file as the file format does not support this.
October 19, 2020, 07:27 (GMT)
Cleanup: spelling in comments

Fixed a couple of typos in comments in CMakeLists.txt and GNUmakefile

Reviewed By: #platforms_builds_tests, mont29

Differential Revision: https://developer.blender.org/D9261
October 19, 2020, 06:14 (GMT)
Fix T81167: Texture Painting with Paint mask enabled, (de)selecting faces causes a mess with texture slots

Issue caused by {9582797d4b50} in b2.90. The surface per material used
an index buffer owned by the batch. These index buffers are created at
the same time the surface tris index buffer was created. When a material
per batch buffer was invalidated it used the surface tris index buffer
rendering all materials on all surfaces making the last draw command
render succeed.

This patch stores the surface tris per material in the cache so they can
be reused. There is also no need to use the `saved_elem_ranges` anymore as they are
now part of the cache.

The ugly bit of the implementation is that in `extract_tris_finish` the
MeshBufferCache is retrieved. But as this part was already documented as
a hack and it is something that is only used for final meshes. Other
solutions would impact performance or made the fix not condensed
(passing parameters that shouldn't be used).

Reviewed By: Cl�ment Foucault

Differential Revision: https://developer.blender.org/D9136
October 19, 2020, 05:17 (GMT)
Fix T68343: Rendered video plays at 600fps

Field time_base of video stream must be set for some containers,
otherwise avformat_write_header() will set it to default values.
Rendered file in such case won't be played at desired frame rate.

See init_muxer() in mux.c in ffpmeg sources.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D9213
Revision 94364be by Hans Goudey
October 19, 2020, 03:18 (GMT)
Fix ASAN warning after recent cleanup

rB78a5895c96 introduced a "use after scope" warning, where a buffer
from a lower scope was used later. The solution is to only use one
variable and store whether to use it more explicitely with a bool.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021