gltfio: add 'detach' methods to allow ownership transfer
These new methods allow gltfio to be integrated into internal Google libraries.
This commit is contained in:
@@ -687,7 +687,7 @@ Texture* ResourceLoader::Impl::getOrCreateTexture(FFilamentAsset* asset, const T
|
||||
<< provider->getPushMessage() << io::endl;
|
||||
asset->mDependencyGraph.markAsError(tb.materialInstance);
|
||||
} else {
|
||||
asset->takeOwnership(texture);
|
||||
asset->attachTexture(texture);
|
||||
}
|
||||
|
||||
return texture;
|
||||
|
||||
Reference in New Issue
Block a user