removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
<Solution name="Fix_Small_Prims_Improved">
<Project name="Fix_Small_Prims_Improved" path="Fix_Small_Prims_Improved\Fix_Small_Prims_Improved.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,6 @@
<Project name="Fix_Small_Prims_Improved" guid="D8749D56-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D8749E40-6C00-1014-B904-200204C60A89">
<Script name="Fix_Small_Prims_Improved_1.lsl" guid="D874C1FA-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,121 @@
// :CATEGORY:Tiny Prims
// :NAME:Fix_Small_Prims_Improved
// :AUTHOR:Innula Zenovka
// :CREATED:2010-11-16 11:04:06.810
// :EDITED:2013-09-18 15:38:53
// :ID:312
// :NUM:411
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Fix_Small_Prims_Improved
// :CODE:
/*based on the wonderful script, Fix Small Prims by Emma Nowhere, http://wiki.secondlife.com/wiki/Fix_Small_Prims, updated by Innula Zenovka to use llGetLinkPrimitiveParams and llSetLinkPrimitiveParamsFast.
Issued under the "do what the hell you like with it, but you if you scam people by selling it on its own I shall be so cross" licence
This works by finding all prims in a linkset that can't be shrunk any further and, when you click "fix", slightly increasing the size on any axis that's at the minimun, this allowing you to shrink them some more. Click "rerun" if you hit the minimun size again, to find the small prims again, and then click "fix" to fix them. Click Delete Script when you are done*/
list options =["Fix", "Delete Script", "ReRun"];
list start_scale;
list to_fix;
integer i;
integer max;
integer rescaleX = FALSE;
integer rescaleY = FALSE;
integer rescaleZ = FALSE;
integer chan;
vector scale;
integer fncStrideCount(list lstSource, integer intStride)
{
return llGetListLength(lstSource) / intStride;
}
// Returns a Stride from a List
list fncGetStride(list lstSource, integer intIndex, integer intStride)
{
integer intNumStrides = fncStrideCount(lstSource, intStride);
if (intNumStrides != 0 && intIndex < intNumStrides)
{
integer intOffset = intIndex * intStride;
return llList2List(lstSource, intOffset, intOffset + (intStride - 1));
}
return [];
}
default {
state_entry() {
chan = (integer)("0x"+llGetSubString((string)llGetKey(),-8,-1));
to_fix=[];
llListen(chan, "", llGetOwner(), "");
max = llGetNumberOfPrims();
llOwnerSay("checking for small prims");
for (i = 1; i <= max; ++i) {
scale = llList2Vector(llGetLinkPrimitiveParams(i,[PRIM_SIZE]), 0);
start_scale +=[i] +[scale]; //record start sizes
if (scale.x < .015) {
scale.x = .015;
rescaleX = TRUE;
}
if (scale.y < .015) {
scale.y = .015;
rescaleY = TRUE;
}
if (scale.z < .015) {
scale.z = .015;