@@ -74,7 +74,7 @@ public static GaiaSet readFile(Path path) throws FileNotFoundException {
74
74
}
75
75
return gaiaSet ;
76
76
} catch (Exception e ) {
77
- log .error ("GaiaSet Read Error : " , e );
77
+ log .error ("[ERROR] GaiaSet Read Error : " , e );
78
78
}
79
79
return null ;
80
80
}
@@ -97,7 +97,7 @@ public static GaiaSet readFileForPR(Path path) throws FileNotFoundException {
97
97
// }
98
98
return gaiaSet ;
99
99
} catch (Exception e ) {
100
- log .error ("GaiaSet Read Error : " , e );
100
+ log .error ("[ERROR] GaiaSet Read Error : " , e );
101
101
}
102
102
return null ;
103
103
}
@@ -109,7 +109,7 @@ public GaiaBoundingBox getBoundingBox() {
109
109
}
110
110
return boundingBox ;
111
111
}
112
-
112
+
113
113
public Path writeFileForPR (Path path , boolean copyTexturesToNewPath ) {
114
114
String tempFileName = this .attribute .getIdentifier ().toString () + "." + FormatType .TEMP .getExtension ();
115
115
Path tempDir = path .resolve (this .projectName );
@@ -127,7 +127,7 @@ public Path writeFileForPR(Path path, boolean copyTexturesToNewPath) {
127
127
}
128
128
129
129
} catch (Exception e ) {
130
- log .error ("GaiaSet Write Error : " , e );
130
+ log .error ("[ERROR] GaiaSet Write Error : " , e );
131
131
tempFile .delete ();
132
132
}
133
133
return tempFile .toPath ();
@@ -146,7 +146,7 @@ public Path writeFileInThePath(Path path) {
146
146
copyTextures (material , folder );
147
147
}
148
148
} catch (Exception e ) {
149
- log .error ("GaiaSet Write Error : " , e );
149
+ log .error ("[ERROR] GaiaSet Write Error : " , e );
150
150
file .delete ();
151
151
}
152
152
return file .toPath ();
@@ -170,7 +170,7 @@ public Path writeFile(Path path, int serial, GaiaAttribute gaiaAttribute) {
170
170
copyTextures (material , tempDir );
171
171
}
172
172
} catch (Exception e ) {
173
- log .error ("GaiaSet Write Error : " , e );
173
+ log .error ("[ERROR] GaiaSet Write Error : " , e );
174
174
tempFile .delete ();
175
175
}
176
176
return tempFile .toPath ();
@@ -194,7 +194,7 @@ public Path writeFile(Path path, int serial, GaiaAttribute gaiaAttribute, float
194
194
copyTextures (material , tempDir , scale );
195
195
}
196
196
} catch (Exception e ) {
197
- log .error ("GaiaSet Write Error : " , e );
197
+ log .error ("[ERROR] GaiaSet Write Error : " , e );
198
198
tempFile .delete ();
199
199
}
200
200
return tempFile .toPath ();
@@ -226,7 +226,7 @@ private void copyTextures(GaiaMaterial material, Path copyDirectory) throws IOEx
226
226
}
227
227
texture .setPath (imageFile .getName ());
228
228
if (!imageFile .exists ()) {
229
- log .error ("Texture Input Image Path is not exists. {}" , diffusePath );
229
+ log .error ("[ERROR] Texture Input Image Path is not exists. {}" , diffusePath );
230
230
} else {
231
231
FileUtils .copyFile (imageFile , outputImageFile );
232
232
}
@@ -266,7 +266,7 @@ private void copyTextures(GaiaMaterial material, Path copyDirectory, float scale
266
266
}
267
267
texture .setPath (imageFile .getName ());
268
268
if (!imageFile .exists ()) {
269
- log .error ("Texture Input Image Path is not exists. {}" , diffusePath );
269
+ log .error ("[ERROR] Texture Input Image Path is not exists. {}" , diffusePath );
270
270
} else {
271
271
//FileUtils.copyFile(imageFile, outputImageFile);
272
272
ImageResizer imageResizer = new ImageResizer ();
@@ -305,7 +305,7 @@ public void translate(Vector3d translation) {
305
305
GaiaBuffer positionBuffer = bufferData .getBuffers ().get (AttributeType .POSITION );
306
306
307
307
if (positionBuffer == null ) {
308
- log .error ("Position buffer is null" );
308
+ log .error ("[ERROR] Position buffer is null" );
309
309
return ;
310
310
}
311
311
0 commit comments