Skip to content

Commit

Permalink
fix convertion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev committed Aug 2, 2021
1 parent e3b2f1a commit 24787ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/curve/sprites/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Matrix } from '@pixi/math';
import { Sprite2s } from './Sprite2s';
import { ProjectionSurface } from '../ProjectionSurface';

Sprite.prototype.convertTo2s = function convertTo2s()
Sprite.prototype.convertTo2s = function spriteConvertTo2s()
{
if (this.proj) return;
// container
Expand Down
8 changes: 4 additions & 4 deletions src/proj2d/sprites/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function convertTo2d()

Container.prototype.convertTo2d = convertTo2d;

Sprite.prototype.convertTo2d = function convertTo2d()
Sprite.prototype.convertTo2d = function spriteConvertTo2d()
{
if (this.proj) return;
this.calculateVertices = Sprite2d.prototype.calculateVertices;
Expand All @@ -34,7 +34,7 @@ Sprite.prototype.convertTo2d = function convertTo2d()
convertTo2d.call(this);
};

Container.prototype.convertSubtreeTo2d = function convertTo2d()
Container.prototype.convertSubtreeTo2d = function convertSubtreeTo2d()
{
this.convertTo2d();
for (let i = 0; i < this.children.length; i++)
Expand All @@ -45,7 +45,7 @@ Container.prototype.convertSubtreeTo2d = function convertTo2d()

SimpleMesh.prototype.convertTo2d
= SimpleRope.prototype.convertTo2d
= function convertTo2d()
= function meshConvertTo2d()
{
if (this.proj) return;
this.calculateVertices = Mesh2d.prototype.calculateVertices;
Expand All @@ -60,7 +60,7 @@ SimpleMesh.prototype.convertTo2d
convertTo2d.call(this);
};

TilingSprite.prototype.convertTo2d = function convertTo2d()
TilingSprite.prototype.convertTo2d = function tilingConvertTo2d()
{
if (this.proj) return;

Expand Down
6 changes: 3 additions & 3 deletions src/proj3d/sprites/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function convertTo3d()

Container.prototype.convertTo3d = convertTo3d;

Sprite.prototype.convertTo3d = function convertTo3d()
Sprite.prototype.convertTo3d = function spriteConvertTo3d()
{
if (this.proj) return;
this.calculateVertices = Sprite3d.prototype.calculateVertices;
Expand All @@ -56,7 +56,7 @@ Sprite.prototype.convertTo3d = function convertTo3d()
convertTo3d.call(this);
};

Container.prototype.convertSubtreeTo3d = function convertTo3d()
Container.prototype.convertSubtreeTo3d = function convertSubtreeTo3d()
{
this.convertTo3d();
for (let i = 0; i < this.children.length; i++)
Expand All @@ -67,7 +67,7 @@ Container.prototype.convertSubtreeTo3d = function convertTo3d()

SimpleMesh.prototype.convertTo3d
= SimpleRope.prototype.convertTo3d
= function convertTo3d()
= function meshConvert3d()
{
if (this.proj) return;
this.calculateVertices = Mesh3d2d.prototype.calculateVertices;
Expand Down

0 comments on commit 24787ea

Please sign in to comment.