Skip to content

Add defensive copy to EmitterShape's Vector3f#2406

Closed
capdevon wants to merge 17 commits intojMonkeyEngine:masterfrom
capdevon:capdevon-emitter-shape
Closed

Add defensive copy to EmitterShape's Vector3f#2406
capdevon wants to merge 17 commits intojMonkeyEngine:masterfrom
capdevon:capdevon-emitter-shape

Conversation

@capdevon
Copy link
Copy Markdown
Contributor

@capdevon capdevon commented Apr 17, 2025

  • Update licence year
  • Update javadoc
    A defensive copy is created to ensure that any external modifications to the original Vector3f objects will not affect the EmitterShape's internal state.

@capdevon capdevon changed the title Fix initialization, setting and cloning EmitterShape variables + javadoc Add defensive copy to EmitterShape's Vector3f Apr 17, 2025
@capdevon capdevon closed this Apr 17, 2025
@capdevon capdevon reopened this Apr 17, 2025
@capdevon
Copy link
Copy Markdown
Contributor Author

Closing PR: Based on Feedback:

This PR has the potential to break existing code that relies on a shared shape position across multiple emitter shapes. Specifically, any code designed to have changes propagate through external modifications would be affected

@capdevon capdevon closed this Apr 17, 2025
@capdevon capdevon deleted the capdevon-emitter-shape branch April 19, 2025 15:47
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.

1 participant