Blender Git Commits

Blender Git "master" branch commits.

Page: 694 / 5574

July 3, 2020, 15:10 (GMT)
Clang-Tidy: Enable bugprone-misplaced-widening-cast
July 3, 2020, 15:07 (GMT)
Clang-Tidy: enable readability-named-parameter
July 3, 2020, 15:01 (GMT)
Fix utterly broken code regarding GPUtextures of MovieClip in readfile.c

Treat those as pure runtime code, reset to NULL by reading code, for
now.

Think those could be handled like Image gputextures (i.e. considered
runtime cache and preserved across undo steps), but probably not
critical for now.
July 3, 2020, 15:01 (GMT)
Move MovieClip to new undo cache management system.
July 3, 2020, 14:54 (GMT)
Clang-Tidy: enable bugprone-too-small-loop-variable
July 3, 2020, 14:48 (GMT)
Clang-Tidy: enable bugprone-assert-side-effect

Looks like we have no assertions with side effects.
July 3, 2020, 14:47 (GMT)
Clang-Tidy: More fixed of redundant check before delete

For some reason got unnoticed in the original cleanup pass.
July 3, 2020, 14:39 (GMT)
Clang-Tidy: enable bugprone-argument-comment

It was called `inverted` in the header.
Revision f4fdb8e by Hans Goudey
July 3, 2020, 14:38 (GMT)
Cleanup: Remove redundant logic
Revision f66aafa by Hans Goudey
July 3, 2020, 14:37 (GMT)
Fix memory leak when dragging shaderfx
July 3, 2020, 14:32 (GMT)
Clang-Tidy: Fix readability-delete-null-pointer warnings

Also enable it in the configuration.
Revision 53d41e1 by Hans Goudey
July 3, 2020, 14:28 (GMT)
UI: Use sliders and [0, 1] ranges in ocean modifier

The ocean modifier has two properties that use a [0, 10] hard min and
hard max. The values act as factors though, so it makes more sense to
use sliders and a 0 to 1 range.

This commit also bumps the file subversion to avoid repeatedly applying
the change to the properties' range.

Differential Revision: https://developer.blender.org/D8186
July 3, 2020, 14:15 (GMT)
Cleanup: Editors/Sculpt/Paint, Clang-Tidy else-after-return fixes

This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/sculpt_paint` module.

No functional changes.
July 3, 2020, 14:15 (GMT)
Cleanup: Editors/Screen, Clang-Tidy else-after-return fixes

This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/screen` module.

No functional changes.
July 3, 2020, 14:15 (GMT)
Cleanup: Explicit return in each `else if` block in `ed_screen_context()`

The `ed_screen_context()` function is approximately 700 lines long, and
its main structure is a huge chain of `else if` statements. Some of the
bodies did not return, but rather fell through and relied on the `return
-1;` at the bottom of the function. This means that in order to truly
understand what is going on in one of those `else if` blocks, it could
be required to scroll past all the following `else if` blocks,
double-checking that they all had an `else`, and then see what happens
below.

By adding explicit `return -1;` everywhere this happened, this is all
avoided, increasing local understandability of the code. Furthermore, it
makes the upcoming cleanup with the Clang-Tidy rule
`readability-else-after-return` a lot easier to do.

No functional changes.
July 3, 2020, 14:15 (GMT)
Cleanup: Editors/Object, Clang-Tidy else-after-return fixes

This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/object` module.

No functional changes.
July 3, 2020, 14:15 (GMT)
Cleanup: Editors/Mesh, Clang-Tidy else-after-return fixes

This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/mesh` module.

No functional changes.
July 3, 2020, 14:15 (GMT)
Cleanup: Editors/Armature, Clang-Tidy else-after-return fixes

This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/armature` module.

No functional changes.
July 3, 2020, 14:15 (GMT)
Cleanup: Editors/Animation, Clang-Tidy else-after-return fixes

This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/editors/animation` module.

No functional changes.
July 3, 2020, 14:13 (GMT)
Fix Pose Brush crashing after disabling connected only in FK mode

This function was returning the ik_chain before disabling the
fake_neighbors, so when the brush was used again with fake neighbors
disabled after rebuilding the PBVH and free them, they were still
enabled in the SculptSession, causing a the crash.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D8195
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021