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

.setDynamic() has been deprecated (warning) #5

Open
kkdd opened this issue Nov 9, 2019 · 2 comments · May be fixed by #18
Open

.setDynamic() has been deprecated (warning) #5

kkdd opened this issue Nov 9, 2019 · 2 comments · May be fixed by #18

Comments

@kkdd
Copy link

kkdd commented Nov 9, 2019

Hello,
The following warnings are displayed when run on Chrome:

three.module.js:33602 THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead.
setDynamic @ three.module.js:33602
three.module.js:33623 THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute().
@tim-soft
Copy link
Owner

Hey thanks for spotting this, what version of three.js are you using?

@kkdd
Copy link
Author

kkdd commented Nov 10, 2019

Thank for your reply.
I think that I am using [email protected]:

$ grep -i "revision " ./node_modules/three/build/three.module.js
var REVISION = '110';
$ find . -type f | xargs grep three[@-][0-9]
./node_modules/@types/three/package.json:  "_id": "@types/[email protected]",
./node_modules/@types/three/package.json:  "_resolved": "https://registry.npmjs.org/@types/three/-/three-0.103.2.tgz",
./node_modules/three/package.json:  "_id": "[email protected]",
./node_modules/three/package.json:  "_resolved": "https://registry.npmjs.org/three/-/three-0.110.0.tgz",
./package-lock.json:      "resolved": "https://registry.npmjs.org/@types/three/-/three-0.103.2.tgz",
./package-lock.json:      "resolved": "https://registry.npmjs.org/three/-/three-0.110.0.tgz",

@flyskywhy flyskywhy linked a pull request Oct 9, 2020 that will close this issue
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 a pull request may close this issue.

2 participants