Skip to content

Commit

Permalink
Debug visuals now inherit layers from DebugRenderManager
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipAlg committed Nov 25, 2024
1 parent a52cf16 commit 07eb8f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AGXUnity/Rendering/ShapeDebugRenderData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ public override void Synchronize( DebugRenderManager manager )
if ( Node == null )
return;

Node.layer = manager.gameObject.layer;
Node.TraverseChildren( x => x.layer = manager.gameObject.layer );

// Node created - set properties and extra components.
if ( nodeCreated ) {
Node.hideFlags = HideFlags.DontSave;
Expand Down

0 comments on commit 07eb8f3

Please sign in to comment.