Sfoglia il codice sorgente

support thickness on thread lines

David Rose 23 anni fa
parent
commit
999e641840
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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));
   
-  PT(Geom) geom = new GeomLinestrip;
+  PT(GeomLinestrip) geom = new GeomLinestrip;
+  geom->set_width(get_thickness());
   geom->set_num_prims(num_segments);
   geom->set_coords(verts);
   if (uv_mode != UV_none) {