From 8a8339a9a85b930bb01f98f4f99f28082a476309 Mon Sep 17 00:00:00 2001 From: William Todd Stinson Date: Tue, 9 Oct 2012 17:19:24 -0700 Subject: Adding a reset inputs button to the edit tab. --- indra/newview/llfloaterdebugmaterials.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview/llfloaterdebugmaterials.cpp') diff --git a/indra/newview/llfloaterdebugmaterials.cpp b/indra/newview/llfloaterdebugmaterials.cpp index f6af2b68fa..8e37736394 100644 --- a/indra/newview/llfloaterdebugmaterials.cpp +++ b/indra/newview/llfloaterdebugmaterials.cpp @@ -217,6 +217,10 @@ BOOL LLFloaterDebugMaterials::postBuild() llassert(mPutClearButton != NULL); mPutClearButton->setCommitCallback(boost::bind(&LLFloaterDebugMaterials::onPutClearClicked, this)); + LLButton* resetPutValuesButton = findChild("reset_put_values_button"); + llassert(resetPutValuesButton != NULL); + resetPutValuesButton->setCommitCallback(boost::bind(&LLFloaterDebugMaterials::onResetPutValuesClicked, this)); + mPutScrollList = findChild("put_scroll_list"); llassert(mPutScrollList != NULL); @@ -387,6 +391,11 @@ void LLFloaterDebugMaterials::onPutClearClicked() requestPutMaterials(false); } +void LLFloaterDebugMaterials::onResetPutValuesClicked() +{ + resetObjectEditInputs(); +} + void LLFloaterDebugMaterials::onQueryVisibleObjectsClicked() { queryViewableObjects(); -- cgit v1.2.3