LoadDocument doesn't Load materials?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/04/2010 at 06:16, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   11 
Platform:      Mac OSX  ; 
Language(s) :     C++  ;

---------
Why doesn't this load the materials from the scene? Object come in fine...

BaseDocument* newDoc = LoadDocument(vorlage, SCENEFILTER_OBJECTS || SCENEFILTER_MATERIALS || SCENEFILTER_DIALOGSALLOWED || SCENEFILTER_PROGRESSALLOWED, NULL);   
if (newDoc!=NULL) {   
     InsertBaseDocument(newDoc);   
     EventAdd();   
}   

Loading the scene works fine with LoadFile(vorlage), but I need to merge additional documents into this later...

Thanks!

Kabe

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/04/2010 at 06:20, xxxxxxxx wrote:

Use the single | bit operator to combine flags. The double || operator is a logic operator.

LoadDocument(vorlage, SCENEFILTER_OBJECTS | SCENEFILTER_MATERIALS | SCENEFILTER_DIALOGSALLOWED | SCENEFILTER_PROGRESSALLOWED, NULL)

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 06/04/2010 at 07:13, xxxxxxxx wrote:

   Aaargh... where's the blush icon when you need it...

Thanks!