diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-07-29 23:34:02 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-07-30 00:13:56 +0200 |
| commit | 913352bb0c0fdb30c35bdaea930a1bdcb47db132 (patch) | |
| tree | 9b86a7bc95086e273626b8493057a9e8e8d635e9 /Items.c4d/Utility.c4d | |
| parent | e09caf6412be5d14ec948bc2d8630fa946bd5b88 (diff) | |
| download | DTTubeMail.c4d-913352bb0c0fdb30c35bdaea930a1bdcb47db132.tar.gz DTTubeMail.c4d-913352bb0c0fdb30c35bdaea930a1bdcb47db132.zip | |
Replace arr[GetLength(arr)] with arr[]
Diffstat (limited to 'Items.c4d/Utility.c4d')
| -rw-r--r-- | Items.c4d/Utility.c4d/Script.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Items.c4d/Utility.c4d/Script.c b/Items.c4d/Utility.c4d/Script.c index 48cdc7c..6e44f7e 100644 --- a/Items.c4d/Utility.c4d/Script.c +++ b/Items.c4d/Utility.c4d/Script.c @@ -22,7 +22,7 @@ func AttachMenu(object caller, bool allowFloating) var targets = FindObjects(Find_AtPoint(), Find_Exclude(caller), Find_Exclude(this), AttachObjectCondition(caller)); if(allowFloating) { - targets[GetLength(targets)] = [0, "$AttachWall$", GetID()]; + targets[] = [0, "$AttachWall$", GetID()]; } return caller->~CreateSelectionMenu("AttachEntry", targets, GetID(), "$SelectTarget$", this); } @@ -47,7 +47,7 @@ func Attach(object target) // TODO: maybe use scripted Attach instead; check if { // WARNING: needs an action with the name "Attach", the Procedure "ATTACH" and an AbortCall of "Detached" SetVertex(AttachVertex(), VTX_X, GetX(target) - GetX() + GetVertex(0, VTX_X, target), this, VTX_SetPermanentUpd); SetVertex(AttachVertex(), VTX_Y, GetY(target) - GetY() + 5 + GetVertex(0, VTX_Y, target), this, VTX_SetPermanentUpd); - + SetAction("Attach", target); SetActionData(AttachVertex() << 8); } @@ -95,14 +95,14 @@ func GetRetrievableIDs(bool produce) { if(GetIndexOf(id, IDs) == -1) { - IDs[GetLength(IDs)] = id; + IDs[] = id; } } } - + if(produce) { - produceIDs[GetLength(produceIDs)] = [line->GetLineEnd(this), line->GetRetrievableObjects(this, true)]; + produceIDs[] = [line->GetLineEnd(this), line->GetRetrievableObjects(this, true)]; } } if(produce) @@ -121,13 +121,13 @@ func GetRetrievableIDs(bool produce) { if(GetIndexOf(id, parts) == -1 && GetIndexOf(id, IDs) == -1) { - part[GetLength(part)] = id; - parts[GetLength(parts)] = id; + part[] = id; + parts[] = id; } } if(GetLength(part) > 0) { - ret[GetLength(ret)] = [produceIDs[i][0], part]; + ret[] = [produceIDs[i][0], part]; } } } @@ -247,7 +247,7 @@ func GetSendableIDs(bool production) { if(GetIndexOf(GetID(obj), IDs) == -1) { - IDs[GetLength(IDs)] = GetID(obj); + IDs[] = GetID(obj); } } } @@ -261,7 +261,7 @@ func GetSendableIDs(bool production) { if(GetIndexOf(id, IDs) == -1) { - ret[GetLength(ret)] = id; + ret[] = id; } } } |
