From b1d77280646265b4b3a361fb25c184d652d088b5 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 13 Feb 2022 21:16:41 +0100 Subject: Make SelectMark #strict 3 --- SelectMark.c4d/Script.c | 14 +++++++------- 1 file 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; } -- cgit v1.2.3-54-g00ecf