Blender Git Commits

Blender Git "master" branch commits.

Page: 1085 / 5574

August 16, 2019, 12:01 (GMT)
build_env: Added OpenImageDenoise to install_deps.sh

Building OIDN still needs to be enabled explicitly with --with-oidn.
It will fail with older versions of CMake or TBB, so I can't make
any guarantees for various Linux distributions or versions.
August 16, 2019, 11:58 (GMT)
Fix T68710: crash on applying modifier after removing all shape keys

This was a mistake in rB87629b2a7443

`BKE_object_shapekey_free` would never return `true`, so DEG updates
would not happen...
So `ob->shapenr` was not up-to-date etc., leading to crash in
`BKE_mesh_nomain_to_mesh` shapekey handling...

Reviewers: brecht

Maniphest Tasks: T68710

Differential Revision: https://developer.blender.org/D5501
August 16, 2019, 10:44 (GMT)
Cleanup: fix compiler warnings
August 16, 2019, 08:35 (GMT)
Transform: use a kd-tree to calculate proportional distances

While speedup is non-linear, it gives ~30% speedup for ~6 million verts.

D3993 by @Al with edits.
August 15, 2019, 21:07 (GMT)
Outliner: only activate outliner items when clicking on icon/text

This is 2.7x behavior, while there are plans to improve on this,
committing in case larger changes take longer.

Without this it's not easy to select object data without changing modes.

See D5493
August 15, 2019, 20:44 (GMT)
WM: reuse visible region calculation

Avoids calculating the visible part of a region whenever
on-screen overlays are drawn.
August 15, 2019, 20:44 (GMT)
Cleanup: use boolean
August 15, 2019, 20:08 (GMT)
Fix check that validates a selection index
August 15, 2019, 19:43 (GMT)
Windows/MSI: Rework MSI installer.

The installer always upgraded the last version installed and did not allow for two versions to be installed side by side.

The reworked installer will allow side by side installs

install order:
```
2.81 -> 2.81a -> 2.82 : Allowed , will result in both 2.82 and 2.81a being installed
2.82 -> 2.81 -> 2.81a : Allowed , will result in both 2.82 and 2.81a being installed
2.82 -> 2.81a : Allowed , will result in both 2.82 and 2.81a being installed
2.82 -> 2.81a -> 2.81 : Not Allowed, 2.81 will only install if you manually remove 2.81a first.
```

Do note though that this will not apply to any previously issued installers and even for 2.80a this is not something we can fix.

This patch is for landing in 2.81 *only* and should be excluded from any possible 2.80a release.

Second change is a change to the compression level, building the MSI takes 30 minutes, which is crazy, perhaps worth it if the compression actually pays of.

```
MSI - none 1:35 247.0 MB (260,025,634 bytes)
MSI - mszip 2:02 89.6 MB ( 94,022,946 bytes)
MSI - low 2:35 81.6 MB ( 85,646,626 bytes)
MSI - medium 4:11 77.3 MB ( 81,136,930 bytes)
MSI - high 28:01 74.7 MB ( 78,384,418 bytes)

zip 1:32 93.2 MB ( 97,732,293 bytes)
7Z 2:22 65.0 MB ( 68,171,614 bytes)
```

It didn't, so I lowered it to medium, seemed reasonable.

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

Reviewers: brecht, jesterking
August 15, 2019, 19:39 (GMT)
Fix T68705: Changing any editor to the properties crashes Blender

Issue introduced (more like exposed) in b7f86ff72273.
August 15, 2019, 16:46 (GMT)
Fix T68689 Fix infinite recursion cause by versioning code

Complex nodetrees could fire infinite recursion with previous algo.
Now using another gset we make sure we can only evaluate a tree once.
August 15, 2019, 16:20 (GMT)
Fix broken text editing of integer number buttons, after recent changes
August 15, 2019, 16:13 (GMT)
Build: enable OpenImageDenoise, now that we have libraries for all platforms

Note that we are still missing an update for install_deps.sh to easily build this
on Linux. Only "make deps" has it for now.
August 15, 2019, 15:59 (GMT)
Cleanup: clang-format, unused arg
August 15, 2019, 15:42 (GMT)
Windows: add cycles debug logging to helper batch file.
August 15, 2019, 15:35 (GMT)
Cleanup: Silence C4115 warning

`'ParticleSystem': named type definition in parentheses`
And prevent the need for struct `Object` to be defined.
August 15, 2019, 15:35 (GMT)
Cleanup: Remove redundant headers
August 15, 2019, 15:27 (GMT)
Fix T56843 : fix case sensitive filenames on win10

When building with case sensitive folders there were some linker errors.
August 15, 2019, 13:31 (GMT)
Edit Mesh Selection: Refactor: Redraw idmap buffer at runtime with only objects inside the rect

But in the future the selection code may also be used in object mode (eg for snapping).
So to avoid using too much VRAM resources, it is good to avoid drawing all objects in the viewport.

The solution was to create an array with only objects that are detected within the selection area.
If the selection operator is modal, objects already detected are not removed from the array until view3d is moved or orbited.
To detect the object, its BoundBox is tested.
Since the Select Engine does not have a dedicated depth texture, whenever a new object is "found" the depth of the objects in the array already drawn is redrawn.

Reviewers: campbellbarton, fclem

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D5435
August 15, 2019, 13:20 (GMT)
DRW: New function DRW_culling_min_max_test

For testing intersection with frustrum planes without having to transform all bound box vertices into global space.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021