From 4461f36dce3860fe57a587dc28e0654443fe1ee4 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 12 Feb 2015 07:46:02 +0100 Subject: [PATCH] Emergency fix for a bug discovered via a nPose plugin. --- lslopt/lsldeadcode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lslopt/lsldeadcode.py b/lslopt/lsldeadcode.py index 7375240..cb0cc8d 100644 --- a/lslopt/lsldeadcode.py +++ b/lslopt/lsldeadcode.py @@ -318,7 +318,9 @@ class deadcode(object): # Replacing j with i+1 in llOwnerSay will produce wrong code because # the name i is redefined after j is assigned. shrinknames prevents # that. - if not self.shrinknames or 'SEF' not in node: + # FIXME: EMERGENCY FIX: shrinknames is not enough guarantee. See nposerlv.lsl. + #if not self.shrinknames or 'SEF' not in node: + if True or 'SEF' not in node: return False if nt not in ('VECTOR', 'ROTATION'):