Thanks Robert for this change, I was using a workaround but it's a good news
for future usages. :)

On Thu, Sep 18, 2008 at 4:51 PM, Robert Osfield <[EMAIL PROTECTED]>wrote:

> Hi Serge,
>
> I have just refactored the getWindows/getContexts() code in Viewer and
> CompositeViewer so that they use the set and vectors in a different
> way, that will ensure both uniqueness and consistency in ordering -
> the order will reflect the camera/slave camera ordering.
>
> An svn update will get these changes.
>
> Robert.
>
> On Thu, Aug 21, 2008 at 9:08 AM, Robert Osfield
> <[EMAIL PROTECTED]> wrote:
> > HI Serge,
> >
> > The set is used to make sure that no duplicate entries exist in the
> > context list, replacing with a std::vector<> would not achieve this.
> >
> > Robert.
> >
> > On Wed, Aug 20, 2008 at 5:28 PM, Serge Lages <[EMAIL PROTECTED]>
> wrote:
> >> Hi Robert,
> >>
> >> Here is a little change to the getContexts method from
> CompositeViewer.cpp.
> >> I removed the std::set by directly filling the std::vector.
> >> I've made this change because I had some strange behavior with std::set,
> >> having my contexts in a different order between two calls to this method
> >> (mostly seen problems between VS release and debug mode).
> >> I hope this change is acceptable, or have I missed something with the
> >> std::set ?
> >>
> >> Cheers,
> >>
> >> --
> >> Serge Lages
> >> http://www.tharsis-software.com
> >>
> >> _______________________________________________
> >> osg-submissions mailing list
> >> [email protected]
> >>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
> >>
> >>
> >
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>



-- 
Serge Lages
http://www.tharsis-software.com
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to