Blender Git Commits

Blender Git "master" branch commits.

Page: 435 / 5574

January 13, 2021, 11:44 (GMT)
Geometry Nodes: improve Point Distribute node

This greatly simplifies the Point Distribute node. For a poisson disk
distribution, it now uses a simpler dart throwing variant. This results
in a slightly lower quality poisson disk distribution, but it still
fulfills our requirements: have a max density, minimum distance input
and stability while painting the density attribute.

This new implementation has a number of benefits over the old one:
* Much less and more readable code.
* Easier to extend with other distribution algorithms.
* Easier to transfer more attributes to the generated points later on.
* More predictable output when changing the max density and min distance.
* Works in 3d, so no projection on the xy plane is necessary.

This is related to T84640.

Differential Revision: https://developer.blender.org/D10104
January 13, 2021, 11:27 (GMT)
Geometry Nodes: cleanup attribute usage

Now that typed attribute wrappers don't need to own the
attribute anymore, many `std::move` calls can be removed.
January 13, 2021, 11:13 (GMT)
Depsgraph: Remove redundant copy-on-write operations

This change removes copy-on-write operations from ID nodes which do not
need copy-on-write.

Should be no functional changes, as before the copy-on-write operation
would do nothing for those nodes anyway.
January 13, 2021, 11:13 (GMT)
Fix T83411: Crash when using a workspace/layout data path in a driver

Building IDs which are not covered by copy-on-write process was not
implemented, which was causing parameters block not present, and, hence
causing crashes in areas which expected parameters to present.

First part of this change is related on making it so Copy-on-Write is
optional for ID nodes in the dependency graph.

Second part is related on using a generic builder for all ID types
which were not covered by Copy-on-Write before.

The final part is related on making it so build_id() is properly
handling ParticleSettings and Grease Pencil Data. Before they were not
covered there at all, and they need special handling because they do
have own build functions.

Not sure it worth trying to split those parts, as they are related to
each other and are not really possible to be tested standalone. Open
for a second opinion though.

Possible nut-tightening is to re-organize build_id() function so
that every branch does return and have an assert at the end, so that
missing ID type in the switch statement is easier to spot even when
using compilers which do not report missing switch cases.

As for question "why not use default" the answer is: to make it more
explicit and clear what is a decision when adding new ID types. We do
not want to quietly fall-back to a non-copy-on-write case for a newly
added ID types.

Differential Revision: https://developer.blender.org/D10075
January 13, 2021, 11:12 (GMT)
Fix: popout windows are sized incorrectly on high DPI screens

There should be a conversion to native pixel size as expected by GHOST at the
window manager level, the dimensions at screen level do not need a conversion.

Differential Revision: https://developer.blender.org/D9976
January 13, 2021, 11:12 (GMT)
Fix Cycles not taking into account CYCLES_SHADER_PATH for finding stdcycles.h

Contributed by howetuft.

Differential Revision: https://developer.blender.org/D9973
January 13, 2021, 11:09 (GMT)
RNA: fix a crash when setting bare IDProperty pointers.

The rna_idproperty_check call should be done before accessing
the prop pointer so that it can detect IDProperty values and
replace them with the actual PointerPropertyRNA object.

Ref D10098
January 13, 2021, 11:09 (GMT)
RNA: allow editing pointer IDProperty values from the UI.

Currently it is not possible to edit bare IDProperty pointer
values which are not explicitly defined through python via
UI fields. This is likely mostly because, unlike numeric values,
pointers aren't marked PROP_EDITABLE by default. However there
are also some bugs in the RNA code that need fixing.

The Geometry Nodes modifier uses bare properties to store
input settings for the node group it wraps, so supporting
Object and Collection sockets requires editable pointers.

This patch marks bare IDProperties editable, and ensures
that changing ID pointers rebuilds the dependency graph.
A type check is needed because an IDPROPERTY PointerPropertyRNA
can actually wrap a group value rather than an ID pointer.

Making pointers editable is not likely to accidentally
affect UI fields that were not intended to be editable,
because a simple `layout.prop` cannot determine which
datablocks to display in the menu and remains read-only.

The PROP_NEVER_UNLINK flag is also removed: it seems it
was added because the edit field that couldn't produce
a menu to set the pointer used to still display the unlink
button, but that seems not to be the case anymore.

Actual support for Object & Collection inputs in the modifier
is added in D10056, which can be used to test this code.

Differential Revision: https://developer.blender.org/D10098
January 13, 2021, 11:07 (GMT)
Fix T84646: Compositor: In Blender 292 "Set Alpha" node is undefined

Incorrect version code introduced by 9dbea1db66da would not check inside
node groups.
Revision aed5b88 by Julian Eisel
January 13, 2021, 10:10 (GMT)
Asset System: Disable Asset Browser as experimental feature

The Asset Browser will be disabled and not available for the 2.92 release. In
alpha/beta builds, there will be an "Asset Browser" option under Preferences >
Experimental, if the developer extras are enabled.
Note that this also disables related UI elements (e.g. "Mark Asset" buttons,
Preferences settings for asset libraries, etc.).

The code is still in master of course, development and testing will continue
there. But there simply needs to be too much polishing and fixing before the
2.92 release, plus there are some design decisions to be reevaluated.

Check the milestone 1 project to follow ongoing work:
https://developer.blender.org/project/view/124/
January 13, 2021, 10:04 (GMT)
Compositor: "Save as Render" for the file output node

This commit adds the "Save as Render" feature to the file output node,
that allows to disable the application of the configured view transform
and other color management settings on the image. If disable it uses
the standard view transform instead. This feature was originally
suggested in T83842 and is part of the color management improvements
task in T68926. With this feature it is possible to toggle the
application of the color management settings for each input socket
of the File Output node individually.

Reviewed By: brecht

Maniphest Tasks: T68926, T83842

Differential Revision: https://developer.blender.org/D9921
January 13, 2021, 09:48 (GMT)
Geometry Nodes: support optional ownership for typed attributes

This will simplify some code in an upcoming commit and will be
useful for T83793.
January 13, 2021, 08:58 (GMT)
Cleanup: rename enum for event value items

This contains all value items (with overlapping values),
name this to make it clear it contains all items.
January 13, 2021, 08:56 (GMT)
Fix WM_event_print error printing tweak events value
January 13, 2021, 08:56 (GMT)
Fix Event.value RNA access with tweak event types

Accessing event.value would return unrelated values such as
PRESS, RELEASE, CLICK... etc. instead of NORTH, SOUTH... etc.
January 13, 2021, 08:49 (GMT)
Fluid: Updated Mantaflow source files

Includes minor fixes / cleanups from the viscosity plugin.
Revision 3f7c294 by Hans Goudey
January 13, 2021, 05:54 (GMT)
Mix modifiers test after commit to bevel modifier defaults

{rB6b5e4ad5899d} neglected to update the modifier tests to reflect
the fact that the default limit method is no longer "NONE".
January 13, 2021, 05:41 (GMT)
Cleanup: use single quotes for enum literals
January 13, 2021, 05:23 (GMT)
Fix memory leak with image drag and drop

Dragging an image from the file selector into the sequencer
was leaking memory.

Regression in b5d778a7d4072bfb091198a2094890157a6d017b.
Revision 5d99199 by Philipp Oeser / Campbell Barton
January 13, 2021, 02:37 (GMT)
Fix T83084: Smart UV Project inverts the resulting UVs

Caused by 850234c1b10a828678f1b91001f2731db807f7e2,

Flip the normal to avoid flipped projection.
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021