mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
add __add__
This commit is contained in:
parent
7fc1d5112d
commit
d56ac3776f
@ -174,7 +174,7 @@ class MetaInterval(CMetaInterval):
|
||||
def __getslice__(self, i, j):
|
||||
if isinstance(self.ivals, types.TupleType):
|
||||
self.ivals = list(self.ivals)
|
||||
return self.ivals[i : j]
|
||||
return self.__class__(self.ivals[i : j])
|
||||
|
||||
def __setslice__(self, i, j, s):
|
||||
if isinstance(self.ivals, types.TupleType):
|
||||
@ -198,6 +198,11 @@ class MetaInterval(CMetaInterval):
|
||||
self.__ivalsDirty = 1
|
||||
return self
|
||||
|
||||
def __add__(self, other):
|
||||
copy = self[:]
|
||||
copy += other
|
||||
return copy
|
||||
|
||||
# Functions to define sequence, parallel, and track behaviors:
|
||||
|
||||
def addSequence(self, list, name, relTime, relTo, duration):
|
||||
|
Loading…
x
Reference in New Issue
Block a user