@forgeax/engine-gltf 0.1.24 → 0.1.25

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/dist/index.mjs CHANGED
@@ -1102,12 +1102,14 @@ function toMaterialAsset(mat, ctx) {
1102
1102
  } : {}
1103
1103
  }
1104
1104
  };
1105
+ const child = !rootContract.extended && ctx?.standardRootGuid !== void 0;
1105
1106
  return {
1106
1107
  kind: "material",
1107
- colorSpace: "linear",
1108
- ...!rootContract.extended && ctx?.standardRootGuid !== void 0 ? { parent: ctx.standardRootGuid } : {},
1109
- passes: [pass],
1110
- ...ctx?.standardRootGuid !== void 0 && !rootContract.extended ? {} : { parameters: standardMaterialParameters(rootContract.names) },
1108
+ ...child ? { parent: ctx.standardRootGuid } : {
1109
+ colorSpace: "linear",
1110
+ passes: [pass],
1111
+ parameters: standardMaterialParameters(rootContract.names)
1112
+ },
1111
1113
  values
1112
1114
  };
1113
1115
  }