Load rotation from a line's style when it's not set by an override tag.

Originally committed to SVN as r4387.
This commit is contained in:
Thomas Goyne 2010-06-01 03:21:20 +00:00
parent 9e6454a798
commit da6c47c20b

View file

@ -581,6 +581,11 @@ void VisualTool<FeatureType>::GetLineRotation(AssDialogue *diag,float &rx,float
// No dialogue // No dialogue
if (!diag) return; if (!diag) return;
AssStyle *style = VideoContext::Get()->grid->ass->GetStyle(diag->Style);
if (style) {
rz = style->angle;
}
// Prepare overrides // Prepare overrides
diag->ParseASSTags(); diag->ParseASSTags();
AssDialogueBlockOverride *override; AssDialogueBlockOverride *override;