xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Error message for "src"/"source" issue in custom Xflow operators #136

Closed stlemme closed 8 years ago

stlemme commented 9 years ago

Registering custom Xflow operators requires the specification input parameters.

    params:  [
        {type: 'int4', source: 'segments', array: true},
        {type: 'float2', source: 'phi', array: true} //,
        // {type: 'float', source: 'theta'}
    ],

Thereby the second argument source defines the name of the parameter. Usually, developer tends to write src instead of source, which causes troubles due to several lookups based on that name by Xflow. It is requested to allow either both property names and/or at least improve the check whether the parameters are specified correctly. When erroneously omitting source, today Xflow breaks in its depths.