| 634 | } |
| 635 | |
| 636 | Colour NodeBase::getColour() const |
| 637 | { |
| 638 | auto value = getValueTree()[PropertyIds::NodeColour]; |
| 639 | auto colour = PropertyHelpers::getColourFromVar(value); |
| 640 | |
| 641 | if(getRootNetwork()->getRootNode() == this) |
| 642 | { |
| 643 | return dynamic_cast<const Processor*>(getScriptProcessor())->getColour(); |
| 644 | } |
| 645 | |
| 646 | if(auto cont = dynamic_cast<const NodeContainer*>(this)) |
| 647 | { |
| 648 | auto cc = cont->getContainerColour(); |
| 649 | |
| 650 | if(!cc.isTransparent()) |
| 651 | return cc; |
| 652 | } |
| 653 | |
| 654 | return colour; |
| 655 | } |
| 656 | |
| 657 | var NodeBase::get(var id) |
| 658 | { |
no test coverage detected