Use new IAVolumeProviders from Revised Plugins

This commit is contained in:
John Lewin 2019-02-04 15:50:33 -08:00
parent fd675ab07e
commit f6a2f89b1c
2 changed files with 7 additions and 3 deletions

View file

@ -113,7 +113,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
});
}
iavMappings.Add(typeof(ImageObject3D), new List<InteractionVolume> { new MoveInZControlTest(this) });
iavMappings.Add(typeof(ImageObject3D), new List<InteractionVolume> { new MoveInZControl(this) });
// Register listeners
sceneContext.Scene.SelectionChanged += this.Scene_SelectionChanged;
@ -129,6 +129,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
registeredIAVolumes.Add(interactionVolume);
}
public void RegisterIAVolumes(IEnumerable<InteractionVolume> interactionVolumes)
{
registeredIAVolumes.AddRange(interactionVolumes);
}
public IEnumerable<IDrawable> Drawables => drawables;
public IEnumerable<IDrawableItem> ItemDrawables => itemDrawables;