Hi Richard,
I have reviewed you changes, and believe that a more lighweight fix
would be to simply reset the _firstTimeToInitEyePoint to true when
setAutoRotatioMode is called:
void setAutoRotateMode(AutoRotateMode mode) { _autoRotateMode =
mode; _firstTimeToInitEyePoint = true; }
This avoids the extra variable. I have checked this fix into SVN.
Does this fix work for you?
Robert.
On 5/21/07, Schmidt, Richard, SDGE1 <[EMAIL PROTECTED]> wrote:
Hi,
Robert,
here it comes.
Richard
Hi Richard,
Could you post the modified file so I can review it with a view to
merge.
On 5/21/07, Schmidt, Richard, SDGE1 <[EMAIL PROTECTED]> wrote:
>
>
>
>
> hi
>
> there is a small bug in osg::autotransform. When switching from
> osg::AutoTransform::NO_ROTATION to
> osg::AutoTransform::ROTATE_TO_SCREEN the new rotation does
> not get updated, because the camera position does not change. When the
> camera position changes again, the object is displayed correctly
again. To
> fix it just introduce a _rotationDirty flag, which is set when set
when
> setAutoRotateMode is called.
>
>
>
> Richard
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/