Skip to content

Commit

Permalink
Minor simplification of logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 11, 2024
1 parent 75205b9 commit a4c3443
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/MaterialXCore/Document.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ class MX_CORE_API Document : public GraphElement
{
DocumentPtr doc = createDocument<Document>();
doc->copyContentFrom(getSelf());
if (hasDataLibrary())
doc->setDataLibrary(getDataLibrary());
doc->setDataLibrary(getDataLibrary());
return doc;
}

Expand Down

0 comments on commit a4c3443

Please sign in to comment.