MatPreviewPrepareScene Struct Reference

#include <customgui_matpreview.h>

Detailed Description

Message struct for MATPREVIEW_PREPARE_SCENE.

Public Attributes

Bool bScenePrepared
 
BaseLinkpLink
 
BaseDocumentpDoc
 
Matrix matrDefault
 
MaterialPreviewDatapPreviewData
 
BaseDocumentpOriginalDoc
 

Member Data Documentation

◆ bScenePrepared

Bool bScenePrepared

Set to true if you modified the scene; the preview will do this for you otherwise.

◆ pLink

BaseLink* pLink

Point this link the cloned material object you insert into the scene.May be nullptr. The caller owns the pointed link.

◆ pDoc

BaseDocument* pDoc

The preview document (a clone of the scene cache entry). The caller owns the pointed document.

◆ matrDefault

Matrix matrDefault

The default object matrix.

◆ pPreviewData

MaterialPreviewData* pPreviewData

The preview data. May be nullptr. The caller owns the pointed data.

◆ pOriginalDoc

BaseDocument* pOriginalDoc

The original document. Only access it if there is no other way. The caller owns the pointed document.