Skip to content
  • Max Smolens's avatar
    Fix multiple definitions of vtkInteractionCallback · e8170ff5
    Max Smolens authored
    A class called vtkInteractionCallback was defined twice: in
    vtkImplicitCylinderWidget.cxx and in vtkImplicitPlaneWidget2.cxx. This violates
    the one definition rule and can lead to undefined behavior.
    
    This commit resolves the ambiguity by removing the callback from
    vtkImplicitCylinderWidget. vtkImplicitCylinderWidget does not actually require
    the callback; the code is leftover from a copy/paste of vtkImplicitPlaneWidget2.
    vtkImplicitPlaneWidget2 uses the callback to implement SetLockNormalToCamera(),
    which does not exist on vtkImplicitCylinderWidget.
    e8170ff5