aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterland.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterland.cpp37
1 files changed, 25 insertions, 12 deletions
diff --git a/linden/indra/newview/llfloaterland.cpp b/linden/indra/newview/llfloaterland.cpp
index 9ff44f4..82b50ec 100644
--- a/linden/indra/newview/llfloaterland.cpp
+++ b/linden/indra/newview/llfloaterland.cpp
@@ -1996,12 +1996,18 @@ BOOL LLPanelLandOptions::postBuild()
1996 1996
1997 1997
1998 mSnapshotCtrl = LLUICtrlFactory::getTexturePickerByName(this, "snapshot_ctrl"); 1998 mSnapshotCtrl = LLUICtrlFactory::getTexturePickerByName(this, "snapshot_ctrl");
1999 mSnapshotCtrl->setCommitCallback( onCommitAny ); 1999 if (mSnapshotCtrl)
2000 mSnapshotCtrl->setCallbackUserData( this ); 2000 {
2001 mSnapshotCtrl->setAllowNoTexture ( TRUE ); 2001 mSnapshotCtrl->setCommitCallback( onCommitAny );
2002 mSnapshotCtrl->setImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER); 2002 mSnapshotCtrl->setCallbackUserData( this );
2003 mSnapshotCtrl->setNonImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER); 2003 mSnapshotCtrl->setAllowNoTexture ( TRUE );
2004 2004 mSnapshotCtrl->setImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER);
2005 mSnapshotCtrl->setNonImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER);
2006 }
2007 else
2008 {
2009 llwarns << "LLUICtrlFactory::getTexturePickerByName() returned NULL for 'snapshot_ctrl'" << llendl;
2010 }
2005 2011
2006 2012
2007 mLocationText = LLUICtrlFactory::getTextBoxByName(this, "Landing Point: (none)"); 2013 mLocationText = LLUICtrlFactory::getTextBoxByName(this, "Landing Point: (none)");
@@ -2333,12 +2339,19 @@ BOOL LLPanelLandMedia::postBuild()
2333 2339
2334 2340
2335 mMediaTextureCtrl = LLUICtrlFactory::getTexturePickerByName(this, "media texture"); 2341 mMediaTextureCtrl = LLUICtrlFactory::getTexturePickerByName(this, "media texture");
2336 mMediaTextureCtrl->setCommitCallback( onCommitAny ); 2342 if (mMediaTextureCtrl)
2337 mMediaTextureCtrl->setCallbackUserData( this ); 2343 {
2338 mMediaTextureCtrl->setAllowNoTexture ( TRUE ); 2344 mMediaTextureCtrl->setCommitCallback( onCommitAny );
2339 mMediaTextureCtrl->setImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER); 2345 mMediaTextureCtrl->setCallbackUserData( this );
2340 mMediaTextureCtrl->setNonImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER); 2346 mMediaTextureCtrl->setAllowNoTexture ( TRUE );
2341 2347 mMediaTextureCtrl->setImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER);
2348 mMediaTextureCtrl->setNonImmediateFilterPermMask(PERM_COPY | PERM_TRANSFER);
2349 }
2350 else
2351 {
2352 llwarns << "LLUICtrlFactory::getTexturePickerByName() returned NULL for 'media texure'" << llendl;
2353 }
2354
2342 mMediaAutoScaleCheck = LLUICtrlFactory::getCheckBoxByName(this, "media_auto_scale"); 2355 mMediaAutoScaleCheck = LLUICtrlFactory::getCheckBoxByName(this, "media_auto_scale");
2343 childSetCommitCallback("media_auto_scale", onCommitAny, this); 2356 childSetCommitCallback("media_auto_scale", onCommitAny, this);
2344 2357