[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11455] branches/2-44-stable/blender/ release/scripts: ran batch imports for 3ds and lwo, minor changes to batch loading functions and some changes to lwo face importing .
Toni Alatalo
antont at kyperjokki.fi
Wed Aug 1 20:22:13 CEST 2007
On Wednesday 01 August 2007 13:15:45 Campbell Barton wrote:
> - if between(i, 1,200):
> + if between(i, 650,800):
this very minor thing just caught my eye so got a bit curious, that seems to
be (in the same 3ds_import.py)
def between(v,a,b):
if v <= max(a,b) and v >= min(a,b):
return True
return False
do i get it right that that is the equivalent of:
a <= v <= b
?
i mean:
>>> def between(v,a,b):
... if v <= max(a,b) and v >= min(a,b):
... return True
... return False
...
>>> between(1,2,3)
False
>>> between(2,1,3)
True
>>> 1 <= 2 <= 3
True
am sorry if i missed something obvious, am actually quite tired now, but can't
see it so could not help wondering :)
btw, i don't remember in which py version that syntax was introduced ..
(*bothers at least to ssh somewhere to test*) works in 2.3 too at least.
~Toni
More information about the Bf-committers
mailing list