aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorelektrahesse2010-10-04 18:18:37 +0200
committerelektrahesse2010-10-04 18:18:37 +0200
commita417bb32aee06e0e359b3d37c3536f228d132978 (patch)
tree199f4c25c3b7882c13335314508d985f46da0196
parentMerge branch 'weekly' of git://github.com/mccabe/imprudence into weekly (diff)
parentMerge branch 'weekly-rebase' into weekly (diff)
downloadmeta-impy-a417bb32aee06e0e359b3d37c3536f228d132978.zip
meta-impy-a417bb32aee06e0e359b3d37c3536f228d132978.tar.gz
meta-impy-a417bb32aee06e0e359b3d37c3536f228d132978.tar.bz2
meta-impy-a417bb32aee06e0e359b3d37c3536f228d132978.tar.xz
Merge branch 'weekly' of git://github.com/mccabe/imprudence into weekly
-rw-r--r--linden/indra/cmake/GStreamer.cmake18
-rw-r--r--linden/indra/cmake/LLMedia.cmake1
-rw-r--r--linden/indra/cmake/OPENAL.cmake14
-rw-r--r--linden/indra/llmedia/CMakeLists.txt2
-rw-r--r--linden/indra/newview/primbackup.cpp31
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_mini_map.xml2
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml4
7 files changed, 61 insertions, 11 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake
index f5f9c03..9c5e9f7 100644
--- a/linden/indra/cmake/GStreamer.cmake
+++ b/linden/indra/cmake/GStreamer.cmake
@@ -1,12 +1,22 @@
1# -*- cmake -*- 1# -*- cmake -*-
2include(Prebuilt) 2include(Prebuilt)
3 3
4 # Maybe libxml and glib should have their own .cmake files 4if (STANDALONE)
5 include(FindPkgConfig)
6
7 pkg_check_modules(GSTREAMER REQUIRED gstreamer-0.10)
8 pkg_check_modules(GSTREAMER_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10)
9 pkg_check_modules(GSTREAMER_VIDEO REQUIRED gstreamer-video-0.10)
10
11else (STANDALONE)
12
13 # libxml and glib should have their own .cmake files
5 use_prebuilt_binary(libxml) 14 use_prebuilt_binary(libxml)
6 use_prebuilt_binary(glib) 15 use_prebuilt_binary(glib)
7 16
8 set(GSTREAMER_FOUND ON FORCE BOOL) 17 set(GSTREAMER_FOUND ON FORCE BOOL)
9 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) 18 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL)
19 set(GSTREAMER_VIDEO_FOUND ON FORCE BOOL)
10 20
11 use_prebuilt_binary(gstreamer) 21 use_prebuilt_binary(gstreamer)
12 use_prebuilt_binary(gstreamer-plugins) 22 use_prebuilt_binary(gstreamer-plugins)
@@ -105,9 +115,11 @@ else (WINDOWS)
105 115
106endif (WINDOWS) 116endif (WINDOWS)
107 117
108if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) 118endif (STANDALONE)
119
120if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND)
109 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") 121 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.")
110endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) 122endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND)
111 123
112if (GSTREAMER) 124if (GSTREAMER)
113 add_definitions(-DLL_GSTREAMER_ENABLED=1) 125 add_definitions(-DLL_GSTREAMER_ENABLED=1)
diff --git a/linden/indra/cmake/LLMedia.cmake b/linden/indra/cmake/LLMedia.cmake
index 8a36a69..e7769db 100644
--- a/linden/indra/cmake/LLMedia.cmake
+++ b/linden/indra/cmake/LLMedia.cmake
@@ -10,4 +10,5 @@ set(LLMEDIA_LIBRARIES
10 llmedia 10 llmedia
11 ${GSTREAMER_LIBRARIES} 11 ${GSTREAMER_LIBRARIES}
12 ${GSTREAMER_PLUGINS_BASE_LIBRARIES} 12 ${GSTREAMER_PLUGINS_BASE_LIBRARIES}
13 ${GSTREAMER_VIDEO_LIBRARIES}
13 ) 14 )
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index 4f0e0cc..b9efd57 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -2,11 +2,21 @@
2 2
3include(Variables) 3include(Variables)
4include(Linking) 4include(Linking)
5include(FindPkgConfig)
5 6
6set(OPENAL ON CACHE BOOL "Enable OpenAL") 7set(OPENAL ON CACHE BOOL "Enable OpenAL")
7 8
9# If STANDALONE but NOT PKG_CONFIG_FOUND we should fail,
10# but why try to find it as prebuilt?
11if (OPENAL AND STANDALONE AND PKG_CONFIG_FOUND)
8 12
9if (OPENAL) 13 # This module defines
14 # OPENAL_INCLUDE_DIRS
15 # OPENAL_LIBRARIES
16 # OPENAL_FOUND
17 pkg_check_modules(OPENAL REQUIRED freealut) # freealut links with openal.
18
19elseif (OPENAL)
10 20
11 # message(STATUS "Building with OpenAL audio support") 21 # message(STATUS "Building with OpenAL audio support")
12 22
@@ -110,4 +120,4 @@ if (OPENAL)
110 "Found OpenAL and ALUT libraries successfully" 120 "Found OpenAL and ALUT libraries successfully"
111 ) 121 )
112 122
113endif (OPENAL) 123endif (OPENAL AND STANDALONE AND PKG_CONFIG_FOUND)
diff --git a/linden/indra/llmedia/CMakeLists.txt b/linden/indra/llmedia/CMakeLists.txt
index c7b5cd1..f3c8e30 100644
--- a/linden/indra/llmedia/CMakeLists.txt
+++ b/linden/indra/llmedia/CMakeLists.txt
@@ -15,6 +15,7 @@ include(Mozlib)
15include_directories( 15include_directories(
16 ${GSTREAMER_INCLUDE_DIRS} 16 ${GSTREAMER_INCLUDE_DIRS}
17 ${GSTREAMER_PLUGINS_BASE_INCLUDE_DIRS} 17 ${GSTREAMER_PLUGINS_BASE_INCLUDE_DIRS}
18 ${GSTREAMER_VIDEO_INCLUDE_DIRS}
18 ${LLAUDIO_INCLUDE_DIRS} 19 ${LLAUDIO_INCLUDE_DIRS}
19 ${LLCOMMON_INCLUDE_DIRS} 20 ${LLCOMMON_INCLUDE_DIRS}
20 ${LLIMAGE_INCLUDE_DIRS} 21 ${LLIMAGE_INCLUDE_DIRS}
@@ -75,5 +76,6 @@ target_link_libraries(
75 llmedia 76 llmedia
76 ${GSTREAMER_LIBRARIES} 77 ${GSTREAMER_LIBRARIES}
77 ${GSTREAMER_PLUGINS_BASE_LIBRARIES} 78 ${GSTREAMER_PLUGINS_BASE_LIBRARIES}
79 ${GSTREAMER_VIDEO_LIBRARIES}
78 ${QUICKTIME_LIBRARY} 80 ${QUICKTIME_LIBRARY}
79 ) 81 )
diff --git a/linden/indra/newview/primbackup.cpp b/linden/indra/newview/primbackup.cpp
index 63043f0..adbc4de 100644
--- a/linden/indra/newview/primbackup.cpp
+++ b/linden/indra/newview/primbackup.cpp
@@ -350,6 +350,34 @@ void primbackup::pre_export_object()
350bool primbackup::check_perms( LLSelectNode* node ) 350bool primbackup::check_perms( LLSelectNode* node )
351{ 351{
352 LLPermissions *perms = node->mPermissions; 352 LLPermissions *perms = node->mPermissions;
353 // We check to see if there are megaprims in SL we can export.
354 // Cludgy, but the only option considering LL's TPV policy.
355 if (gHippoGridManager->getConnectedGrid()->isSecondLife())
356 {
357 bool is_sl_megaprim = false;
358 for (int i = 0; i < 3; ++i)
359 {
360 if (node->getObject()->getScale().mV[i] > 10)
361 {
362 is_sl_megaprim = true;
363 break;
364 }
365 }
366
367 if (is_sl_megaprim)
368 {
369 // The following avatars in Second Life have given Imprudence permission for their full-perm
370 // megaprims to be exported even if that means changing the creator from themselves:
371 // McCabe_Maxsted ("3fc0478f-1c40-48a1-b8a7-3b7062efeda1");
372 // Gene_Replacement ("adfacb56-390b-4fdc-9216-3494f1c59862");
373 return ((perms->getCreator() == LLUUID("3fc0478f-1c40-48a1-b8a7-3b7062efeda1") ||
374 perms->getCreator() == LLUUID("adfacb56-390b-4fdc-9216-3494f1c59862") ||
375 perms->getCreator() == gAgent.getID()) &&
376 perms->getOwner() == gAgent.getID() &&
377 (PERM_ITEM_UNRESTRICTED & perms->getMaskOwner()) == PERM_ITEM_UNRESTRICTED);
378 }
379 }
380
353 return (gAgent.getID() == perms->getOwner() && 381 return (gAgent.getID() == perms->getOwner() &&
354 gAgent.getID() == perms->getCreator() && 382 gAgent.getID() == perms->getCreator() &&
355 (PERM_ITEM_UNRESTRICTED & 383 (PERM_ITEM_UNRESTRICTED &
@@ -1111,7 +1139,4 @@ void primbackup::upload_next_asset()
1111 "Uploaded texture", 1139 "Uploaded texture",
1112 NULL, 1140 NULL,
1113 NULL); 1141 NULL);
1114
1115
1116} 1142}
1117
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_mini_map.xml b/linden/indra/newview/skins/default/xui/en-us/floater_mini_map.xml
index 8dfd43c..e02abe2 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_mini_map.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_mini_map.xml
@@ -1,7 +1,7 @@
1<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 1<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2 2
3<floater name="minimap" short_title="Mini-Map" 3<floater name="minimap" short_title="Mini-Map"
4 height="455" width="200" min_height="400" min_width="240" 4 height="455" width="200" min_height="325" min_width="200"
5 follows="top|right" can_close="true" can_drag_on_left="false" 5 follows="top|right" can_close="true" can_drag_on_left="false"
6 can_minimize="true" can_resize="true" can_tear_off="false" 6 can_minimize="true" can_resize="true" can_tear_off="false"
7 rect_control="FloaterMiniMapRect"> 7 rect_control="FloaterMiniMapRect">
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml b/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml
index 3b039de..db4d1e1 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_snapshot.xml
@@ -136,10 +136,10 @@
136 </combo_box> 136 </combo_box>
137 137
138 <spinner bottom_delta="-25" decimal_digits="0" follows="left|top" height="20" 138 <spinner bottom_delta="-25" decimal_digits="0" follows="left|top" height="20"
139 increment="32" label="Width" label_width="30" left="10" max_val="6016" 139 increment="32" label="Width" label_width="30" left="10" max_val="4096"
140 min_val="32" name="snapshot_width" width="95" allow_text_entry="false"/> 140 min_val="32" name="snapshot_width" width="95" allow_text_entry="false"/>
141 <spinner bottom_delta="0" decimal_digits="0" follows="left|top" height="20" 141 <spinner bottom_delta="0" decimal_digits="0" follows="left|top" height="20"
142 increment="32" label="Height" label_width="35" left="110" max_val="6016" 142 increment="32" label="Height" label_width="35" left="110" max_val="4096"
143 min_val="32" name="snapshot_height" width="95" allow_text_entry="false"/> 143 min_val="32" name="snapshot_height" width="95" allow_text_entry="false"/>
144 <check_box bottom_delta="-20" follows="left|top" label="Constrain Proportions" left="10" 144 <check_box bottom_delta="-20" follows="left|top" label="Constrain Proportions" left="10"
145 name="keep_aspect_check" /> 145 name="keep_aspect_check" />