private void transferData() { output = ct.getOutputButton(); Vid_Object outputObj = output.vid_obj; ct.setInputButton(this); output.setIsUse(false); bool b = vidObj.addInput(outputObj, argumentIndex); if (b) { used = true; drawline = true; } ct.resetTool(); //foreach (VidData_Type d in acceptable_dataTypes) //{ // if (d == outputObj.output_dataType) // { // ct.setInputButton(this); // output.setIsUse(false); // bool b = vidObj.addInput(outputObj, argumentIndex); // if (b) { // used = true; // drawline = true; // } // ct.resetTool(); // break; // } //} }
/* Internal Helpers */ private void transferData() { output = ct.getOutputButton(); Vid_Object outputObj = output.vid_obj; ct.setInputButton(this); output.setIsUse(false); bool b = vidObj.addInput(outputObj, argumentIndex); if (b) { used = true; drawline = true; } output.inButton = this; ct.resetTool(); }