From 0c2772e8bf7a1c2b93f486634695ec820dffdf91 Mon Sep 17 00:00:00 2001 From: Kirill Gavrilov Date: Tue, 12 Jan 2021 01:00:45 +0300 Subject: [PATCH] aiMaterial::GetTexture() - fix misleading description of path argument. Mention aiScene::GetEmbeddedTexture() as a proper way to check if returned path points to a file or to embedded texture. --- include/assimp/material.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/assimp/material.h b/include/assimp/material.h index 4daf0cdeb..13529f172 100644 --- a/include/assimp/material.h +++ b/include/assimp/material.h @@ -735,9 +735,9 @@ public: * #GetTextureCount() can be used to determine the number of textures * per texture type. * @param path Receives the path to the texture. - * If the texture is embedded, receives a '*' followed by the id of - * the texture (for the textures stored in the corresponding scene) which - * can be converted to an int using a function like atoi. + * Use aiScene::GetEmbeddedTexture() method to determine if returned path + * is an image file to be opened or a string key of embedded texture stored in the corresponding scene + * (could be a '*' followed by the id of the texture in case of no name) * NULL is a valid value. * @param mapping The texture mapping. * NULL is allowed as value.