Skip to content

Commit b8d2a5b

Browse files
committed
Undef or null
1 parent ef641a1 commit b8d2a5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/rope/Rope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,12 +717,12 @@ var Rope = new Class({
717717

718718
this.updateUVs();
719719

720-
if (colors !== undefined)
720+
if (colors !== undefined && colors !== null)
721721
{
722722
this.setColors(colors);
723723
}
724724

725-
if (alphas !== undefined)
725+
if (alphas !== undefined && alphas !== null)
726726
{
727727
this.setAlphas(alphas);
728728
}

0 commit comments

Comments
 (0)