Added a field to provied the last drawing camera to DrawingBasis
This commit is contained in:
parent
d17d1ac765
commit
c492470430
1 changed files with 7 additions and 0 deletions
|
|
@ -15,6 +15,11 @@ namespace SM.Base.Drawing
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class DrawingBasis : IShowItem, IModelItem
|
public abstract class DrawingBasis : IShowItem, IModelItem
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The camera, that was used last time the object was rendered.
|
||||||
|
/// </summary>
|
||||||
|
public GenericCamera LastDrawingCamera;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The material it should use.
|
/// The material it should use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -86,6 +91,8 @@ namespace SM.Base.Drawing
|
||||||
context.ForcedType = ForcedMeshType;
|
context.ForcedType = ForcedMeshType;
|
||||||
context.TextureMatrix *= TextureTransform.GetMatrix();
|
context.TextureMatrix *= TextureTransform.GetMatrix();
|
||||||
context.LastObject = this;
|
context.LastObject = this;
|
||||||
|
|
||||||
|
LastDrawingCamera = context.UseCamera;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue