Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc
| Context not available. | |||||
| /** | /** | ||||
| * From a texture image shader node, get the image's filepath. | * From a texture image shader node, get the image's filepath. | ||||
| * Returned filepath is stripped of initial "//". If packed image is found, | * If packed image is found, only the file "name" is returned. | ||||
| * only the file "name" is returned. | |||||
| */ | */ | ||||
| static const char *get_image_filepath(const bNode *tex_node) | static const char *get_image_filepath(const bNode *tex_node) | ||||
| { | { | ||||
| Context not available. | |||||
| "directory as the .MTL file.\n", | "directory as the .MTL file.\n", | ||||
| path); | path); | ||||
| } | } | ||||
| if (path[0] == '/' && path[1] == '/') { | |||||
| path += 2; | |||||
| } | |||||
| return path; | return path; | ||||
| } | } | ||||
| Context not available. | |||||