Blender Git Loki

Blender Git commits from all branches.

Page: 148 / 2888

August 16, 2021, 04:19 (GMT)
Cleanup: split BKE_mesh_calc_normals_poly function in two

Remove the 'only_face_normals' argument.

- BKE_mesh_calc_normals_poly for polygon normals.
- BKE_mesh_calc_normals_poly_and_vertex for poly and vertex normals.

Order arguments logically:

- Pair array and length arguments.
- Position normal array arguments (to be filled) last.
August 16, 2021, 04:19 (GMT)
Cleanup: code-comments

Use capitalization, remove unnecessary ellipsis.
August 16, 2021, 04:19 (GMT)
Cleanup: remove use of BKE_mesh_calc_normals_mapping_simple

Use BKE_mesh_calc_normals instead of
BKE_mesh_calc_normals_mapping_simple for curve modifier calculation.

This only made sense for derived-mesh which is no longer used.
August 16, 2021, 04:19 (GMT)
Cleanup: remove unused BKE_mesh_calc_normals_mapping functions

This supported calculating normals for MPoly array which was copied to
an MFace aligned array.

Remove the functions entirely since MFace use is being phased out and
these function isn't used anywhere.
August 16, 2021, 04:19 (GMT)
Docs: note that normalize_v# functions zero out input containing nan
August 16, 2021, 04:19 (GMT)
Mesh: replace saacos with acosf for normal calculation

The clamped version of acos isn't needed as degenerate (nan) coordinates
result in zeroed vectors which don't need clamping.
August 16, 2021, 04:19 (GMT)
PyAPI: remove the .py extension requirement for startup registration

This was left over from when these scripts were loaded as modules,
where their names needed to be compatible with Pythons module naming.

Version patch existing files so text with register enabled
without a `.py` extension wont start executing on startup.

Resolves T89532.
August 16, 2021, 04:19 (GMT)
Docs: tooltip update missing from 3e775a4fc57cfd48954adcf284354312f34d5412
August 16, 2021, 04:19 (GMT)
Cleanup: remove unused draw_gpencil_channel.

Code is integrated with draw_scene_channel since 2.80.
August 16, 2021, 04:19 (GMT)
Keyframe: Reduce GPU context switches.

This change reduces the GPU context switches when drawing keyframes.
In the previous situation the keyframe blocks and keyframe keys were
drawn per channel. With this patch first all the keyframe blocks are
drawn for all channels and after that the keyframe keys are collected
for all channels and send to the GPU in a single draw call.
August 16, 2021, 04:19 (GMT)
Fix T89984: Improve Icon previews reflective and transmissive materials.

Before this commit rendering material icons the floor will is hidden.
This reduces the readability of reflective/refractive materials.

check patch for additional screenshots and notes.

This patch will switch the floor material that uses ray visibility tricks to render a floor for reflective rays.

Eevee uses screen space reflections that makes this a different problem. There is nothing else drawn in
the scene in screen space so we need a different trick. Using math we convert a reflective ray to UV space
and generate a world that projects a checker pattern to infinity.

As now the floor is in the world it is being reflected via
a cubemap. As the film is transparent the background (including the floor isn't rendered)

In the future when Eevee supports vulkan raytracing we can re-evaluate and perhaps remove this
approximation.

We tried lightprobes but that wasn't able to do the trick.
Using the compositor would lead to more memory usage (render layers and intermediate buffers) and slower performance.
Solution has been validated with Simon

Reviewed By: sybren, Severin

Differential Revision: https://developer.blender.org/D11988
August 16, 2021, 04:19 (GMT)
BLF: Do Not Cache Unused Rendered Glyphs

The loading of a font size or style renders bitmaps of the characters
0-255 and stores them in a cache. But glyphs 128-255 in this cache are
not accessible. What used to be ansi high-bit characters are now multi-
byte UTF-8 sequences.

Therefore this patch reduces the glyph_ascii_table size to 128 and
only caches characters 32-127, the visible portion of ASCII, which
greatly reduces the time to load a font.

See D12189 for more details.

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

Reviewed by Campbell Barton
August 16, 2021, 04:19 (GMT)
Fix: DNA struct alignment on 32 bit

Some of the dna structs were not properly
aligned for 32 bit builds causing issues
for some of the 32 platforms Debian builds
for.

Reviewed By: sergey, brecht
Differential Revision: https://developer.blender.org/D9389
August 16, 2021, 04:19 (GMT)
Makesdna: Fix detecting 32 bit padding issues.

Makesdna fails to detect issues in 32 bit code that can
only be resolved by adding a padding pointer.

We never noticed since we ourselves no longer build for
32 bit, but debian's 32 bit builds got bitten by this

A rather extensive explanation on why this is alignment
requirement is there can be found in this comment:

https://developer.blender.org/D9389#233034

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

Reviewed by: sergey, campbellbarton
August 16, 2021, 04:19 (GMT)
Cleanup: remove *.orig file from 6a9d7139f7d05e0c51827a3a4b862c0547dc0513
August 16, 2021, 04:19 (GMT)
Cleanup: use C++ style comments for disabled code
August 16, 2021, 04:19 (GMT)
Cleanup: spelling in comments
August 16, 2021, 04:19 (GMT)
Cleanup: use parameters struct for wm_homefile_read

Also add wm_homefile_read_ex which is only needed for the first
execution at startup.
August 16, 2021, 04:19 (GMT)
Fix T89046: Startup file with Python drivers crashes on load

Resolve order of initialization error reading startup file,
support postponing running wm_file_read_post until Blender
has been initialized.

Deferring updates allows duplicate initialization
to be removed from WM_init.

Reviewed By: mont29

Ref D12184
August 16, 2021, 04:19 (GMT)
Cleanup: comments/disabled code

- Remove old comment for editors with weak syntax highlighting.
- Remove disabled code to initialize Blender with a file path.
- Remove file name references to function names since these
were outdated, modern development environments can look up this info.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021