|
@@ -1271,9 +1271,9 @@ module BABYLON {
|
|
|
* Disposes the material
|
|
|
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
|
* @param forceDisposeTextures specifies if textures should be forcefully disposed
|
|
|
- * @param isLineMeshColorShader specifies if the material that is being disposed is the ShaderMaterial of a LinesMesh
|
|
|
+ * @param notBoundToMesh specifies if the material that is being disposed is known to be not bound to any mesh
|
|
|
*/
|
|
|
- public dispose(forceDisposeEffect?: boolean, forceDisposeTextures?: boolean, isLineMeshColorShader?: boolean): void {
|
|
|
+ public dispose(forceDisposeEffect?: boolean, forceDisposeTextures?: boolean, notBoundToMesh?: boolean): void {
|
|
|
const scene = this.getScene();
|
|
|
// Animations
|
|
|
scene.stopAnimation(this);
|
|
@@ -1282,7 +1282,7 @@ module BABYLON {
|
|
|
// Remove from scene
|
|
|
scene.removeMaterial(this);
|
|
|
|
|
|
- if (isLineMeshColorShader !== true) {
|
|
|
+ if (notBoundToMesh !== true) {
|
|
|
// Remove from meshes
|
|
|
if (this.meshMap) {
|
|
|
for (let meshId in this.meshMap) {
|