Added _firstTimeToInitEyePoint = true to the setAutoRotateMode to force the AutoTransform

to recompute its position on next frame.
This commit is contained in:
Robert Osfield 2007-05-22 15:17:52 +00:00
parent e346396abd
commit c58221ddae

View File

@ -68,7 +68,7 @@ class OSG_EXPORT AutoTransform : public Transform
ROTATE_TO_CAMERA
};
void setAutoRotateMode(AutoRotateMode mode) { _autoRotateMode = mode; }
void setAutoRotateMode(AutoRotateMode mode) { _autoRotateMode = mode; _firstTimeToInitEyePoint = true; }
AutoRotateMode getAutoRotateMode() const { return _autoRotateMode; }