Emergency fix for a bug discovered via a nPose plugin.

This commit is contained in:
Sei Lisa 2015-02-12 07:46:02 +01:00
parent 0a0e5926d5
commit 4461f36dce

View file

@ -318,7 +318,9 @@ class deadcode(object):
# Replacing j with i+1 in llOwnerSay will produce wrong code because # Replacing j with i+1 in llOwnerSay will produce wrong code because
# the name i is redefined after j is assigned. shrinknames prevents # the name i is redefined after j is assigned. shrinknames prevents
# that. # 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 return False
if nt not in ('VECTOR', 'ROTATION'): if nt not in ('VECTOR', 'ROTATION'):