Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007059opensim[REGION] OpenSim Corepublic2014-03-16 00:592014-03-28 01:15
Reporterorenh 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target Versionmaster (dev code)Fixed in Version 
Summary0007059: Error in GetNumberOfSides() for a tapered torus
DescriptionSceneObjectPart.GetNumberOfSides() returns an incorrect number of sides for a certain kind of prim: a tapered torus. It returns 1, but there are actually at least 2 faces.
Steps To Reproduce1. Create a torus, and set TaperY=0.85 and Radius=0.7.
2. Change the prim's texture. The texture will change momentarily and immediately revert to the default texture.

The reason this happens is that SceneObjectPart.GetNumberOfSides() returns 1 for this prim, but it actually has at least 2 faces. This causes the update to fail because SceneObjectPart.UpdateTextureEntry() checks each of the faces to see if it's changed, and if no face has changed then it aborts the update. Because it checks only 1 face (but the change can be in face 2), it thinks that nothing has changed, so it doesn't update the prim.
Additional InformationHere are some of the prim's properties:

_hollowShape = Same
_pathBegin = 0
_pathCurve = 32
_pathEnd = 0
_pathRadiusOffset = 70
_pathRevolutions = 0
_pathScaleX = 100
_pathScaleY = 175
_pathShearX = 0
_pathShearY = 0
_pathSkew = 0
_pathTaperX = 0
_pathTaperY = 85
_pathTwist = 0
_pathTwistBegin = 0
_pCode = 9
_profileBegin = 0
_profileEnd = 0
_profileHollow = 0
_profileShape = Circle
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineODE
EnvironmentMono / Linux64
Mono Version3.1
Viewer
Attached Files

- Relationships

-  Notes
(0025622)
orenh (administrator)
2014-03-28 01:15

See also this discussion: http://opensim-dev.2196679.n2.nabble.com/How-many-sides-does-a-tapered-torus-have-td7579043.html [^]

- Issue History
Date Modified Username Field Change
2014-03-16 00:59 orenh New Issue
2014-03-16 03:51 orenh Additional Information Updated View Revisions
2014-03-28 01:15 orenh Note Added: 0025622


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker