Skip to content
Snippets Groups Projects
Commit c9370c75 authored by Ruslan Teliuk's avatar Ruslan Teliuk
Browse files

Merged oz_linden/391-blizzard into default

parents d4cb7f45 81d5e6e3
No related branches found
No related tags found
No related merge requests found
...@@ -89,14 +89,18 @@ void LLPanelPresetsPulldown::populatePanel() ...@@ -89,14 +89,18 @@ void LLPanelPresetsPulldown::populatePanel()
row["columns"][0]["column"] = "preset_name"; row["columns"][0]["column"] = "preset_name";
row["columns"][0]["value"] = name; row["columns"][0]["value"] = name;
bool is_selected_preset = false;
if (name == gSavedSettings.getString("PresetGraphicActive")) if (name == gSavedSettings.getString("PresetGraphicActive"))
{ {
row["columns"][1]["column"] = "icon"; row["columns"][1]["column"] = "icon";
row["columns"][1]["type"] = "icon"; row["columns"][1]["type"] = "icon";
row["columns"][1]["value"] = "Check_Mark"; row["columns"][1]["value"] = "Check_Mark";
is_selected_preset = true;
} }
scroll->addElement(row); LLScrollListItem* new_item = scroll->addElement(row);
new_item->setSelected(is_selected_preset);
} }
} }
} }
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "llworld.h" #include "llworld.h"
#include "pipeline.h" #include "pipeline.h"
#include "llspatialpartition.h" #include "llspatialpartition.h"
#include "llvoavatarself.h"
#include "llvovolume.h" #include "llvovolume.h"
const F32 PART_SIM_BOX_SIDE = 16.f; const F32 PART_SIM_BOX_SIDE = 16.f;
...@@ -703,16 +704,18 @@ void LLViewerPartSim::updateSimulation() ...@@ -703,16 +704,18 @@ void LLViewerPartSim::updateSimulation()
if (!mViewerPartSources[i]->isDead()) if (!mViewerPartSources[i]->isDead())
{ {
BOOL upd = TRUE; BOOL upd = TRUE;
if (!LLPipeline::sRenderAttachedParticles)
{
LLViewerObject* vobj = mViewerPartSources[i]->mSourceObjectp; LLViewerObject* vobj = mViewerPartSources[i]->mSourceObjectp;
if (vobj && (vobj->getPCode() == LL_PCODE_VOLUME)) if (vobj && (vobj->getPCode() == LL_PCODE_VOLUME))
{ {
LLVOVolume* vvo = (LLVOVolume *)vobj; if(vobj->getAvatar() && vobj->getAvatar()->isTooComplex())
if (vvo && vvo->isAttachment())
{ {
upd = FALSE; upd = FALSE;
} }
LLVOVolume* vvo = (LLVOVolume *)vobj;
if (!LLPipeline::sRenderAttachedParticles && vvo && vvo->isAttachment())
{
upd = FALSE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment