From cb28cc686bb378519a2b271b06436244b8976ab8 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 13 Mar 2008 20:00:41 +0000 Subject: * Added cautionary README.txt --- OpenSim/Region/Examples/SimpleModule/README.txt | 9 +++++++++ OpenSim/Region/Examples/SimpleModule/RegionModule.cs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 OpenSim/Region/Examples/SimpleModule/README.txt (limited to 'OpenSim/Region/Examples/SimpleModule') diff --git a/OpenSim/Region/Examples/SimpleModule/README.txt b/OpenSim/Region/Examples/SimpleModule/README.txt new file mode 100644 index 0000000..8314a21 --- /dev/null +++ b/OpenSim/Region/Examples/SimpleModule/README.txt @@ -0,0 +1,9 @@ +!!!IMPORTANT NOTE!!! + +This code snippet provided as an example of coding functional content with region modules. + +As of 13/3 2008 this module actually renders all regions within the instance unusable if enabled by dragging the dll from ./bin to global /bin. + +So, use at own peril and in dedicated instance. + +Peace. diff --git a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs index 6accb8a..37cbef5 100644 --- a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs +++ b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs @@ -78,7 +78,7 @@ namespace OpenSim.Region.Examples.SimpleModule for (int i = 0; i < (objs*objs*objs); i++) { - LLVector3 posOffset = new LLVector3((i % objs) * 4, (i % (objs*objs)) / ( objs ) * 4, (i / (objs*objs)) * 4); + LLVector3 posOffset = new LLVector3((i % objs) * 4, ((i % (objs*objs)) / ( objs )) * 4, (i / (objs*objs)) * 4); ComplexObject complexObject = new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(), pos + posOffset); -- cgit v1.1