Added _firstTimeToInitEyePoint = true to the setAutoRotateMode to force the AutoTransform
to recompute its position on next frame.
This commit is contained in:
parent
e346396abd
commit
c58221ddae
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user