Skip to content

Commit

Permalink
Merge pull request RobotWebTools#142 from guilhermelawless/develop
Browse files Browse the repository at this point in the history
Fix ROS3D.Arrow.setColor()
  • Loading branch information
rctoris committed Mar 20, 2016
2 parents e4ca47a + 3bb2fcf commit 229325a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ ROS3D.Arrow.prototype.setLength = function(length) {
* @param hex - the hex value of the color to use
*/
ROS3D.Arrow.prototype.setColor = function(hex) {
this.geometry.material.color.setHex(hex);
this.material.color.setHex(hex);
};

0 comments on commit 229325a

Please sign in to comment.