diff options
Diffstat (limited to 'linden/indra/newview/llfloaterimagepreview.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterimagepreview.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterimagepreview.cpp b/linden/indra/newview/llfloaterimagepreview.cpp index 0a91563..554555d 100644 --- a/linden/indra/newview/llfloaterimagepreview.cpp +++ b/linden/indra/newview/llfloaterimagepreview.cpp | |||
@@ -50,6 +50,7 @@ | |||
50 | #include "pipeline.h" | 50 | #include "pipeline.h" |
51 | #include "viewer.h" | 51 | #include "viewer.h" |
52 | #include "llvieweruictrlfactory.h" | 52 | #include "llvieweruictrlfactory.h" |
53 | #include "llviewerimagelist.h" | ||
53 | 54 | ||
54 | //static | 55 | //static |
55 | S32 LLFloaterImagePreview::sUploadAmount = 10; | 56 | S32 LLFloaterImagePreview::sUploadAmount = 10; |
@@ -57,9 +58,10 @@ S32 LLFloaterImagePreview::sUploadAmount = 10; | |||
57 | const S32 PREVIEW_BORDER_WIDTH = 2; | 58 | const S32 PREVIEW_BORDER_WIDTH = 2; |
58 | const S32 PREVIEW_RESIZE_HANDLE_SIZE = S32(RESIZE_HANDLE_WIDTH * OO_SQRT2) + PREVIEW_BORDER_WIDTH; | 59 | const S32 PREVIEW_RESIZE_HANDLE_SIZE = S32(RESIZE_HANDLE_WIDTH * OO_SQRT2) + PREVIEW_BORDER_WIDTH; |
59 | const S32 PREVIEW_HPAD = PREVIEW_RESIZE_HANDLE_SIZE; | 60 | const S32 PREVIEW_HPAD = PREVIEW_RESIZE_HANDLE_SIZE; |
60 | const S32 PREF_BUTTON_HEIGHT = 16; | 61 | const S32 PREF_BUTTON_HEIGHT = 16 + 7 + 16; |
61 | const S32 PREVIEW_TEXTURE_HEIGHT = 300; | 62 | const S32 PREVIEW_TEXTURE_HEIGHT = 300; |
62 | 63 | ||
64 | |||
63 | //----------------------------------------------------------------------------- | 65 | //----------------------------------------------------------------------------- |
64 | // LLFloaterImagePreview() | 66 | // LLFloaterImagePreview() |
65 | //----------------------------------------------------------------------------- | 67 | //----------------------------------------------------------------------------- |
@@ -106,6 +108,10 @@ BOOL LLFloaterImagePreview::postBuild() | |||
106 | 108 | ||
107 | mSculptedPreview = new LLImagePreviewSculpted(256, 256); | 109 | mSculptedPreview = new LLImagePreviewSculpted(256, 256); |
108 | mSculptedPreview->setPreviewTarget(mRawImagep, 2.0f); | 110 | mSculptedPreview->setPreviewTarget(mRawImagep, 2.0f); |
111 | |||
112 | if ((mRawImagep->getWidth() <= LL_IMAGE_REZ_LOSSLESS_CUTOFF) && | ||
113 | (mRawImagep->getHeight() <= LL_IMAGE_REZ_LOSSLESS_CUTOFF)) | ||
114 | childEnable("lossless_check"); | ||
109 | } | 115 | } |
110 | else | 116 | else |
111 | { | 117 | { |
@@ -763,6 +769,7 @@ LLImagePreviewSculpted::LLImagePreviewSculpted(S32 width, S32 height) : LLDynami | |||
763 | 769 | ||
764 | LLVolumeParams volume_params; | 770 | LLVolumeParams volume_params; |
765 | volume_params.setType(LL_PCODE_PROFILE_CIRCLE, LL_PCODE_PATH_CIRCLE); | 771 | volume_params.setType(LL_PCODE_PROFILE_CIRCLE, LL_PCODE_PATH_CIRCLE); |
772 | volume_params.setSculptID(LLUUID::null, LL_SCULPT_TYPE_SPHERE); | ||
766 | mVolume = new LLVolume(volume_params, (F32) MAX_LOD); | 773 | mVolume = new LLVolume(volume_params, (F32) MAX_LOD); |
767 | 774 | ||
768 | /* | 775 | /* |