removed useless _ folders
This commit is contained in:
3
Fix_Repeats_Per_Meter/Fix_Repeats_Per_Meter.sol
Normal file
3
Fix_Repeats_Per_Meter/Fix_Repeats_Per_Meter.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Fix_Repeats_Per_Meter">
|
||||
<Project name="Fix_Repeats_Per_Meter" path="Fix_Repeats_Per_Meter\Fix_Repeats_Per_Meter.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Fix_Repeats_Per_Meter" guid="D7F312DB-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7F313B1-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Fix_Repeats_Per_Meter_1.lsl" guid="D7F333B1-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,47 @@
|
||||
// :CATEGORY:Building
|
||||
// :NAME:Fix_Repeats_Per_Meter
|
||||
// :AUTHOR:NashBaldwin
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:53
|
||||
// :ID:310
|
||||
// :NUM:409
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Fix_Repeats_Per_Meter
|
||||
// :CODE:
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
// round position to grid
|
||||
|
||||
float grid = 0.125;
|
||||
|
||||
vector pos = llGetPos();
|
||||
|
||||
pos.x = grid * llRound(pos.x / grid);
|
||||
|
||||
pos.y = grid * llRound(pos.y / grid);
|
||||
|
||||
pos.z = 27.750;
|
||||
|
||||
llSetPos(pos);
|
||||
|
||||
|
||||
|
||||
// round scale to twice grid
|
||||
|
||||
grid *= 2.0;
|
||||
|
||||
vector scale = llGetScale();
|
||||
|
||||
scale.x = grid * llRound(scale.x / grid);
|
||||
|
||||
if (scale.x == 0) { scale.x = grid; }
|
||||
|
||||
scale.y = grid * llRound(scale.y / grid);
|
||||
Reference in New Issue
Block a user