SL-98 - Remove special new tab-specific display behavior
parent
f1df486208
commit
ca43cc2305
|
|
@ -270,7 +270,6 @@ BOOL LLFloaterModelPreview::postBuild()
|
|||
LLPanel *panel = mTabContainer->getPanelByName("rigging_panel");
|
||||
mAvatarTabIndex = mTabContainer->getIndexForPanel(panel);
|
||||
panel->getChild<LLScrollListCtrl>("joints_list")->setCommitCallback(boost::bind(&LLFloaterModelPreview::onJointListSelection, this));
|
||||
mPhysicsTabIndex = mTabContainer->getIndexForPanel(mTabContainer->getPanelByName("physics_panel"));
|
||||
|
||||
if (LLConvexDecomposition::getInstance() != NULL)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -231,7 +231,6 @@ private:
|
|||
LLTabContainer* mTabContainer;
|
||||
|
||||
S32 mAvatarTabIndex; // just to avoid any issues in case of xml changes
|
||||
S32 mPhysicsTabIndex;
|
||||
std::string mSelectedJointName;
|
||||
|
||||
joint_override_data_map_t mJointOverrides[LLModel::NUM_LODS];
|
||||
|
|
|
|||
|
|
@ -3404,10 +3404,7 @@ BOOL LLModelPreview::render()
|
|||
{
|
||||
gDebugProgram.bind();
|
||||
}
|
||||
if (fmp->mTabContainer->getCurrentPanelIndex() == fmp->mPhysicsTabIndex)
|
||||
{ // Physics collision volumes obscure a lot, so only show them when on the physics tab.
|
||||
getPreviewAvatar()->renderCollisionVolumes();
|
||||
}
|
||||
getPreviewAvatar()->renderCollisionVolumes();
|
||||
if (fmp->mTabContainer->getCurrentPanelIndex() == fmp->mAvatarTabIndex)
|
||||
{
|
||||
getPreviewAvatar()->renderBones(fmp->mSelectedJointName);
|
||||
|
|
|
|||
Loading…
Reference in New Issue