Page MenuHome

Archipack thumbnail generation - Access shader node by name instead of index
ClosedPublic

Authored by Robert Guetzkow (rjg) on Apr 4 2020, 11:54 PM.

Diff Detail

Repository
rBA Blender Add-ons
Branch
2020-04-04-fix-archipack-thumb-material
Build Status
Buildable 7462
Build 7462: arc lint + arc unit

Event Timeline

Robert Guetzkow (rjg) edited the summary of this revision. (Show Details)Apr 4 2020, 11:55 PM
Robert Guetzkow (rjg) edited the summary of this revision. (Show Details)
stephen leger (stephen_leger) requested changes to this revision.Apr 5 2020, 1:02 AM

Would iterate over nodes and retrieve by type instead,
as nodes names depends on translation.
eg Ukrain BSDF node name -> 'Принципове BSDF'

This revision now requires changes to proceed.Apr 5 2020, 1:02 AM

@stephen leger (stephen_leger) Good point. Will update the patch tomorrow.

Robert Guetzkow (rjg) updated this revision to Diff 23436.EditedApr 5 2020, 12:01 PM
  • Find the Principled BSDF by type instead of name, which would cause problems with internationalization
  • Replace access by name for base color with access by index
This revision is now accepted and ready to land.Apr 5 2020, 1:01 PM