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
244406d0
Commit
244406d0
authored
9 months ago
by
bp0002
Browse files
Options
Download
Email Patches
Plain Diff
# fix: Trail Material Not Cache
parent
51c88630
prefab
npm_2.0_prefab
v2.0.170
v2.0.169
v2.0.168
v2.0.167
v2.0.166
v2.0.165
v2.0.164
v2.0.163
v2.0.162
v2.0.161
v2.0.160
v2.0.159
v2.0.158
v2.0.157
v2.0.156
v2.0.155
v2.0.154
v2.0.153
v2.0.152
v2.0.151
v2.0.150
v2.0.149
v2.0.148
v2.0.147
v2.0.146
v2.0.145
v2.0.144
v2.0.143
v2.0.142
v2.0.141
v2.0.140
v2.0.139
v2.0.138
v2.0.137
v2.0.136
v2.0.135
v2.0.134
v2.0.133
v2.0.132
v2.0.131
v2.0.130
v2.0.129
v2.0.128
v2.0.127
v2.0.126
v2.0.125
v2.0.124
v2.0.123
v2.0.122
v2.0.121
v2.0.120
v2.0.119
v2.0.118
v2.0.117
v2.0.116
v2.0.115
v2.0.114
v2.0.113
v2.0.112
v2.0.111
v2.0.110
v2.0.109
v2.0.108
v2.0.107
v2.0.106
v2.0.105
v2.0.104
v2.0.103
v2.0.102
v2.0.101
v2.0.100
v2.0.99
v2.0.98
v2.0.97
v2.0.96
v2.0.95
v2.0.94
v2.0.93
v2.0.92
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh_particle/extend.ts
+3
-3
src/mesh_particle/extend.ts
with
3 additions
and
3 deletions
+3
-3
src/mesh_particle/extend.ts
+
3
-
3
View file @
244406d0
...
...
@@ -144,7 +144,7 @@ export function initial() {
let
indexMat
=
meshParticleConfig
.
trail
.
material
;
let
material
=
this
.
gltf
.
materials
[
indexMat
];
let
forParticleSys
=
fals
e
;
let
forParticleSys
=
tru
e
;
let
babylonMaterial
=
this
.
_loadMaterialAsync
(
"
/materials/
"
+
indexMat
,
indexMat
,
0
,
material
,
<
any
>
meshParticle
.
psTool
.
trail
.
mesh
,
0
,
!
forParticleSys
);
if
(
!
forParticleSys
&&
ExtensionTools
.
Option
.
optimizeMaterialWithResTab
)
{
let
mesh
=
<
StandardMaterialMesh
>
meshParticle
.
psTool
.
trail
.
mesh
;
...
...
@@ -262,7 +262,7 @@ export function initial() {
// Trail
if
(
meshParticleConfig
.
trail
)
{
let
material
=
(
<
any
>
this
).
_gltf
.
materials
[
meshParticleConfig
.
trail
.
material
];
let
forParticleSys
=
fals
e
;
let
forParticleSys
=
tru
e
;
let
trailPromisre
=
this
.
_loadMaterialAsync
(
"
/materials/
"
+
meshParticleConfig
.
trail
.
material
,
material
,
meshParticle
.
psTool
.
trail
.
mesh
,
0
,
function
(
babylonMaterial
)
{
if
(
!
forParticleSys
&&
ExtensionTools
.
Option
.
optimizeMaterialWithResTab
)
{
let
mesh
=
<
StandardMaterialMesh
>
meshParticle
.
psTool
.
trail
.
mesh
;
...
...
@@ -361,7 +361,7 @@ export function initial() {
// Trail
if
(
meshParticleConfig
.
trail
)
{
let
forParticleSys
=
fals
e
;
let
forParticleSys
=
tru
e
;
let
material
=
(
<
any
>
this
).
_gltf
.
materials
[
meshParticleConfig
.
trail
.
material
];
let
trailPromisre
=
this
.
_loadMaterialAsync
(
"
/materials/
"
+
meshParticleConfig
.
trail
.
material
,
material
,
meshParticle
.
psTool
.
trail
.
mesh
,
0
,
function
(
babylonMaterial
)
{
...
...
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