three-render-objects 1.27.2 → 1.27.3

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.
@@ -626,7 +626,7 @@ var threeRenderObjects = Kapsule__default["default"]({
626
626
  }
627
627
 
628
628
  if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
629
- state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
629
+ state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
630
630
  state.camera.far = state.skyRadius * 2.5;
631
631
  state.camera.updateProjectionMatrix();
632
632
  state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);
@@ -1,4 +1,4 @@
1
- // Version 1.27.2 three-render-objects - https://github.com/vasturiano/three-render-objects
1
+ // Version 1.27.3 three-render-objects - https://github.com/vasturiano/three-render-objects
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
4
4
  typeof define === 'function' && define.amd ? define(['three'], factory) :
@@ -5352,7 +5352,7 @@
5352
5352
  }
5353
5353
 
5354
5354
  if (changedProps.hasOwnProperty('skyRadius') && state.skyRadius) {
5355
- state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius);
5355
+ state.controls.hasOwnProperty('maxDistance') && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius));
5356
5356
  state.camera.far = state.skyRadius * 2.5;
5357
5357
  state.camera.updateProjectionMatrix();
5358
5358
  state.skysphere.geometry = new three.SphereGeometry(state.skyRadius);