@needle-tools/three 0.169.16 → 0.169.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/three",
3
- "version": "0.169.16",
3
+ "version": "0.169.17",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.cjs",
@@ -43,6 +43,7 @@
43
43
  "scripts": {
44
44
  "start": "npm run dev",
45
45
  "test": "npm run lint && npm run test-unit && npm run test-unit-addons",
46
+ "prebuild": "node utils/update-revision.js",
46
47
  "build": "rollup -c utils/build/rollup.config.js",
47
48
  "build-module": "rollup -c utils/build/rollup.config.js --configOnlyModule",
48
49
  "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
package/src/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export const REVISION = '169';
1
+ export const REVISION = '169.17';
2
2
 
3
3
  export const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
4
4
  export const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
@@ -1970,11 +1970,12 @@ class WebGLRenderer {
1970
1970
 
1971
1971
  }
1972
1972
 
1973
- if ( material.id !== _currentMaterialId ) {
1973
+ if ( material.id !== _currentMaterialId || material._forceRefresh ) {
1974
1974
 
1975
1975
  _currentMaterialId = material.id;
1976
1976
 
1977
1977
  refreshMaterial = true;
1978
+ material._forceRefresh = false;
1978
1979
 
1979
1980
  }
1980
1981