Add crash fix by day oh and fix hex editor

This commit is contained in:
Hazim Gazov
2010-04-03 11:01:47 -03:00
parent 3e4dd65ad8
commit a8e7d3f3d9
3 changed files with 21 additions and 2 deletions

View File

@@ -658,7 +658,15 @@ BOOL LLKeyframeMotion::onActivate()
// If the keyframe anim has an associated emote, trigger it.
if( mJointMotionList->mEmoteName.length() > 0 )
{
mCharacter->startMotion( gAnimLibrary.stringToAnimState(mJointMotionList->mEmoteName) );
// <edit> crashfix
//mCharacter->startMotion( gAnimLibrary.stringToAnimState(mJointMotionList->mEmoteName) );
LLUUID emo = gAnimLibrary.stringToAnimState(mJointMotionList->mEmoteName);
if(mCharacter->findMotion(emo) == NULL)
{
mCharacter->startMotion(emo);
}
// </edit>
}
mLastLoopedTime = 0.f;

View File

@@ -12654,5 +12654,16 @@
<integer>473</integer>
</array>
</map>
<key>HexEditorColumns</key>
<map>
<key>Comment</key>
<string>Number of columns shown in hex editor</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>U32</string>
<key>Value</key>
<integer>16</integer>
</map>
</map>
</llsd>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater can_close="true" can_drag_on_left="false" can_minimize="true"
can_resize="true" height="200" width="560" min_width="560" min_height="128"
can_resize="true" height="200" width="580" min_width="580" min_height="128"
name="floater_hex" title="Hex Editor" rect_control="FloaterHexRect">
<text name="status_text" follows="left|top" left="10" top="-25" height="20">Loading...</text>
<button name="upload_btn" follows="right|top" top="-25" right="-120" width="100" bottom="155" label="[UPLOAD]" enabled="false"/>