Browse Source

support thickness on thread lines

David Rose 23 years ago
parent
commit
999e641840
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/parametrics/ropeNode.cxx

+ 2 - 1
panda/src/parametrics/ropeNode.cxx

@@ -311,7 +311,8 @@ render_thread(CullTraverser *trav, CullTraverserData &data,
 
 
   colors.push_back(Colorf(1.0f, 1.0f, 1.0f, 1.0f));
   colors.push_back(Colorf(1.0f, 1.0f, 1.0f, 1.0f));
   
   
-  PT(Geom) geom = new GeomLinestrip;
+  PT(GeomLinestrip) geom = new GeomLinestrip;
+  geom->set_width(get_thickness());
   geom->set_num_prims(num_segments);
   geom->set_num_prims(num_segments);
   geom->set_coords(verts);
   geom->set_coords(verts);
   if (uv_mode != UV_none) {
   if (uv_mode != UV_none) {