Skip to content

Commit

Permalink
Fix onLidarModelChange invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
msz-rai committed Feb 7, 2024
1 parent 60485c4 commit 1a3ff95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/RGLUnityPlugin/Scripts/LidarSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void OnValidate()
}
ApplyConfiguration(configuration);
validatedPreset = modelPreset;
onLidarModelChange?.Invoke();
}

private void ApplyConfiguration(BaseLidarConfiguration newConfig)
Expand All @@ -169,8 +170,6 @@ private void ApplyConfiguration(BaseLidarConfiguration newConfig)
return;
}

onLidarModelChange?.Invoke();

rglGraphLidar.UpdateNodeRaysFromMat3x4f(lidarRaysNodeId, newConfig.GetRayPoses())
.UpdateNodeRaysSetRange(lidarRangeNodeId, newConfig.GetRayRanges())
.UpdateNodeRaysSetRingIds(lidarRingsNodeId, newConfig.GetRayRingIds())
Expand Down

0 comments on commit 1a3ff95

Please sign in to comment.