mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Separated playback keyframe extraction into steps (file read & parse)
This commit is contained in:
@@ -233,6 +233,22 @@ struct CameraKeyframe {
|
||||
sizeof(_timestamp)
|
||||
);
|
||||
};
|
||||
|
||||
void read(std::istringstream* iss) {
|
||||
std::string rotationFollowing;
|
||||
|
||||
iss >> _position.x
|
||||
>> _position.y
|
||||
>> _position.z
|
||||
>> _rotation.x
|
||||
>> _rotation.y
|
||||
>> _rotation.z
|
||||
>> _rotation.w
|
||||
>> _scale
|
||||
>> rotationFollowing
|
||||
>> _focusNode;
|
||||
_followNodeRotation = (rotationFollowing == "F");
|
||||
};
|
||||
};
|
||||
|
||||
struct TimeKeyframe {
|
||||
|
||||
Reference in New Issue
Block a user