diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llmath/llvolume.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmath/llvolume.cpp | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/linden/indra/llmath/llvolume.cpp b/linden/indra/llmath/llvolume.cpp index bb3b24d..89644a5 100644 --- a/linden/indra/llmath/llvolume.cpp +++ b/linden/indra/llmath/llvolume.cpp | |||
@@ -742,10 +742,6 @@ BOOL LLProfileParams::importFile(FILE *fp) | |||
742 | buffer, | 742 | buffer, |
743 | " %255s %255s", | 743 | " %255s %255s", |
744 | keyword, valuestr); | 744 | keyword, valuestr); |
745 | if (!keyword) | ||
746 | { | ||
747 | continue; | ||
748 | } | ||
749 | if (!strcmp("{", keyword)) | 745 | if (!strcmp("{", keyword)) |
750 | { | 746 | { |
751 | continue; | 747 | continue; |
@@ -818,10 +814,6 @@ BOOL LLProfileParams::importLegacyStream(std::istream& input_stream) | |||
818 | " %255s %255s", | 814 | " %255s %255s", |
819 | keyword, | 815 | keyword, |
820 | valuestr); | 816 | valuestr); |
821 | if (!keyword) | ||
822 | { | ||
823 | continue; | ||
824 | } | ||
825 | if (!strcmp("{", keyword)) | 817 | if (!strcmp("{", keyword)) |
826 | { | 818 | { |
827 | continue; | 819 | continue; |
@@ -1245,10 +1237,6 @@ BOOL LLPathParams::importFile(FILE *fp) | |||
1245 | buffer, | 1237 | buffer, |
1246 | " %255s %255s", | 1238 | " %255s %255s", |
1247 | keyword, valuestr); | 1239 | keyword, valuestr); |
1248 | if (!keyword) | ||
1249 | { | ||
1250 | continue; | ||
1251 | } | ||
1252 | if (!strcmp("{", keyword)) | 1240 | if (!strcmp("{", keyword)) |
1253 | { | 1241 | { |
1254 | continue; | 1242 | continue; |
@@ -1389,10 +1377,6 @@ BOOL LLPathParams::importLegacyStream(std::istream& input_stream) | |||
1389 | buffer, | 1377 | buffer, |
1390 | " %255s %255s", | 1378 | " %255s %255s", |
1391 | keyword, valuestr); | 1379 | keyword, valuestr); |
1392 | if (!keyword) | ||
1393 | { | ||
1394 | continue; | ||
1395 | } | ||
1396 | if (!strcmp("{", keyword)) | 1380 | if (!strcmp("{", keyword)) |
1397 | { | 1381 | { |
1398 | continue; | 1382 | continue; |
@@ -3287,6 +3271,9 @@ BOOL LLVolume::cleanupTriangleData( const S32 num_input_vertices, | |||
3287 | if (new_num_triangles == 0) | 3271 | if (new_num_triangles == 0) |
3288 | { | 3272 | { |
3289 | llwarns << "Created volume object with 0 faces." << llendl; | 3273 | llwarns << "Created volume object with 0 faces." << llendl; |
3274 | delete[] new_triangles; | ||
3275 | delete[] vertex_mapping; | ||
3276 | delete[] new_vertices; | ||
3290 | return FALSE; | 3277 | return FALSE; |
3291 | } | 3278 | } |
3292 | 3279 | ||
@@ -3381,10 +3368,6 @@ BOOL LLVolumeParams::importFile(FILE *fp) | |||
3381 | { | 3368 | { |
3382 | fgets(buffer, BUFSIZE, fp); | 3369 | fgets(buffer, BUFSIZE, fp); |
3383 | sscanf(buffer, " %255s", keyword); /* Flawfinder: ignore */ | 3370 | sscanf(buffer, " %255s", keyword); /* Flawfinder: ignore */ |
3384 | if (!keyword) | ||
3385 | { | ||
3386 | continue; | ||
3387 | } | ||
3388 | if (!strcmp("{", keyword)) | 3371 | if (!strcmp("{", keyword)) |
3389 | { | 3372 | { |
3390 | continue; | 3373 | continue; |
@@ -3435,10 +3418,6 @@ BOOL LLVolumeParams::importLegacyStream(std::istream& input_stream) | |||
3435 | { | 3418 | { |
3436 | input_stream.getline(buffer, BUFSIZE); | 3419 | input_stream.getline(buffer, BUFSIZE); |
3437 | sscanf(buffer, " %255s", keyword); | 3420 | sscanf(buffer, " %255s", keyword); |
3438 | if (!keyword) | ||
3439 | { | ||
3440 | continue; | ||
3441 | } | ||
3442 | if (!strcmp("{", keyword)) | 3421 | if (!strcmp("{", keyword)) |
3443 | { | 3422 | { |
3444 | continue; | 3423 | continue; |