On 30/06/2013 at 07:47, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi Folks,
I've got a little issue with my plugin. I have some structs holding some data that are used between different classes. The plugin is an objectdata plugin with some other buried classes (e.g. a dialog).
The problem is that if I add two or more objects into the scene (two or more of my object plugin) all the additional objects I add seem to read the struct data from the first object. How do I stop this from happening?
Example of how it's setup:
// The data is inited in the plugin's main class constructor
struct MyStruct
{
LONG Count;
LONG Width;
LONG Height;
}MStr;
// I use "MStr.Count = 10" to access/change the data from other classes etc
Thanks,
WP.