diff options
| author | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-02-13 21:16:41 +0100 |
|---|---|---|
| committer | Markus Mittendrein <maxmitti@maxmitti.tk> | 2022-02-13 22:32:44 +0100 |
| commit | b1d77280646265b4b3a361fb25c184d652d088b5 (patch) | |
| tree | db70dc8d39e8eda908167636d567264969684d75 | |
| parent | edd1359010ce32d5ff6a3b77fcb6bbe7e21b5703 (diff) | |
| download | ObjectsAppend-b1d77280646265b4b3a361fb25c184d652d088b5.tar.gz ObjectsAppend-b1d77280646265b4b3a361fb25c184d652d088b5.zip | |
Make SelectMark #strict 3
| -rw-r--r-- | SelectMark.c4d/Script.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/SelectMark.c4d/Script.c b/SelectMark.c4d/Script.c index 84080ce..f3f8990 100644 --- a/SelectMark.c4d/Script.c +++ b/SelectMark.c4d/Script.c @@ -1,4 +1,4 @@ -#strict 2 +#strict 3 local attachEffect; @@ -41,11 +41,11 @@ func MarkObject(object obj, int time, bool noShow) { if(attachEffect && attachEffect[0] != obj) { - RemoveEffect(0, attachEffect[0], attachEffect[1]); + RemoveEffect(nil, attachEffect[0], attachEffect[1]); } if(!attachEffect) { - AddEffect("SelectionMarkAttach", obj, 1, 1, this, 0, time); + AddEffect("SelectionMarkAttach", obj, 1, 1, this, nil, time); } } return this; @@ -79,15 +79,15 @@ func FxSelectionMarkAttachTimer(object target, int effectNumber, int effectTime) func FxSelectionMarkAttachStop(object target, int effectNumber) { - attachEffect = 0; + attachEffect = nil; } func Primary() { SetGraphics(); - SetGraphics(0, this, GetID(), 1, GFXOV_MODE_Action, "UpperRight"); - SetGraphics(0, this, GetID(), 2, GFXOV_MODE_Action, "LowerLeft"); - SetGraphics(0, this, GetID(), 3, GFXOV_MODE_Action, "LowerRight"); + SetGraphics(nil, this, GetID(), 1, GFXOV_MODE_Action, "UpperRight"); + SetGraphics(nil, this, GetID(), 2, GFXOV_MODE_Action, "LowerLeft"); + SetGraphics(nil, this, GetID(), 3, GFXOV_MODE_Action, "LowerRight"); return this; } |
