Fix for people reporting crashes when attempting to open the gesture editor.
Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
@@ -374,10 +374,6 @@ LLPreviewGesture::LLPreviewGesture()
|
|||||||
mSoundCombo(NULL),
|
mSoundCombo(NULL),
|
||||||
mChatEditor(NULL),
|
mChatEditor(NULL),
|
||||||
mSaveBtn(NULL),
|
mSaveBtn(NULL),
|
||||||
// <edit>
|
|
||||||
mDuplicateBtn(NULL),
|
|
||||||
mOpenBtn(NULL),
|
|
||||||
// </edit>
|
|
||||||
mPreviewBtn(NULL),
|
mPreviewBtn(NULL),
|
||||||
mPreviewGesture(NULL),
|
mPreviewGesture(NULL),
|
||||||
mDirty(FALSE)
|
mDirty(FALSE)
|
||||||
@@ -739,8 +735,6 @@ void LLPreviewGesture::refresh()
|
|||||||
mActiveCheck->setEnabled(FALSE);
|
mActiveCheck->setEnabled(FALSE);
|
||||||
mSaveBtn->setEnabled(FALSE);
|
mSaveBtn->setEnabled(FALSE);
|
||||||
// <edit>
|
// <edit>
|
||||||
mDuplicateBtn->setEnabled(TRUE);
|
|
||||||
mOpenBtn->setEnabled(TRUE);
|
|
||||||
mStepList->setEnabled(TRUE);
|
mStepList->setEnabled(TRUE);
|
||||||
// </edit>
|
// </edit>
|
||||||
|
|
||||||
@@ -749,11 +743,7 @@ void LLPreviewGesture::refresh()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// <edit>
|
BOOL modifiable = item->getPermissions().allowModifyBy(gAgent.getID());
|
||||||
//BOOL modifiable = item->getPermissions().allowModifyBy(gAgent.getID());
|
|
||||||
BOOL modifiable = TRUE;
|
|
||||||
mOpenBtn->setEnabled(TRUE);
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
childSetEnabled("desc", modifiable);
|
childSetEnabled("desc", modifiable);
|
||||||
mTriggerEditor->setEnabled(TRUE);
|
mTriggerEditor->setEnabled(TRUE);
|
||||||
@@ -802,9 +792,6 @@ void LLPreviewGesture::refresh()
|
|||||||
mWaitAnimCheck->setVisible(FALSE);
|
mWaitAnimCheck->setVisible(FALSE);
|
||||||
mWaitTimeCheck->setVisible(FALSE);
|
mWaitTimeCheck->setVisible(FALSE);
|
||||||
mWaitTimeEditor->setVisible(FALSE);
|
mWaitTimeEditor->setVisible(FALSE);
|
||||||
// <edit>
|
|
||||||
mOpenBtn->setVisible(FALSE);
|
|
||||||
// </edit>
|
|
||||||
|
|
||||||
std::string optionstext;
|
std::string optionstext;
|
||||||
|
|
||||||
@@ -824,9 +811,6 @@ void LLPreviewGesture::refresh()
|
|||||||
mAnimationRadio->setVisible(TRUE);
|
mAnimationRadio->setVisible(TRUE);
|
||||||
mAnimationRadio->setSelectedIndex((anim_step->mFlags & ANIM_FLAG_STOP) ? 1 : 0);
|
mAnimationRadio->setSelectedIndex((anim_step->mFlags & ANIM_FLAG_STOP) ? 1 : 0);
|
||||||
mAnimationCombo->setCurrentByID(anim_step->mAnimAssetID);
|
mAnimationCombo->setCurrentByID(anim_step->mAnimAssetID);
|
||||||
// <edit>
|
|
||||||
mOpenBtn->setVisible(TRUE);
|
|
||||||
// </edit>
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case STEP_SOUND:
|
case STEP_SOUND:
|
||||||
@@ -835,9 +819,6 @@ void LLPreviewGesture::refresh()
|
|||||||
optionstext = getString("step_sound");
|
optionstext = getString("step_sound");
|
||||||
mSoundCombo->setVisible(TRUE);
|
mSoundCombo->setVisible(TRUE);
|
||||||
mSoundCombo->setCurrentByID(sound_step->mSoundAssetID);
|
mSoundCombo->setCurrentByID(sound_step->mSoundAssetID);
|
||||||
// <edit>
|
|
||||||
mOpenBtn->setVisible(TRUE);
|
|
||||||
// </edit>
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case STEP_CHAT:
|
case STEP_CHAT:
|
||||||
|
|||||||
@@ -192,10 +192,7 @@ protected:
|
|||||||
|
|
||||||
LLCheckBoxCtrl* mActiveCheck;
|
LLCheckBoxCtrl* mActiveCheck;
|
||||||
LLButton* mSaveBtn;
|
LLButton* mSaveBtn;
|
||||||
// <edit>
|
|
||||||
LLButton* mDuplicateBtn;
|
|
||||||
LLButton* mOpenBtn;
|
|
||||||
// </edit>
|
|
||||||
LLButton* mPreviewBtn;
|
LLButton* mPreviewBtn;
|
||||||
|
|
||||||
LLMultiGesture* mPreviewGesture;
|
LLMultiGesture* mPreviewGesture;
|
||||||
|
|||||||
Reference in New Issue
Block a user