@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.
@@ -829,12 +829,14 @@ function toMaterialAsset(mat, ctx) {
829
829
  } : {}
830
830
  }
831
831
  };
832
+ const child = !rootContract.extended && ctx?.standardRootGuid !== void 0;
832
833
  return {
833
834
  kind: "material",
834
- colorSpace: "linear",
835
- ...!rootContract.extended && ctx?.standardRootGuid !== void 0 ? { parent: ctx.standardRootGuid } : {},
836
- passes: [pass],
837
- ...ctx?.standardRootGuid !== void 0 && !rootContract.extended ? {} : { parameters: standardMaterialParameters(rootContract.names) },
835
+ ...child ? { parent: ctx.standardRootGuid } : {
836
+ colorSpace: "linear",
837
+ passes: [pass],
838
+ parameters: standardMaterialParameters(rootContract.names)
839
+ },
838
840
  values
839
841
  };
840
842
  }