We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef641a1 commit b8d2a5bCopy full SHA for b8d2a5b
1 file changed
src/gameobjects/rope/Rope.js
@@ -717,12 +717,12 @@ var Rope = new Class({
717
718
this.updateUVs();
719
720
- if (colors !== undefined)
+ if (colors !== undefined && colors !== null)
721
{
722
this.setColors(colors);
723
}
724
725
- if (alphas !== undefined)
+ if (alphas !== undefined && alphas !== null)
726
727
this.setAlphas(alphas);
728
0 commit comments