diff options
author | McCabe Maxsted | 2010-10-23 18:52:55 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-23 18:52:55 -0700 |
commit | 898a2c7f27798af8587bd513a7a94bc24a270d05 (patch) | |
tree | 30f4f67dad9c14f32e776575b169047454953d14 | |
parent | Prim alignment tool by Qarl, backported by Jacek. (diff) | |
download | meta-impy-898a2c7f27798af8587bd513a7a94bc24a270d05.zip meta-impy-898a2c7f27798af8587bd513a7a94bc24a270d05.tar.gz meta-impy-898a2c7f27798af8587bd513a7a94bc24a270d05.tar.bz2 meta-impy-898a2c7f27798af8587bd513a7a94bc24a270d05.tar.xz |
Fixed Windows compile errors in qtoolalign.cpp (Qarl's align patch)
-rw-r--r-- | linden/indra/newview/qtoolalign.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/newview/qtoolalign.cpp b/linden/indra/newview/qtoolalign.cpp index 92cab6e..d7f7ad0 100644 --- a/linden/indra/newview/qtoolalign.cpp +++ b/linden/indra/newview/qtoolalign.cpp | |||
@@ -393,7 +393,7 @@ void QToolAlign::render() | |||
393 | // only works for our specialized (AABB, position centered) bboxes | 393 | // only works for our specialized (AABB, position centered) bboxes |
394 | BOOL bbox_overlap(LLBBox bbox1, LLBBox bbox2) | 394 | BOOL bbox_overlap(LLBBox bbox1, LLBBox bbox2) |
395 | { | 395 | { |
396 | const F32 FUDGE = 0.001; // because of stupid SL precision/rounding | 396 | const F32 FUDGE = 0.001f; // because of stupid SL precision/rounding |
397 | 397 | ||
398 | LLVector3 delta = bbox1.getCenterAgent() - bbox2.getCenterAgent(); | 398 | LLVector3 delta = bbox1.getCenterAgent() - bbox2.getCenterAgent(); |
399 | 399 | ||
@@ -484,7 +484,7 @@ void QToolAlign::align() | |||
484 | std::map<LLPointer<LLViewerObject>, LLBBox > new_bboxes = original_bboxes; | 484 | std::map<LLPointer<LLViewerObject>, LLBBox > new_bboxes = original_bboxes; |
485 | 485 | ||
486 | // find new positions | 486 | // find new positions |
487 | for (S32 i = 0; i < objects.size(); i++) | 487 | for (S32 i = 0; i < (S32)objects.size(); i++) |
488 | { | 488 | { |
489 | LLBBox target_bbox = mBBox; | 489 | LLBBox target_bbox = mBBox; |
490 | LLVector3 target_corner = target_bbox.getCenterAgent() - | 490 | LLVector3 target_corner = target_bbox.getCenterAgent() - |
@@ -552,7 +552,7 @@ void QToolAlign::align() | |||
552 | } | 552 | } |
553 | 553 | ||
554 | // update target for next time through the loop | 554 | // update target for next time through the loop |
555 | if (j < objects.size()) | 555 | if (j < (S32)objects.size()) |
556 | { | 556 | { |
557 | LLBBox next_bbox = new_bboxes[objects[j]]; | 557 | LLBBox next_bbox = new_bboxes[objects[j]]; |
558 | target_corner = next_bbox.getCenterAgent() + | 558 | target_corner = next_bbox.getCenterAgent() + |
@@ -563,7 +563,7 @@ void QToolAlign::align() | |||
563 | 563 | ||
564 | 564 | ||
565 | // now move them | 565 | // now move them |
566 | for (S32 i = 0; i < objects.size(); i++) | 566 | for (S32 i = 0; i < (S32)objects.size(); i++) |
567 | { | 567 | { |
568 | LLViewerObject* object = objects[i]; | 568 | LLViewerObject* object = objects[i]; |
569 | 569 | ||