From 90277eebd5eec5fb2657fc8726dbcd6dc094e10b Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 28 Jan 2023 10:01:12 +0800 Subject: [PATCH] Fix #4843 --- src/tracks/track_object_presentation.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tracks/track_object_presentation.cpp b/src/tracks/track_object_presentation.cpp index c5236183a..2b8a74cc3 100644 --- a/src/tracks/track_object_presentation.cpp +++ b/src/tracks/track_object_presentation.cpp @@ -871,6 +871,14 @@ TrackObjectPresentationParticles::TrackObjectPresentationParticles( scene::ISceneNode* parent) : TrackObjectPresentationSceneNode(xml_node) { + float heading = 0; + if (xml_node.get("h", &heading)) + { + m_init_hpr.X = 0; + m_init_hpr.Y = heading; + m_init_hpr.Z = 0; + } + m_emitter = NULL; m_lod_emitter_node = NULL; std::string path;