@archvisioninc/canvas 2.4.7 → 2.4.9
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.
|
@@ -274,7 +274,9 @@ export const updateMaterial = inboundData => {
|
|
|
274
274
|
material.transparencyType = _.toLower(transparencyType);
|
|
275
275
|
}
|
|
276
276
|
const isComplex = _.toLower(material.transparencyType) === TRANSPARENCY_MODES.complex;
|
|
277
|
-
material.subSurface
|
|
277
|
+
if (material.subSurface) {
|
|
278
|
+
material.subSurface.isRefractionEnabled = isComplex;
|
|
279
|
+
}
|
|
278
280
|
if (isComplex) {
|
|
279
281
|
if (sssRefractionIntensity !== undefined) material.subSurface.refractionIntensity = sssRefractionIntensity ?? 1;
|
|
280
282
|
if (sssIOR !== undefined) material.subSurface.indexOfRefraction = sssIOR ?? 1.52;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import * as BABYLON from 'babylonjs';
|
|
3
2
|
|
|
4
3
|
// GLTFFileLoader needs to be declared for the GLTF loader to work -- even if unused.
|
|
@@ -223,6 +222,7 @@ export const loadFromDragDrop = () => {
|
|
|
223
222
|
const startingProcessingFiles = () => {
|
|
224
223
|
const hasGuid = !_.isEmpty(props.guidURL);
|
|
225
224
|
if (hasGuid) {
|
|
225
|
+
// eslint-disable-next-line max-len
|
|
226
226
|
const message = "This model has published data that can't be updated from a drag and drop operation. Use Create from gLTF to start a new file.";
|
|
227
227
|
const config = {
|
|
228
228
|
type: MESSAGE_TYPES.warning
|
package/package.json
CHANGED
|
@@ -314,7 +314,10 @@ export const updateMaterial = inboundData => {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
const isComplex = _.toLower(material.transparencyType) === TRANSPARENCY_MODES.complex;
|
|
317
|
-
|
|
317
|
+
|
|
318
|
+
if (material.subSurface) {
|
|
319
|
+
material.subSurface.isRefractionEnabled = isComplex;
|
|
320
|
+
}
|
|
318
321
|
|
|
319
322
|
if (isComplex) {
|
|
320
323
|
if (sssRefractionIntensity !== undefined) material.subSurface.refractionIntensity = sssRefractionIntensity ?? 1;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import * as BABYLON from 'babylonjs';
|
|
3
2
|
|
|
4
3
|
// GLTFFileLoader needs to be declared for the GLTF loader to work -- even if unused.
|
|
@@ -250,6 +249,7 @@ export const loadFromDragDrop = () => {
|
|
|
250
249
|
const hasGuid = !_.isEmpty(props.guidURL);
|
|
251
250
|
|
|
252
251
|
if (hasGuid) {
|
|
252
|
+
// eslint-disable-next-line max-len
|
|
253
253
|
const message = "This model has published data that can't be updated from a drag and drop operation. Use Create from gLTF to start a new file.";
|
|
254
254
|
const config = { type: MESSAGE_TYPES.warning };
|
|
255
255
|
|