Merge branch 'VarRegion' of https://github.com/Lirusaito/SingularityViewer into aurora-sim
Merged cleanly: indra/llkeyframewalkmotion.cpp -36e6946c96- worked around a bug in Aurora walking motion indra/llrender/llimagegl.cpp -fa8e1f033b- An llerrs here becomes an llwarns, to avoid bothering the user with non power of two dimensioned images indra/newview/llmanip.cpp, indra/newview/llmanipscale.cpp - "Changed hardcoded 256 constants and such to width functions" -a50f0008b2indra/newview/llpatchvertexarray.cpp -fa8e1f033b- Support patches of non power of two width indra/newview/llworldmap.h - conflict Conflicts: indra/llmessage/patch_code.cpp - My version cleaned up a bit of code duplication, so this was applied, within the new tags indra/llmessage/patch_code.h - b_large_patch in decode_patch_header defaults to false, indra/newview/llcloud.cpp patch removed. indra/llmessage/patch_dct.h - false positive indra/newview/llagent.cpp - false positive indra/newview/llfloaterregioninfo.cpp - nonsl wacky textures support meets the refactor. indra/newview/llfloaterworldmap.cpp - false positive indra/newview/llglsandbox.cpp - false positive indra/newview/llnetmap.cpp - small changes for type consistency brought into FS' patch, nothing important; also adds change to LLNetMap:draw removing getRegionWidthInMeters to keep using the constant REGION_WIDTH indra/newview/llpanelobject.cpp - Get the region width of the object we're editing for maximum pasted x/y coords indra/newview/llstartup.cpp - [Fixes old issues] My old patch did not fully use first_sim_size_x here, this has been fixed. The unused first_sim_size_y has been removed. indra/newview/llsurface.cpp - rebuildWater isn't used, removed for now. Styling conflicts otherwise. indra/newview/llsurfacepatch.cpp - remove FS patch that comments out code that isn't even in the modern source; cleaned up a mess of tags with more clear explanation, perhaps it can be expanded upon though. Some styling conflicts. indra/newview/llviewermessage.cpp - Fix the problem? setRegionWidth by number. indra/newview/llviewerobject.cpp - false positive indra/newview/llviewerparcelmgr.cpp - just styling conflicts indra/newview/llviewerparcelmgr.h - false positive indra/newview/llviewerparceloverlay.cpp - false positive indra/newview/llviewerparceloverlay.h - false positive indra/newview/llviewerregion.cpp - cleaned up LLViewerRegion::getCompositionXY patches, they're more in the way than they're worth; removed DispatchOpenRegionSettings capability mention for now, it's not related to variable regions. Also remove rebuildWater, it's not used right now. indra/newview/llvowater.cpp - false positive indra/newview/llwind.cpp - remove decode_patch_header patches for false, since we have a default; otherwise false positive. indra/newview/llworld.* - [Fixes old issues] Remove setRegionWidth by LLMessageSystem as the messages used are not always the same, the by number one remains of course. - Retained separation of connecting neighbors through the old method when the width is 256 - updateLimits() would never have been merged in, we have an entirely different grid manager, therefore it's removed. - Fix the stupidity passed on over the years wherein a static constant variable would hold the same value as the first call to setLandFarClip.. indra/newview/llworldmap.cpp -36e6946c96Aurora map workaround stuffs, parts removed; rework of LLWorldMap::simInfoFromHandle indra/newview/llworldmap.h - Cleaned up organization, avoid making members public, and fixed tagging
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
#include "lltrans.h"
|
||||
#include "llurldispatcher.h"
|
||||
#include "llviewerobjectlist.h"
|
||||
#include "llviewerparcelmgr.h"
|
||||
#include "llviewerparceloverlay.h"
|
||||
#include "llviewerstatsrecorder.h"
|
||||
#include "llvlmanager.h"
|
||||
@@ -504,13 +505,6 @@ void LLViewerRegion::setWaterHeight(F32 water_level)
|
||||
mImpl->mLandp->setWaterHeight(water_level);
|
||||
}
|
||||
|
||||
// <FS:CR> Aurora Sim
|
||||
void LLViewerRegion::rebuildWater()
|
||||
{
|
||||
mImpl->mLandp->rebuildWater();
|
||||
}
|
||||
// <FS:CR> Aurora Sim
|
||||
|
||||
F32 LLViewerRegion::getWaterHeight() const
|
||||
{
|
||||
return mImpl->mLandp->getWaterHeight();
|
||||
@@ -856,20 +850,13 @@ LLVLComposition * LLViewerRegion::getComposition() const
|
||||
|
||||
F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const
|
||||
{
|
||||
// Singu Note: The Aurora Sim patches here were too many to read the code itself, mWidth and getWidth() (-1) replace 256 (255) in this function, only the first and last tags remain
|
||||
// <FS:CR> Aurora Sim
|
||||
//if (x >= 256)
|
||||
if (x >= mWidth)
|
||||
// </FS:CR> Aurora Sim
|
||||
{
|
||||
// <FS:CR> Aurora Sim
|
||||
//if (y >= 256)
|
||||
if (y >= mWidth)
|
||||
// </FS:CR> Aurora Sim
|
||||
{
|
||||
// <FS:CR> Aurora Sim
|
||||
//LLVector3d center = getCenterGlobal() + LLVector3d(256.f, 256.f, 0.f);
|
||||
LLVector3d center = getCenterGlobal() + LLVector3d(mWidth, mWidth, 0.f);
|
||||
// </FS:CR> Aurora Sim
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(center);
|
||||
if (regionp)
|
||||
{
|
||||
@@ -878,12 +865,8 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const
|
||||
// If we're attempting to blend, then we want to make the fractional part of
|
||||
// this region match the fractional of the adjacent. For now, just minimize
|
||||
// the delta.
|
||||
// <FS:CR> Aurora Sim
|
||||
//F32 our_comp = getComposition()->getValueScaled(255, 255);
|
||||
//F32 adj_comp = regionp->getComposition()->getValueScaled(x - 256.f, y - 256.f);
|
||||
F32 our_comp = getComposition()->getValueScaled(mWidth-1.f, mWidth-1.f);
|
||||
F32 adj_comp = regionp->getComposition()->getValueScaled(x - regionp->getWidth(), y - regionp->getWidth());
|
||||
// </FS:CR> Aurora Sim
|
||||
while (llabs(our_comp - adj_comp) >= 1.f)
|
||||
{
|
||||
if (our_comp > adj_comp)
|
||||
@@ -900,10 +883,7 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const
|
||||
}
|
||||
else
|
||||
{
|
||||
// <FS:CR> Aurora Sim
|
||||
//LLVector3d center = getCenterGlobal() + LLVector3d(256.f, 0, 0.f);
|
||||
LLVector3d center = getCenterGlobal() + LLVector3d(mWidth, 0.f, 0.f);
|
||||
// </FS:CR> Aurora Sim
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(center);
|
||||
if (regionp)
|
||||
{
|
||||
@@ -912,12 +892,8 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const
|
||||
// If we're attempting to blend, then we want to make the fractional part of
|
||||
// this region match the fractional of the adjacent. For now, just minimize
|
||||
// the delta.
|
||||
// <FS:CR> Aurora Sim
|
||||
//F32 our_comp = getComposition()->getValueScaled(255.f, (F32)y);
|
||||
//F32 adj_comp = regionp->getComposition()->getValueScaled(x - 256.f, (F32)y);
|
||||
F32 our_comp = getComposition()->getValueScaled(mWidth-1.f, (F32)y);
|
||||
F32 adj_comp = regionp->getComposition()->getValueScaled(x - regionp->getWidth(), (F32)y);
|
||||
// </FS:CR> Aurora Sim
|
||||
while (llabs(our_comp - adj_comp) >= 1.f)
|
||||
{
|
||||
if (our_comp > adj_comp)
|
||||
@@ -933,15 +909,9 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const
|
||||
}
|
||||
}
|
||||
}
|
||||
// <FS:CR> Aurora Sim
|
||||
//else if (y >= 256)
|
||||
else if (y >= mWidth)
|
||||
// </FS:CR> Aurora Sim
|
||||
{
|
||||
// <FS:CR> Aurora Sim
|
||||
//LLVector3d center = getCenterGlobal() + LLVector3d(0.f, 256.f, 0.f);
|
||||
LLVector3d center = getCenterGlobal() + LLVector3d(0.f, mWidth, 0.f);
|
||||
// </FS:CR> Aurora Sim
|
||||
LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(center);
|
||||
if (regionp)
|
||||
{
|
||||
@@ -950,9 +920,6 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const
|
||||
// If we're attempting to blend, then we want to make the fractional part of
|
||||
// this region match the fractional of the adjacent. For now, just minimize
|
||||
// the delta.
|
||||
// <FS:CR> Aurora Sim
|
||||
//F32 our_comp = getComposition()->getValueScaled((F32)x, 255.f);
|
||||
//F32 adj_comp = regionp->getComposition()->getValueScaled((F32)x, y - 256.f);
|
||||
F32 our_comp = getComposition()->getValueScaled((F32)x, mWidth-1.f);
|
||||
F32 adj_comp = regionp->getComposition()->getValueScaled((F32)x, y - regionp->getWidth());
|
||||
// <FS:CR> Aurora Sim
|
||||
@@ -1699,9 +1666,6 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
|
||||
capabilityNames.append("CustomMenuAction");
|
||||
capabilityNames.append("DispatchRegionInfo");
|
||||
capabilityNames.append("EnvironmentSettings");
|
||||
// <FS:CR> Aurora Sim
|
||||
capabilityNames.append("DispatchOpenRegionSettings");
|
||||
// </FS:CR> Aurora Sim
|
||||
capabilityNames.append("EstateChangeInfo");
|
||||
capabilityNames.append("EventQueueGet");
|
||||
capabilityNames.append("FetchLib2");
|
||||
|
||||
Reference in New Issue
Block a user