Browse Source

Merge pull request #15884 from Itee/strucnode-fix

StrucNode: Add missing this keyword
Mr.doob 6 years ago
parent
commit
c867016ff2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/nodes/core/StructNode.js

+ 1 - 1
examples/js/nodes/core/StructNode.js

@@ -49,7 +49,7 @@ StructNode.prototype.generate = function ( builder, output ) {
 
 
 	} else {
 	} else {
 
 
-		return builder.format( '( ' + src + ' )', this.getType( builder ), output );
+		return builder.format( '( ' + this.src + ' )', this.getType( builder ), output );
 
 
 	}
 	}