@galacean/engine 1.1.0-beta.36 → 1.1.0-beta.37

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/browser.js CHANGED
@@ -26656,7 +26656,12 @@
26656
26656
  if (componentA.instanceId === componentB.instanceId) {
26657
26657
  return dataA.material._priority - dataB.material._priority || componentA._distanceForSort - componentB._distanceForSort;
26658
26658
  } else {
26659
- return componentA._distanceForSort - componentB._distanceForSort;
26659
+ var distanceDiff = componentA._distanceForSort - componentB._distanceForSort;
26660
+ if (distanceDiff === 0) {
26661
+ return componentA.instanceId - componentB.instanceId;
26662
+ } else {
26663
+ return distanceDiff;
26664
+ }
26660
26665
  }
26661
26666
  };
26662
26667
  /**
@@ -26674,7 +26679,12 @@
26674
26679
  if (componentA.instanceId === componentB.instanceId) {
26675
26680
  return dataA.material._priority - dataB.material._priority || componentB._distanceForSort - componentA._distanceForSort;
26676
26681
  } else {
26677
- return componentB._distanceForSort - componentA._distanceForSort;
26682
+ var distanceDiff = componentB._distanceForSort - componentA._distanceForSort;
26683
+ if (distanceDiff === 0) {
26684
+ return componentA.instanceId - componentB.instanceId;
26685
+ } else {
26686
+ return distanceDiff;
26687
+ }
26678
26688
  }
26679
26689
  };
26680
26690
  return RenderQueue;
@@ -44028,7 +44038,7 @@
44028
44038
  ], GALACEAN_animation_event);
44029
44039
 
44030
44040
  //@ts-ignore
44031
- var version = "1.1.0-beta.36";
44041
+ var version = "1.1.0-beta.37";
44032
44042
  console.log("Galacean engine version: " + version);
44033
44043
  for(var key in CoreObjects){
44034
44044
  Loader.registerClass(key, CoreObjects[key]);