DarkRadiant: master 09e5ec1c

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 21.04.2024 19:33 master b15b234d
Affected Issues  0006062: Moving speakers deletes distance spawnargs if they're the same as in shader
Changeset Avoid creating speaker min/max spawnargs when moving a speaker

Instead of unconditionally creating min/max distance spawnargs in
SpeakerNode::freezeTransform, we now write them under two different
conditions: if the modified speaker radii differ from the shader
default, or if there were already min/max spawnargs to begin with.

This prevents creating redundant spawnargs just because a speaker was
moved, but also will not remove existing spawnargs just because they
happen to match the shader default (which was the original complaint in
0006062).
mod - radiantcore/entity/speaker/SpeakerNode.cpp Diff File