Hi terry,
On Thu, 2005-07-07 at 13:05 -0500, Terry Welsh wrote:
> Is it sometimes legal to modify field containers without a begin/end
> edit block? I found this in testMaterial.cpp:
>
> MaterialChunkPtr mchunk1, mchunk2;
>
> mchunk1 = MaterialChunk::create();
> mchunk1->setDiffuse( Color4f( 1,0,0,0 ) );
> mchunk1->setAmbient( Color4f( 1,0,0,0 ) );
> mchunk1->setShininess( 20 );
> b->addChunk( mchunk1 );
no, it's not. That's a bug. Some of the test programs are very old, from
before the strict rules about the begin/endEdits. You need ot have
begin/endEdits (or a CPEditor or similar mechanism) around all field
changes.
Dirk
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users