Blender Git Loki

Git Commits -> Revision 94e180b

Revision 94e180b by Sybren A. Stüvel (master)
February 21, 2020, 10:16 (GMT)
Fix: Drivers on hide_viewport and hide_render throw warnings

This partially fixes T73593.

The `add_relation(driver_key, property_entry_key, ...);` call can fail
in the following situation:

- A collection is linked, and instanced into the scene by an Empty.
- The collection contains an object with a driver on its `hide_render` or
`hide_viewport` property.

As the object doesn't exist as a real object in the scene, it's added with
`base_index=-1` to the depsgraph (see `DepsgraphNodeBuilder::build_collection()`).
As a result the node for syncing the restrictflags back to the base
isn't present in the depsgraph, and the `add_relation()` call failed.

This commit fixes the warning, simply by not attempting to add the
offending relation.

Commit Details:

Full Hash: 94e180bd806ab3b21db07afe4962de666b407217
Parent Commit: be2bc97
Lines Changed: +5, -1

1 Modified Path:

/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021