diff options
author | UbitUmarov | 2012-03-12 07:46:20 +0000 |
---|---|---|
committer | UbitUmarov | 2012-03-12 07:46:20 +0000 |
commit | b5e172677dfed6a9b6ec60c86aea687f46543ec7 (patch) | |
tree | 6037d463ecaf714bcfc14b851b95bc3f21b3acdb /OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | |
parent | Merge branch 'master' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff) | |
download | opensim-SC-b5e172677dfed6a9b6ec60c86aea687f46543ec7.zip opensim-SC-b5e172677dfed6a9b6ec60c86aea687f46543ec7.tar.gz opensim-SC-b5e172677dfed6a9b6ec60c86aea687f46543ec7.tar.bz2 opensim-SC-b5e172677dfed6a9b6ec60c86aea687f46543ec7.tar.xz |
ubitode prim select was not doing phantom case
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs index 5d8f03c..39b89d3 100644 --- a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs | |||
@@ -2487,14 +2487,25 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
2487 | if (!childPrim && Body != IntPtr.Zero && !m_disabled) | 2487 | if (!childPrim && Body != IntPtr.Zero && !m_disabled) |
2488 | d.BodyEnable(Body); | 2488 | d.BodyEnable(Body); |
2489 | 2489 | ||
2490 | m_collisionCategories = CollisionCategories.Geom; | 2490 | if (m_isphantom && !m_isVolumeDetect) |
2491 | if (m_isphysical) | 2491 | { |
2492 | m_collisionCategories |= CollisionCategories.Body; | 2492 | m_collisionCategories = 0; |
2493 | if(m_isphysical) | ||
2494 | m_collisionFlags = CollisionCategories.Land; | ||
2495 | else | ||
2496 | m_collisionFlags = 0; | ||
2497 | } | ||
2498 | else | ||
2499 | { | ||
2500 | m_collisionCategories = CollisionCategories.Geom; | ||
2501 | if (m_isphysical) | ||
2502 | m_collisionCategories |= CollisionCategories.Body; | ||
2493 | 2503 | ||
2494 | m_collisionFlags = m_default_collisionFlags | CollisionCategories.Land; | 2504 | m_collisionFlags = m_default_collisionFlags | CollisionCategories.Land; |
2495 | 2505 | ||
2496 | if (m_collidesWater) | 2506 | if (m_collidesWater) |
2497 | m_collisionFlags |= CollisionCategories.Water; | 2507 | m_collisionFlags |= CollisionCategories.Water; |
2508 | } | ||
2498 | 2509 | ||
2499 | if (!childPrim) | 2510 | if (!childPrim) |
2500 | { | 2511 | { |