← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3805: Fix setting of wall's color.

 

------------------------------------------------------------
revno: 3805
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2014-01-13 10:23:51 +0100
message:
  Fix setting of wall's color.
  
  Thanks to Jörg Medack  (TU Freiberg) for pointing that out.
modified:
  pkg/common/Wall.cpp


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'pkg/common/Wall.cpp'
--- pkg/common/Wall.cpp	2010-11-12 08:03:16 +0000
+++ pkg/common/Wall.cpp	2014-01-13 09:23:51 +0000
@@ -39,6 +39,7 @@
 		a1[ax0]=b1[ax0]=a2[ax0]=b2[ax0]=0;
 		a1[ax1]=mn1-step; a2[ax2]=mn2-step;
 		b1[ax1]=mn1+step*(div+2); b2[ax2]=mn2+step*(div+2);
+		glColor3v(cm->color);
 		glBegin(GL_LINES);
 			for(int i=0; i<=div; i++){
 				a1[ax2]=b1[ax2]=mn1+i*step;