@@ -117,15 +117,14 @@ public EventObjectEmitterObject(final MdxModel model, final MdlxEventObject even
117117
118118 final ModelViewer viewer = model .viewer ;
119119 final String name = eventObject .getName ();
120- String type = name .substring (0 , 3 );
120+ final String type = name .substring (0 , 3 );
121121 final String id = name .substring (4 );
122122
123123 // Same thing
124124 if ("FPT" .equals (type )) {
125- type = "SPL" ;
125+ this . geometryEmitterType = GeometryEmitterFuncs . EMITTER_SPLAT ;
126126 }
127-
128- if ("SPL" .equals (type )) {
127+ else if ("SPL" .equals (type )) {
129128 this .geometryEmitterType = GeometryEmitterFuncs .EMITTER_SPLAT ;
130129 }
131130 else if ("UBR" .equals (type )) {
@@ -156,6 +155,10 @@ else if ("SPL".equals(type)) {
156155 tables .add (viewer .loadGeneric (pathSolver .solve ("Splats\\ SplatData.slk" , solverParams ).finalSrc ,
157156 FetchDataTypeName .SLK , mappedDataCallback ));
158157 }
158+ else if ("FPT" .equals (type )) {
159+ tables .add (viewer .loadGeneric (pathSolver .solve ("Splats\\ SplatData.slk" , solverParams ).finalSrc ,
160+ FetchDataTypeName .SLK , mappedDataCallback ));
161+ }
159162 else if ("UBR" .equals (type )) {
160163 tables .add (viewer .loadGeneric (pathSolver .solve ("Splats\\ UberSplatData.slk" , solverParams ).finalSrc ,
161164 FetchDataTypeName .SLK , mappedDataCallback ));
@@ -229,7 +232,7 @@ private void load(final List<GenericResource> tables) {
229232 this .ok = this .internalModel .ok ;
230233 }
231234 }
232- else if ("SPL" .equals (this .type ) || "UBR" .equals (this .type )) {
235+ else if ("SPL" .equals (this .type ) || "FPT" . equals ( this . type ) || " UBR" .equals (this .type )) {
233236 final String texturesExt = model .reforged ? ".dds" : ".blp" ;
234237
235238 this .internalTexture = (Texture ) viewer .load (row .get ("Dir" ) + "\\ " + row .get ("file" ) + texturesExt ,
@@ -244,7 +247,7 @@ else if ("SPL".equals(this.type) || "UBR".equals(this.type)) {
244247 { getFloat (row , "EndR" ), getFloat (row , "EndG" ), getFloat (row , "EndB" ),
245248 getFloat (row , "EndA" ) } };
246249
247- if ("SPL" .equals (this .type )) {
250+ if ("SPL" .equals (this .type ) || "FPT" . equals ( this . type ) ) {
248251 this .columns = getInt (row , "Columns" );
249252 this .rows = getInt (row , "Rows" );
250253 this .lifeSpan = getFloat (row , "Lifespan" ) + getFloat (row , "Decay" );
0 commit comments