Skip to content
Snippets Groups Projects
Commit ad54a46b authored by leyla_linden's avatar leyla_linden
Browse files

SH-841 Hide physics parameters in build tools when connected to a region that...

SH-841 Hide physics parameters in build tools when connected to a region that doesn't support additional physics parameters.
parent ba8fcdcd
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
#include "llcoord.h"
//#include "llgl.h"
#include "llagent.h"
#include "llagentcamera.h"
#include "llbutton.h"
#include "llcheckboxctrl.h"
......@@ -463,7 +464,8 @@ void LLFloaterTools::refresh()
childSetEnabled("linked_set_cost", have_selection);
childSetEnabled("object_cost", have_selection);
bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled");
bool enable_mesh = gSavedSettings.getBOOL("MeshEnabled") &&
!gAgent.getRegion()->getCapability("GetMesh").empty();
getChildView("linked_set_count")->setVisible(enable_mesh);
getChildView("linked_set_cost")->setVisible(enable_mesh);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment