Minor cleanup and additional nullchecks.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include "llavatarappearancedefines.h"
|
||||
#include "llwearable.h"
|
||||
#include "llerror.h"
|
||||
#include "boost/array.hpp"
|
||||
#include <boost/array.hpp>
|
||||
|
||||
class LLAvatarAppearance;
|
||||
|
||||
|
||||
@@ -933,9 +933,8 @@ U32 LLControlGroup::saveToFile(const std::string& filename, BOOL nondefault_only
|
||||
|
||||
U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_values, bool save_values)
|
||||
{
|
||||
if(mIncludedFiles.find(filename) != mIncludedFiles.end())
|
||||
if(!mIncludedFiles.insert(filename).second)
|
||||
return 0; //Already included this file.
|
||||
mIncludedFiles.insert(filename);
|
||||
|
||||
LLSD settings;
|
||||
llifstream infile;
|
||||
|
||||
@@ -1066,6 +1066,10 @@ bool LLFace::canRenderAsMask()
|
||||
}
|
||||
|
||||
const LLTextureEntry* te = getTextureEntry();
|
||||
if( !te || !getViewerObject() || !getTexture() )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static const LLCachedControl<bool> use_rmse_auto_mask("SHUseRMSEAutoMask",false);
|
||||
static const LLCachedControl<F32> auto_mask_max_rmse("SHAutoMaskMaxRMSE",.09f);
|
||||
|
||||
Reference in New Issue
Block a user