diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloateranimpreview.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/linden/indra/newview/llfloateranimpreview.cpp b/linden/indra/newview/llfloateranimpreview.cpp index a7d880e..ce7737d 100644 --- a/linden/indra/newview/llfloateranimpreview.cpp +++ b/linden/indra/newview/llfloateranimpreview.cpp | |||
@@ -326,6 +326,7 @@ BOOL LLFloaterAnimPreview::postBuild() | |||
326 | seconds_string = llformat(" - %.2f seconds", motionp->getDuration()); | 326 | seconds_string = llformat(" - %.2f seconds", motionp->getDuration()); |
327 | 327 | ||
328 | setTitle(mFilename + std::string(seconds_string)); | 328 | setTitle(mFilename + std::string(seconds_string)); |
329 | |||
329 | } | 330 | } |
330 | else | 331 | else |
331 | { | 332 | { |
@@ -371,6 +372,13 @@ BOOL LLFloaterAnimPreview::postBuild() | |||
371 | //----------------------------------------------------------------------------- | 372 | //----------------------------------------------------------------------------- |
372 | LLFloaterAnimPreview::~LLFloaterAnimPreview() | 373 | LLFloaterAnimPreview::~LLFloaterAnimPreview() |
373 | { | 374 | { |
375 | if (mMotionID.notNull() && mAnimPreview) | ||
376 | { | ||
377 | mAnimPreview->getDummyAvatar()->deactivateAllMotions(); | ||
378 | mAnimPreview->getDummyAvatar()->removeMotion(mMotionID); | ||
379 | LLKeyframeDataCache::removeKeyframeData(mMotionID); | ||
380 | } | ||
381 | |||
374 | delete mAnimPreview; | 382 | delete mAnimPreview; |
375 | mAnimPreview = NULL; | 383 | mAnimPreview = NULL; |
376 | 384 | ||
@@ -389,7 +397,7 @@ void LLFloaterAnimPreview::draw() | |||
389 | 397 | ||
390 | if (mMotionID.notNull() && mAnimPreview) | 398 | if (mMotionID.notNull() && mAnimPreview) |
391 | { | 399 | { |
392 | gGL.color3f(1.f, 1.f, 1.f); | 400 | /* gGL.color3f(1.f, 1.f, 1.f); |
393 | 401 | ||
394 | gGL.getTexUnit(0)->bind(mAnimPreview->getTexture()); | 402 | gGL.getTexUnit(0)->bind(mAnimPreview->getTexture()); |
395 | 403 | ||
@@ -407,7 +415,7 @@ void LLFloaterAnimPreview::draw() | |||
407 | gGL.end(); | 415 | gGL.end(); |
408 | 416 | ||
409 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); | 417 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); |
410 | 418 | */ | |
411 | LLVOAvatar* avatarp = mAnimPreview->getDummyAvatar(); | 419 | LLVOAvatar* avatarp = mAnimPreview->getDummyAvatar(); |
412 | if (!avatarp->areAnimationsPaused()) | 420 | if (!avatarp->areAnimationsPaused()) |
413 | { | 421 | { |
@@ -451,7 +459,7 @@ void LLFloaterAnimPreview::resetMotion() | |||
451 | mPauseRequest = NULL; | 459 | mPauseRequest = NULL; |
452 | } | 460 | } |
453 | } | 461 | } |
454 | 462 | /* | |
455 | //----------------------------------------------------------------------------- | 463 | //----------------------------------------------------------------------------- |
456 | // handleMouseDown() | 464 | // handleMouseDown() |
457 | //----------------------------------------------------------------------------- | 465 | //----------------------------------------------------------------------------- |
@@ -553,7 +561,7 @@ void LLFloaterAnimPreview::onMouseCaptureLost() | |||
553 | { | 561 | { |
554 | gViewerWindow->showCursor(); | 562 | gViewerWindow->showCursor(); |
555 | } | 563 | } |
556 | 564 | */ | |
557 | //----------------------------------------------------------------------------- | 565 | //----------------------------------------------------------------------------- |
558 | // onBtnPlay() | 566 | // onBtnPlay() |
559 | //----------------------------------------------------------------------------- | 567 | //----------------------------------------------------------------------------- |