Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: events #844

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash
  • Loading branch information
andretchen0 committed Sep 28, 2024
commit e601be04e8437ba6a3bad671d18d5c9b17f98109
3 changes: 1 addition & 2 deletions src/utils/createEventManager/eventsRaycast.ts
Original file line number Diff line number Diff line change
@@ -191,8 +191,7 @@ function patchProp(instance: TresObject, propName: string, prevValue: any, nextV

if (propName === 'blocking') {
if (nextValue) {
config.blockingObjects.add(instance as Object3D);
(instance as TresInstance).__tres.eventCount = 1
config.blockingObjects.add(instance as Object3D)
}
else {
config.blockingObjects.delete(instance as Object3D)