RenameTextureMessage Struct Reference

#include <c4d_shader.h>

Detailed Description

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.

Public Member Functions

 RenameTextureMessage ()
 

Public Attributes

Filename oldname
 
Filename newname
 
BaseDocumentdoc
 
Int32 changecnt
 
Bool noundo
 

Constructor & Destructor Documentation

◆ RenameTextureMessage()

Default constructor.

Member Data Documentation

◆ oldname

Filename oldname

Old filename.

◆ newname

Filename newname

New filename.

◆ 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).