[apply_transform] include scale in transform
This commit is contained in:
parent
b8ee4bb05d
commit
da20922224
3 changed files with 24 additions and 12 deletions
|
|
@ -466,9 +466,11 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
|
|||
memo = {}
|
||||
|
||||
if transform is None or transform is True:
|
||||
transform = numpy.zeros(4)
|
||||
transform = numpy.array([0, 0, 0, 0, 1], dtype=float)
|
||||
elif transform is not False:
|
||||
transform = numpy.asarray(transform, dtype=float)
|
||||
if transform.size == 4:
|
||||
transform = numpy.append(transform, 1.0)
|
||||
|
||||
original_pattern = pattern
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue