Page MenuHome

Addons: Adopt for Dependency Graph API changes
ClosedPublic

Authored by Sergey Sharybin (sergey) on May 15 2019, 2:13 PM.

Details

Summary

Mainly search-and-replace approach.

Tested the enabled-by-default export/import addons. Seems to work with
an exception of X3D which is still referencing Blender Internal material
properties.

Diff Detail

Repository
rBA Blender Add-ons
Branch
depsgraph_api
Build Status
Buildable 3591
Build 3591: arc lint + arc unit

Event Timeline

Seems fine, but hard to say without looking deeper into each case.

render_povray/render.py
2680

Since this is a RenderEngine, this should get the depsgraph through the render(self, depsgraph) method.

This part of the add-on code has not actually been updated for 2.80 yet, so you could leave a comment about it.

This revision is now accepted and ready to land.May 15 2019, 2:29 PM

Added comment to PovRay

Noticed some issue in FBX. Namely, the original patch was always using
original object. When using proper evaluated one the materials mapping
and armatures broke.

Materials were simple to address: simply ensure we use original pointers
to compare material indices.

Armature is a bit more tricky: disabling armature modifier will make it
so vertex groups are not present in the evaluated mesh.

Simple idea now: put armature to a rest pose instead of disabling the
modifier.

This could end up in more updates than it is strictly speaking needed,
but this seems to be simplest way of moving forward with this patch set.

In the future we can support either custom data masks given via dependency
graph API, or we can modify the entire scene first, then do export of
meshes (as opposite of making one change and updating immediately).

This revision was automatically updated to reflect the committed changes.