THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/10/2007 at 22:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.111
Platform:
Language(s) : C++ ;
---------
Hi,
I'm running into a strange problem. Hopefully somebody here knows what's wrong.
I'm trying to set some states of the layer browser. That's all fine, except when I'm trying to un-solo a layer. When I un-solo a layer, all the objects disappear from the Object Manager and viewports. They'll come back if I toggle any of the layer buttons.
Here's the code I'm using:
GeListHead* llist = bDoc->GetLayerObjectRoot();
GeListNode* layer = llist->GetFirst();
LayerObject* lObj = SearchLayers(layer, bDoc, layerName); //my own function to search for a specific layer
const LayerData* pLData = lObj->GetLayerData(bDoc, TRUE);
LayerData lData = *pLData;
lData.solo = StringToBool(value); //value is coming from somewhere else
lObj->SetLayerData(bDoc, lData);
//I'm trying all of these to update the the scene
lObj->Message(MSG_UPDATE);
EventAdd(EVENT_FORCEREDRAW);
DrawViews(DA_FORCEFULLREDRAW, NULL);
EventAdd();
Any ideas?