Skip to content

Commit

Permalink
add fieldChanged to FloatVertexAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanxiangFranck committed Jan 27, 2016
1 parent 5c152c6 commit 16fefd1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/nodes/Shaders/FloatVertexAttribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ x3dom.registerNodeType(
*/
this.addField_MFFloat(ctx, 'value', []);

},
{
fieldChanged: function (fieldName) {
var that = this;
if (fieldName == "value" || fieldName == "numComponents") {
Array.forEach(this._parentNodes, function (node) {
node.fieldChanged("attrib_"+that._vf.name);
});
}
}
}
)
);
);

0 comments on commit 16fefd1

Please sign in to comment.