diff options
author | McCabe Maxsted | 2010-04-13 02:59:46 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-13 02:59:46 -0700 |
commit | deda3832abc642ffbfc0bfd00520a82ad402b884 (patch) | |
tree | b8c26bb9ee4b6da47bdde22012e00392db0a15bb /linden/indra/newview/llmanip.cpp | |
parent | Ported Emerald build preferences and added them to llfloaterbuildoptions instead (diff) | |
download | meta-impy-deda3832abc642ffbfc0bfd00520a82ad402b884.zip meta-impy-deda3832abc642ffbfc0bfd00520a82ad402b884.tar.gz meta-impy-deda3832abc642ffbfc0bfd00520a82ad402b884.tar.bz2 meta-impy-deda3832abc642ffbfc0bfd00520a82ad402b884.tar.xz |
Save custom prim defaults on a per-account basis rather than globally
Diffstat (limited to 'linden/indra/newview/llmanip.cpp')
-rw-r--r-- | linden/indra/newview/llmanip.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/newview/llmanip.cpp b/linden/indra/newview/llmanip.cpp index fd24f6d..45550fc 100644 --- a/linden/indra/newview/llmanip.cpp +++ b/linden/indra/newview/llmanip.cpp | |||
@@ -106,20 +106,20 @@ LLManip::LLManip( const std::string& name, LLToolComposite* composite ) | |||
106 | { | 106 | { |
107 | initPivot(); | 107 | initPivot(); |
108 | 108 | ||
109 | gSavedSettings.getControl("BuildPrefs_ActualRoot")->getSignal()->connect(&updateActualRoot); | 109 | gSavedPerAccountSettings.getControl("BuildPrefs_ActualRoot")->getSignal()->connect(&updateActualRoot); |
110 | gSavedSettings.getControl("BuildPrefs_PivotIsPercent")->getSignal()->connect(&updatePivotIsPercent); | 110 | gSavedPerAccountSettings.getControl("BuildPrefs_PivotIsPercent")->getSignal()->connect(&updatePivotIsPercent); |
111 | gSavedSettings.getControl("BuildPrefs_PivotX")->getSignal()->connect(&updatePivotX); | 111 | gSavedPerAccountSettings.getControl("BuildPrefs_PivotX")->getSignal()->connect(&updatePivotX); |
112 | gSavedSettings.getControl("BuildPrefs_PivotY")->getSignal()->connect(&updatePivotY); | 112 | gSavedPerAccountSettings.getControl("BuildPrefs_PivotY")->getSignal()->connect(&updatePivotY); |
113 | gSavedSettings.getControl("BuildPrefs_PivotZ")->getSignal()->connect(&updatePivotZ); | 113 | gSavedPerAccountSettings.getControl("BuildPrefs_PivotZ")->getSignal()->connect(&updatePivotZ); |
114 | } | 114 | } |
115 | //static | 115 | //static |
116 | void LLManip::initPivot() | 116 | void LLManip::initPivot() |
117 | { | 117 | { |
118 | sActualRoot = (bool)gSavedSettings.getBOOL("BuildPrefs_ActualRoot"); | 118 | sActualRoot = (bool)gSavedPerAccountSettings.getBOOL("BuildPrefs_ActualRoot"); |
119 | sPivotPerc = (bool)gSavedSettings.getBOOL("BuildPrefs_PivotIsPercent"); | 119 | sPivotPerc = (bool)gSavedPerAccountSettings.getBOOL("BuildPrefs_PivotIsPercent"); |
120 | sPivotX = gSavedSettings.getF32("BuildPrefs_PivotX"); | 120 | sPivotX = gSavedPerAccountSettings.getF32("BuildPrefs_PivotX"); |
121 | sPivotY = gSavedSettings.getF32("BuildPrefs_PivotY"); | 121 | sPivotY = gSavedPerAccountSettings.getF32("BuildPrefs_PivotY"); |
122 | sPivotZ = gSavedSettings.getF32("BuildPrefs_PivotZ"); | 122 | sPivotZ = gSavedPerAccountSettings.getF32("BuildPrefs_PivotZ"); |
123 | } | 123 | } |
124 | //static | 124 | //static |
125 | void LLManip::updateActualRoot(const LLSD &data) | 125 | void LLManip::updateActualRoot(const LLSD &data) |
@@ -420,9 +420,9 @@ LLVector3 LLManip::getPivotPoint() | |||
420 | pos = pos + add; | 420 | pos = pos + add; |
421 | }else | 421 | }else |
422 | { | 422 | { |
423 | //pos[VX] = pos[VX] + gSavedSettings.getF32("BuildPrefs_PivotX"); | 423 | //pos[VX] = pos[VX] + gSavedPerAccountSettings.getF32("BuildPrefs_PivotX"); |
424 | //pos[VY] = pos[VY] + gSavedSettings.getF32("BuildPrefs_PivotY"); | 424 | //pos[VY] = pos[VY] + gSavedPerAccountSettings.getF32("BuildPrefs_PivotY"); |
425 | //pos[VZ] = pos[VZ] + gSavedSettings.getF32("BuildPrefs_PivotZ"); | 425 | //pos[VZ] = pos[VZ] + gSavedPerAccountSettings.getF32("BuildPrefs_PivotZ"); |
426 | LLVector3 add( | 426 | LLVector3 add( |
427 | sPivotX, | 427 | sPivotX, |
428 | sPivotY, | 428 | sPivotY, |