Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tech
pi_babylon
Commits
906d85ab
Commit
906d85ab
authored
10 months ago
by
bp0002
Browse files
Options
Download
Email Patches
Plain Diff
# fix: Atlas Frame
parent
6cddb99d
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sprite/sprite_atlas.ts
+5
-0
src/sprite/sprite_atlas.ts
with
5 additions
and
0 deletions
+5
-0
src/sprite/sprite_atlas.ts
+
5
-
0
View file @
906d85ab
...
...
@@ -39,6 +39,7 @@ export class TexturePackAtlas implements ITexturePackAtlas {
samplerMode
?:
number
;
alphaMode
?:
number
;
noMipmap
?:
boolean
;
renderMode
?:
0
|
1
;
public
static
fromJson
(
input
:
ITexturePackAtlas
[]
|
ITexturePackAtlasCompact
[])
{
if
(
input
instanceof
Array
)
{
let
items
=
[];
...
...
@@ -56,6 +57,7 @@ export class TexturePackAtlas implements ITexturePackAtlas {
result
.
samplerMode
=
data
.
samplerMode
;
result
.
alphaMode
=
data
.
alphaMode
;
result
.
noMipmap
=
data
.
noMipmap
;
result
.
renderMode
=
data
.
renderMode
;
items
.
push
(
result
)
}
else
{
let
result
=
new
TexturePackAtlas
();
...
...
@@ -66,6 +68,7 @@ export class TexturePackAtlas implements ITexturePackAtlas {
result
.
samplerMode
=
data
.
samplerMode
;
result
.
alphaMode
=
data
.
alphaMode
;
result
.
noMipmap
=
data
.
noMipmap
;
result
.
renderMode
=
data
.
renderMode
;
items
.
push
(
result
)
}
})
...
...
@@ -85,6 +88,7 @@ export class TexturePackAtlas implements ITexturePackAtlas {
result
.
samplerMode
=
data
.
samplerMode
;
result
.
alphaMode
=
data
.
alphaMode
;
result
.
noMipmap
=
data
.
noMipmap
;
result
.
renderMode
=
data
.
renderMode
;
return
result
;
}
else
{
let
result
=
new
TexturePackAtlas
();
...
...
@@ -95,6 +99,7 @@ export class TexturePackAtlas implements ITexturePackAtlas {
result
.
samplerMode
=
data
.
samplerMode
;
result
.
alphaMode
=
data
.
alphaMode
;
result
.
noMipmap
=
data
.
noMipmap
;
result
.
renderMode
=
data
.
renderMode
;
return
result
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help