Skip to content

Conversation

@stephengold
Copy link
Member

@stephengold stephengold commented Nov 2, 2021

Our best guidance for how to use AnimMigrationUtils is found in 5 example apps in jme3-examples. However, 2 of those apps ( TestJaime and TestAttachmentsNode) assign return values from migrate() to local variables, giving the impression that the model might be converted by creating a new Spatial.

In fact, migrate() converts models in place. Its return value is simply the argument. The assignments are redundant and also misleading, so this PR removes them from TestJaime and TestAttachmentsNode.

@stephengold stephengold added this to the v3.5.0 milestone Nov 2, 2021
@stephengold
Copy link
Member Author

Unless there's substantive feedback, I plan to integrate this in 24 hours.

@stephengold stephengold merged commit a54b978 into master Nov 9, 2021
@stephengold stephengold deleted the sgold-ignore-migrate-retval branch November 9, 2021 22:53
@stephengold stephengold added the examples specific to the jme3-examples sub-project label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples specific to the jme3-examples sub-project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants