--- a/src/glcompiler.cpp Sat Mar 03 17:28:27 2018 +0200 +++ b/src/glcompiler.cpp Sat Mar 03 17:47:40 2018 +0200 @@ -376,7 +376,7 @@ case LDObjectType::SubfileReference: { LDSubfileReference* subfileReference = static_cast<LDSubfileReference*>(object); - auto data = subfileReference->inlinePolygons(); + auto data = subfileReference->inlinePolygons(m_documents); for (LDPolygon& poly : data) {