private void RefreshImagePreview() { _srcTexureData = null; _dstTexureData = null; _isImageChangable = false; if (_modMesh._isMeshTransform && _modMesh._transform_Mesh != null) { if (_modMesh._transform_Mesh._mesh != null && _modMesh._transform_Mesh._mesh._textureData_Linked != null) { apTextureData linkedTextureData = _modMesh._transform_Mesh._mesh._textureData_Linked; _isImageChangable = true; _srcTexureData = linkedTextureData; if (_modMesh._extraValue._textureDataID >= 0) { _dstTexureData = _portrait.GetTexture(_modMesh._extraValue._textureDataID); if (_dstTexureData == null) { _modMesh._extraValue._textureDataID = -1; } } } } }
public void Link(apPortrait portrait) { if (_textureDataID >= 0) { _linkedTextureData = portrait.GetTexture(_textureDataID); } }