Skip to content

Conversation

@pwlviolet
Copy link
Contributor

Description

This PR fixes an issue where an outlined square appears at the world center when selecting Line2 objects with OutlinePass

Cause

The OutlinePass's _changeVisibilityOfNonSelectedObjects() method was not excluding Line2 objects from outline computation.

Solution

  • Added || object.isLine2 condition in OutlinePass._changeVisibilityOfNonSelectedObjects()
  • Change the order to ensure Line2 objects are excluded from outline computation

Changes in OutlinePass.js

  • Modified _changeVisibilityOfNonSelectedObjects() method
  • Added || object.isLine2 condition
  • Process meshes and sprites after points and lines in this method

@Mugen87 Mugen87 added this to the r179 milestone Jul 25, 2025
@Mugen87 Mugen87 merged commit 76ff87a into mrdoob:dev Jul 25, 2025
8 checks passed
@Mugen87 Mugen87 changed the title Fix(OutlinePass):Exclude Line2 objects from outline computation OutlinePass: Exclude Line2 objects from outline computation. Jul 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants