Update surface_composite.py (#3189)

This commit is contained in:
azimG 2024-11-09 17:56:37 +01:00 committed by GitHub
parent 9983ee1a7e
commit 70807b146f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,7 +27,7 @@ class CompositeSurface(ABC):
return surf
def rotate(self, rotation, pivot=(0., 0., 0.), order='xyz', inplace=False):
surf = copy(self)
surf = self if inplace else copy(self)
for name in self._surface_names:
s = getattr(surf, name)
setattr(surf, name, s.rotate(rotation, pivot, order, inplace))