Hello Björn,
Björn Zehner wrote:
> Hello Carsten, me again,
>
> Thanks for your reply but I still struggle to copy a material object. May be
> the
> solution is so simple that I just do not see it. What I currently try is:
> ChunkMaterialPtr newMat = ChunkMaterialPtr::dcast(deepClone(oldMat));
yes, this looks good to me.
> This compiles, seems not to return a NullFC and I can set values on the
> newMat.
> But later my program crashes. The way I copy the Material is correct or what
> am
> I doing wrong?
hm, I can not see anything wrong with this and I think it should work. I
also took a look at the deepClone code and can not see anything that
would make it problematic to use with a Material. Can you try to find
out what the difference between the original and the cloned material is?
Thanks,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users