mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
extend list operations
This commit is contained in:
parent
7f39e6dd87
commit
9b751ba6a2
@ -66,10 +66,7 @@ class MetaInterval(CMetaInterval):
|
||||
|
||||
def extend(self, ivals):
|
||||
# Appends a list of intervals to the list so far.
|
||||
if isinstance(self.ivals, types.TupleType):
|
||||
self.ivals = list(self.ivals)
|
||||
self.ivals.extend(ivals)
|
||||
self.__ivalsDirty = 1
|
||||
self += ivals
|
||||
|
||||
def __len__(self):
|
||||
return len(self.ivals)
|
||||
|
Loading…
x
Reference in New Issue
Block a user