RenameTextureMessage Struct Reference

#include <c4d_shader.h>

详细描述

Message struct for the MSG_RENAMETEXTURES message. This message is broadcast to all scene elements when a bitmap image was renamed (e.g. by Make Project or by BodyPaint 3D ) and all shaders etc. need to adjust the name.
If something is adjusted then changecnt must be increased.

公共成员函数

  RenameTextureMessage ()

Public Attributes

Filename   oldname
Filename   newname
BaseDocument *  doc
Int32   changecnt
Bool   noundo

构造函数 & 析构函数文档编制

◆  RenameTextureMessage()

RenameTextureMessage ( )

Default constructor.

Member Data Documentation

◆  oldname

Filename oldname

Old filename.

◆  newname

Filename newname

New filename.

◆  doc

BaseDocument * doc

Document.

◆  changecnt

Int32 changecnt

Change count. Increase this if to adjust a value.

◆  noundo

Bool noundo

Set this to true when sending MSG_RENAMETEXTURES to stop an undo getting added when filenames (textures etc.) are renamed.
Also check this when receiving MSG_RENAMETEXTURES (e.g. morphs/Xrefs check for this message to rename their external filenames).