Browse Source

Added color attrib

Josh Yelon 17 years ago
parent
commit
a0f740720d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      panda/src/grutil/lineSegs.cxx

+ 2 - 1
panda/src/grutil/lineSegs.cxx

@@ -214,7 +214,8 @@ GeomNode *LineSegs::
 create(GeomNode *previous, bool dynamic) {
   if (!_list.empty()) {
     CPT(RenderAttrib) thick = RenderModeAttrib::make(RenderModeAttrib::M_unchanged, _thick);
-    CPT(RenderState) state = RenderState::make(thick);
+    CPT(RenderAttrib) vtxcolor = ColorAttrib::make_vertex();
+    CPT(RenderState) state = RenderState::make(thick, vtxcolor);
 
     _created_data = new GeomVertexData
       ("lineSegs", GeomVertexFormat::get_v3cp(),