• David Gobbi's avatar
    Resolve Python ambiguity for sequence objects · 2ac06c6b
    David Gobbi authored
    VTK has some overloaded methods like the following:
       void SetColor(const vtkColor4d& color);
       void SetColor(const double color[4]);
    Since vtkColor4d and similar objects can be indexed as sequences,
    they can satisfy both overloads.  This fix penalizes the second
    overload, so that the first overload (the one that specifies the
    object type) is preferred.  Without this fix, the wrappers report
    an overload resolution ambiguity and raise a TypeError.
    2ac06c6b
Name
Last commit
Last update
..
Java Loading commit data...
Python Loading commit data...
PythonCore Loading commit data...
Tools Loading commit data...