Prevent build preferences from altering objects we've duplicated. Offer an off switch for build prefs.
Added LiruEnableBuildPrefs, for turning off, when users do not want to use their default build parameters for a few prims, but don't wish to reset them permanently.
This should perhaps end up on the build floater somewhere... but for now, debug only.
Note some of this fix for duplication may be overly cautious, but better safe than sorry.
Added a check for physical default in during creation, so that building at great distances adheres a bit more to build preferences.
Added IsCOA into the build settings, since I'd forgotten, previously.
This commit is contained in:
@@ -355,11 +355,17 @@ LLVector3 LLManip::getPivotPoint()
|
||||
{
|
||||
static LLCachedControl<bool> actual_root("AscentBuildPrefs_ActualRoot");
|
||||
static LLCachedControl<bool> pivot_as_percent("AscentBuildPrefs_PivotIsPercent");
|
||||
static LLCachedControl<F32> pivot_x("AscentBuildPrefs_PivotX");
|
||||
static LLCachedControl<F32> pivot_y("AscentBuildPrefs_PivotY");
|
||||
static LLCachedControl<F32> pivot_z("AscentBuildPrefs_PivotZ");
|
||||
LLVector3 offset(pivot_x,pivot_y,pivot_z);
|
||||
|
||||
LLVector3 offset(50,50,50);
|
||||
//Are we are using the defaults?
|
||||
if(gSavedSettings.getBOOL("LiruEnableBuildPrefs"))
|
||||
{
|
||||
static LLCachedControl<F32> pivot_x("AscentBuildPrefs_PivotX");
|
||||
static LLCachedControl<F32> pivot_y("AscentBuildPrefs_PivotY");
|
||||
static LLCachedControl<F32> pivot_z("AscentBuildPrefs_PivotZ");
|
||||
offset = LLVector3(pivot_x,pivot_y,pivot_z);
|
||||
}
|
||||
else
|
||||
pivot_as_percent = true;
|
||||
if (mObjectSelection->getFirstRootObject(TRUE) && (mObjectSelection->getObjectCount() == 1 || actual_root) && mObjectSelection->getSelectType() != SELECT_TYPE_HUD)
|
||||
{
|
||||
if(pivot_as_percent)
|
||||
|
||||
Reference in New Issue
Block a user