Revision: 73021
http://sourceforge.net/p/brlcad/code/73021
Author: brlcad
Date: 2019-05-08 06:03:19 +0000 (Wed, 08 May 2019)
Log Message:
-----------
hook up the obj converter so it stores uv data
Modified Paths:
--------------
brlcad/trunk/src/libgcv/plugins/obj/obj_read.c
Modified: brlcad/trunk/src/libgcv/plugins/obj/obj_read.c
===================================================================
--- brlcad/trunk/src/libgcv/plugins/obj/obj_read.c 2019-05-08 06:02:19 UTC
(rev 73020)
+++ brlcad/trunk/src/libgcv/plugins/obj/obj_read.c 2019-05-08 06:03:19 UTC
(rev 73021)
@@ -2563,12 +2563,13 @@
/* write bot to ".g" file */
if (ti.tri_type == FACE_NV || ti.tri_type == FACE_TNV) {
- ret = mk_bot_w_normals(outfp, bu_vls_addr(gfi->primitive_name),
- ti.bot_mode, bot_orientation,
- RT_BOT_HAS_SURFACE_NORMALS | RT_BOT_USE_NORMALS,
- ti.bot_num_vertices, ti.bot_num_faces,
ti.bot_vertices,
- ti.bot_faces, ti.bot_thickness, ti.bot_face_mode,
- ti.bot_num_normals, ti.bot_normals,
ti.bot_face_normals);
+ ret = mk_bot_w_normals_and_uvs(outfp, bu_vls_addr(gfi->primitive_name),
+ ti.bot_mode, bot_orientation,
+ RT_BOT_HAS_SURFACE_NORMALS |
RT_BOT_USE_NORMALS,
+ ti.bot_num_vertices, ti.bot_num_faces,
ti.bot_vertices,
+ ti.bot_faces, ti.bot_thickness,
ti.bot_face_mode,
+ ti.bot_num_normals, ti.bot_normals,
ti.bot_face_normals,
+ ti.bot_num_texture_vertices,
ti.bot_texture_vertices, ti.bot_textures);
} else {
ret = mk_bot(outfp, bu_vls_addr(gfi->primitive_name), ti.bot_mode,
bot_orientation, 0, ti.bot_num_vertices, ti.bot_num_faces,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits