diff options
Diffstat (limited to 'linden/indra/newview/llselectmgr.cpp')
-rw-r--r-- | linden/indra/newview/llselectmgr.cpp | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp index 128a802..3c29cfd 100644 --- a/linden/indra/newview/llselectmgr.cpp +++ b/linden/indra/newview/llselectmgr.cpp | |||
@@ -2232,8 +2232,8 @@ BOOL LLSelectMgr::selectGetCreator(LLUUID& result_id, LLString& name) | |||
2232 | BOOL identical = TRUE; | 2232 | BOOL identical = TRUE; |
2233 | BOOL first = TRUE; | 2233 | BOOL first = TRUE; |
2234 | LLUUID first_id; | 2234 | LLUUID first_id; |
2235 | for (LLObjectSelection::root_iterator iter = getSelection()->root_begin(); | 2235 | for (LLObjectSelection::root_object_iterator iter = getSelection()->root_object_begin(); |
2236 | iter != getSelection()->root_end(); iter++ ) | 2236 | iter != getSelection()->root_object_end(); iter++ ) |
2237 | { | 2237 | { |
2238 | LLSelectNode* node = *iter; | 2238 | LLSelectNode* node = *iter; |
2239 | if (!node->mValid) | 2239 | if (!node->mValid) |
@@ -2255,7 +2255,11 @@ BOOL LLSelectMgr::selectGetCreator(LLUUID& result_id, LLString& name) | |||
2255 | } | 2255 | } |
2256 | } | 2256 | } |
2257 | } | 2257 | } |
2258 | 2258 | if (first_id.isNull()) | |
2259 | { | ||
2260 | return FALSE; | ||
2261 | } | ||
2262 | |||
2259 | result_id = first_id; | 2263 | result_id = first_id; |
2260 | 2264 | ||
2261 | if (identical) | 2265 | if (identical) |
@@ -2286,8 +2290,8 @@ BOOL LLSelectMgr::selectGetOwner(LLUUID& result_id, LLString& name) | |||
2286 | BOOL first = TRUE; | 2290 | BOOL first = TRUE; |
2287 | BOOL first_group_owned = FALSE; | 2291 | BOOL first_group_owned = FALSE; |
2288 | LLUUID first_id; | 2292 | LLUUID first_id; |
2289 | for (LLObjectSelection::root_iterator iter = getSelection()->root_begin(); | 2293 | for (LLObjectSelection::root_object_iterator iter = getSelection()->root_object_begin(); |
2290 | iter != getSelection()->root_end(); iter++ ) | 2294 | iter != getSelection()->root_object_end(); iter++ ) |
2291 | { | 2295 | { |
2292 | LLSelectNode* node = *iter; | 2296 | LLSelectNode* node = *iter; |
2293 | if (!node->mValid) | 2297 | if (!node->mValid) |
@@ -2312,6 +2316,10 @@ BOOL LLSelectMgr::selectGetOwner(LLUUID& result_id, LLString& name) | |||
2312 | } | 2316 | } |
2313 | } | 2317 | } |
2314 | } | 2318 | } |
2319 | if (first_id.isNull()) | ||
2320 | { | ||
2321 | return FALSE; | ||
2322 | } | ||
2315 | 2323 | ||
2316 | result_id = first_id; | 2324 | result_id = first_id; |
2317 | 2325 | ||
@@ -2354,8 +2362,8 @@ BOOL LLSelectMgr::selectGetLastOwner(LLUUID& result_id, LLString& name) | |||
2354 | BOOL identical = TRUE; | 2362 | BOOL identical = TRUE; |
2355 | BOOL first = TRUE; | 2363 | BOOL first = TRUE; |
2356 | LLUUID first_id; | 2364 | LLUUID first_id; |
2357 | for (LLObjectSelection::root_iterator iter = getSelection()->root_begin(); | 2365 | for (LLObjectSelection::root_object_iterator iter = getSelection()->root_object_begin(); |
2358 | iter != getSelection()->root_end(); iter++ ) | 2366 | iter != getSelection()->root_object_end(); iter++ ) |
2359 | { | 2367 | { |
2360 | LLSelectNode* node = *iter; | 2368 | LLSelectNode* node = *iter; |
2361 | if (!node->mValid) | 2369 | if (!node->mValid) |
@@ -2377,6 +2385,10 @@ BOOL LLSelectMgr::selectGetLastOwner(LLUUID& result_id, LLString& name) | |||
2377 | } | 2385 | } |
2378 | } | 2386 | } |
2379 | } | 2387 | } |
2388 | if (first_id.isNull()) | ||
2389 | { | ||
2390 | return FALSE; | ||
2391 | } | ||
2380 | 2392 | ||
2381 | result_id = first_id; | 2393 | result_id = first_id; |
2382 | 2394 | ||
@@ -2415,8 +2427,8 @@ BOOL LLSelectMgr::selectGetGroup(LLUUID& result_id) | |||
2415 | BOOL identical = TRUE; | 2427 | BOOL identical = TRUE; |
2416 | BOOL first = TRUE; | 2428 | BOOL first = TRUE; |
2417 | LLUUID first_id; | 2429 | LLUUID first_id; |
2418 | for (LLObjectSelection::root_iterator iter = getSelection()->root_begin(); | 2430 | for (LLObjectSelection::root_object_iterator iter = getSelection()->root_object_begin(); |
2419 | iter != getSelection()->root_end(); iter++ ) | 2431 | iter != getSelection()->root_object_end(); iter++ ) |
2420 | { | 2432 | { |
2421 | LLSelectNode* node = *iter; | 2433 | LLSelectNode* node = *iter; |
2422 | if (!node->mValid) | 2434 | if (!node->mValid) |
@@ -2438,6 +2450,10 @@ BOOL LLSelectMgr::selectGetGroup(LLUUID& result_id) | |||
2438 | } | 2450 | } |
2439 | } | 2451 | } |
2440 | } | 2452 | } |
2453 | if (first_id.isNull()) | ||
2454 | { | ||
2455 | return FALSE; | ||
2456 | } | ||
2441 | 2457 | ||
2442 | result_id = first_id; | 2458 | result_id = first_id; |
2443 | 2459 | ||
@@ -2452,8 +2468,8 @@ BOOL LLSelectMgr::selectGetGroup(LLUUID& result_id) | |||
2452 | BOOL LLSelectMgr::selectIsGroupOwned() | 2468 | BOOL LLSelectMgr::selectIsGroupOwned() |
2453 | { | 2469 | { |
2454 | BOOL found_one = FALSE; | 2470 | BOOL found_one = FALSE; |
2455 | for (LLObjectSelection::root_iterator iter = getSelection()->root_begin(); | 2471 | for (LLObjectSelection::root_object_iterator iter = getSelection()->root_object_begin(); |
2456 | iter != getSelection()->root_end(); iter++ ) | 2472 | iter != getSelection()->root_object_end(); iter++ ) |
2457 | { | 2473 | { |
2458 | LLSelectNode* node = *iter; | 2474 | LLSelectNode* node = *iter; |
2459 | if (!node->mValid) | 2475 | if (!node->mValid) |