浏览代码

Merge pull request #9720 from jasonsturges/particle-messages

Particle error messages
sebavan 4 年之前
父节点
当前提交
fcf2462660
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/Particles/particleHelper.ts
  2. 1 1
      src/Particles/pointsCloudSystem.ts

+ 1 - 1
src/Particles/particleHelper.ts

@@ -94,7 +94,7 @@ export class ParticleHelper {
                 return resolve(ParticleSystemSet.Parse(newData, scene!, gpu));
             }, undefined, undefined, undefined, () => {
                 scene!._removePendingData(token);
-                return reject(`An error occured while the creation of your particle system. Check if your type '${type}' exists.`);
+                return reject(`An error occurred with the creation of your particle system. Check if your type '${type}' exists.`);
             });
 
         });

+ 1 - 1
src/Particles/pointsCloudSystem.ts

@@ -462,7 +462,7 @@ export class PointsCloudSystem implements IDisposable {
         var mat = mesh.material;
         let textureList: BaseTexture[] = mat.getActiveTextures();
         if (textureList.length === 0) {
-            Logger.Warn(mesh.name + "has no useable texture.");
+            Logger.Warn(mesh.name + "has no usable texture.");
             pointsGroup._groupImageData = null;
             this._setPointsColorOrUV(mesh, pointsGroup, isVolume, true, false);
             return;