Added a field to provied the last drawing camera to DrawingBasis

This commit is contained in:
Michel Fedde 2021-03-24 11:27:54 +01:00
parent d17d1ac765
commit c492470430

View file

@ -15,6 +15,11 @@ namespace SM.Base.Drawing
/// </summary>
public abstract class DrawingBasis : IShowItem, IModelItem
{
/// <summary>
/// The camera, that was used last time the object was rendered.
/// </summary>
public GenericCamera LastDrawingCamera;
/// <summary>
/// The material it should use.
/// </summary>
@ -86,6 +91,8 @@ namespace SM.Base.Drawing
context.ForcedType = ForcedMeshType;
context.TextureMatrix *= TextureTransform.GetMatrix();
context.LastObject = this;
LastDrawingCamera = context.UseCamera;
}
}