On 02/06/2016 at 05:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
---------
Hello.
I have written a Read method on a TagData but the node's document is always null for a specific scene.
The reason why I need this Read method is to change the values of some parameters as loaded by the user.
Bool MyTagData::Read(GeListNode* node, HyperFile* hf, Int32 level){
bool read_successfully = NodeData::Read(node, hf, level);
assert(read_successfully);
BaseDocument* doc = node->GetDocument();
//if the loaded is an old version
// code
return true;
}
The problem is that the doc variable is null when retrieved from node.
What causes this issue ?
If you need more information please let me know.
Thank you very much for your time.