diff options
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs index 746340f..7b1420b 100644 --- a/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs +++ b/OpenSim/Region/Examples/SimpleApp/FileSystemObject.cs | |||
@@ -27,14 +27,10 @@ | |||
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | 29 | using System; |
30 | using System.Collections.Generic; | 30 | using System.IO; |
31 | using System.Text; | ||
32 | using OpenSim.Region.Environment.Scenes; | ||
33 | using libsecondlife; | 31 | using libsecondlife; |
34 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
35 | using System.Timers; | 33 | using OpenSim.Region.Environment.Scenes; |
36 | using System.Diagnostics; | ||
37 | using System.IO; | ||
38 | 34 | ||
39 | namespace SimpleApp | 35 | namespace SimpleApp |
40 | { | 36 | { |
@@ -43,9 +39,7 @@ namespace SimpleApp | |||
43 | public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos) | 39 | public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos) |
44 | : base(world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default) | 40 | : base(world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default) |
45 | { | 41 | { |
46 | 42 | float size = (float) Math.Pow((double) fileInfo.Length, (double) 1/3)/5; | |
47 | |||
48 | float size = (float)Math.Pow((double)fileInfo.Length, (double)1 / 3) / 5; | ||
49 | // rootPrimitive.ResizeGoup(new LLVector3(size, size, size)); | 43 | // rootPrimitive.ResizeGoup(new LLVector3(size, size, size)); |
50 | Text = fileInfo.Name; | 44 | Text = fileInfo.Name; |
51 | ScheduleGroupForFullUpdate(); | 45 | ScheduleGroupForFullUpdate(); |
@@ -56,4 +50,4 @@ namespace SimpleApp | |||
56 | base.Update(); | 50 | base.Update(); |
57 | } | 51 | } |
58 | } | 52 | } |
59 | } | 53 | } \ No newline at end of file |