aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog.txt7
-rw-r--r--linden/indra/newview/primbackup.cpp18
-rw-r--r--linden/indra/newview/primbackup.h1
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml5
4 files changed, 24 insertions, 7 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 445b849..caec080 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,12 @@
12009-09-03 Jacek Antonelli <jacek.antonelli@gmail.com> 12009-09-03 Jacek Antonelli <jacek.antonelli@gmail.com>
2 2
3 * Updated object backup feature to Meerkat's SVN, imported floater.
4
5 modified: linden/indra/newview/primbackup.cpp
6 modified: linden/indra/newview/primbackup.h
7 new file: linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml
8
9
3 * Imported Meerkat's object backup feature. 10 * Imported Meerkat's object backup feature.
4 11
5 modified: linden/indra/newview/CMakeLists.txt 12 modified: linden/indra/newview/CMakeLists.txt
diff --git a/linden/indra/newview/primbackup.cpp b/linden/indra/newview/primbackup.cpp
index ff65ed6..78fd482 100644
--- a/linden/indra/newview/primbackup.cpp
+++ b/linden/indra/newview/primbackup.cpp
@@ -72,8 +72,8 @@ class importResponder: public LLNewAgentInventoryResponder
72 public: 72 public:
73 73
74 importResponder(const LLSD& post_data, 74 importResponder(const LLSD& post_data,
75 const LLUUID& vfile_id, 75 const LLUUID& vfile_id,
76 LLAssetType::EType asset_type) 76 LLAssetType::EType asset_type)
77 : LLNewAgentInventoryResponder(post_data, vfile_id, asset_type) 77 : LLNewAgentInventoryResponder(post_data, vfile_id, asset_type)
78 { 78 {
79 } 79 }
@@ -229,9 +229,9 @@ primbackup::primbackup()
229 LLUICtrlFactory::getInstance()->buildFloater( this, "floater_prim_import.xml" ); 229 LLUICtrlFactory::getInstance()->buildFloater( this, "floater_prim_import.xml" );
230 230
231 // reposition floater from saved settings 231 // reposition floater from saved settings
232 LLRect rect = gSavedSettings.getRect( "FloaterPrimImport" ); 232 //LLRect rect = gSavedSettings.getRect( "FloaterPrimImport" );
233 reshape( rect.getWidth(), rect.getHeight(), FALSE ); 233 //reshape( rect.getWidth(), rect.getHeight(), FALSE );
234 setRect( rect ); 234 //setRect( rect );
235 235
236 running=false; 236 running=false;
237 textures.clear(); 237 textures.clear();
@@ -365,7 +365,7 @@ void primbackup::exportworker(void *userdata)
365 { 365 {
366 virtual bool apply(LLSelectNode* node) 366 virtual bool apply(LLSelectNode* node)
367 { 367 {
368 if(gAgent.getID()!=node->mPermissions->getCreator()) 368 if(gAgent.getID()!=node->mPermissions->getOwner())
369 { 369 {
370 #ifdef LL_GRID_PERMISSIONS 370 #ifdef LL_GRID_PERMISSIONS
371 return false; 371 return false;
@@ -373,7 +373,11 @@ void primbackup::exportworker(void *userdata)
373 return true; 373 return true;
374 #endif 374 #endif
375 } 375 }
376 return true; 376 else if(581632==node->mPermissions->getMaskOwner() || 2147483647==node->mPermissions->getMaskOwner())
377 {
378 return true;
379 }
380 return false;
377 } 381 }
378 } func; 382 } func;
379 383
diff --git a/linden/indra/newview/primbackup.h b/linden/indra/newview/primbackup.h
index ee4cb29..fddc35f 100644
--- a/linden/indra/newview/primbackup.h
+++ b/linden/indra/newview/primbackup.h
@@ -129,3 +129,4 @@ private:
129 LLQuaternion agent_rot; 129 LLQuaternion agent_rot;
130 130
131}; 131};
132
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml b/linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml
new file mode 100644
index 0000000..191b31e
--- /dev/null
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml
@@ -0,0 +1,5 @@
1<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2<floater can_close="true" can_drag_on_left="true" can_minimize="false"
3 can_resize="false" height="80" name="Import" title="Import progress" width="200" mouse_opaque="true">
4 <text height="15" left="10" name="name_label" top="-10"> Progress </text>
5</floater>