diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2016-11-16 08:39:41 -0500 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2016-11-16 08:39:41 -0500 | 
| commit | d31596db6a6c5f7ef8c57bfaa42496db4a9b471e (patch) | |
| tree | a107255826e044a4ef23ff6328e8468a39cb5995 /indra/llmath | |
| parent | de487038fc034c470a21e9d6c5bf78e5085ae4a2 (diff) | |
| parent | ecd93e56781498ef73ea2a3d5be0c449179b6a0a (diff) | |
merge
Diffstat (limited to 'indra/llmath')
| -rw-r--r-- | indra/llmath/llvolume.cpp | 27 | 
1 files changed, 15 insertions, 12 deletions
| diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index d57fe81de4..bd24a46e8d 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -2143,19 +2143,22 @@ BOOL LLVolume::generate()  	F32 profile_detail = mDetail;  	F32 path_detail = mDetail; -	 -	U8 path_type = mParams.getPathParams().getCurveType(); -	U8 profile_type = mParams.getProfileParams().getCurveType(); -	 -	if (path_type == LL_PCODE_PATH_LINE && profile_type == LL_PCODE_PROFILE_CIRCLE) -	{ //cylinders don't care about Z-Axis -		mLODScaleBias.setVec(0.6f, 0.6f, 0.0f); -	} -	else if (path_type == LL_PCODE_PATH_CIRCLE)  -	{	 -		mLODScaleBias.setVec(0.6f, 0.6f, 0.6f); + +	if ((mParams.getSculptType() & LL_SCULPT_TYPE_MASK) != LL_SCULPT_TYPE_MESH) +	{ +		U8 path_type = mParams.getPathParams().getCurveType(); +		U8 profile_type = mParams.getProfileParams().getCurveType(); +		if (path_type == LL_PCODE_PATH_LINE && profile_type == LL_PCODE_PROFILE_CIRCLE) +		{ +			//cylinders don't care about Z-Axis +			mLODScaleBias.setVec(0.6f, 0.6f, 0.0f); +		} +		else if (path_type == LL_PCODE_PATH_CIRCLE) +		{ +			mLODScaleBias.setVec(0.6f, 0.6f, 0.6f); +		}  	} -	 +  	BOOL regenPath = mPathp->generate(mParams.getPathParams(), path_detail, split);  	BOOL regenProf = mProfilep->generate(mParams.getProfileParams(), mPathp->isOpen(),profile_detail, split); | 
