diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index ff6dced979..902c6830d7 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -67,7 +67,7 @@ class Actor(DirectObject, NodePath): def __init__(self, filename = None, animBundle = None): self.filename = filename - self.animBundle = None + self.animBundle = animBundle self.animControl = None def makeCopy(self): @@ -1947,6 +1947,7 @@ class Actor(DirectObject, NodePath): animName = acc.getAnimName(i) animDef = Actor.AnimDef() + animDef.animBundle = animControl.getAnim() animDef.animControl = animControl self.__animControlDict[lodName][partName][animName] = animDef diff --git a/panda/src/gobj/geom.h b/panda/src/gobj/geom.h index 82aac75cfa..a1e0b960e4 100644 --- a/panda/src/gobj/geom.h +++ b/panda/src/gobj/geom.h @@ -85,7 +85,7 @@ PUBLISHED: void offset_vertices(const GeomVertexData *data, int offset); int make_nonindexed(bool composite_only); - CPT(GeomVertexData) get_animated_vertex_data(bool force, Thread *current_thread) const; + CPT(GeomVertexData) get_animated_vertex_data(bool force, Thread *current_thread = Thread::get_current_thread()) const; INLINE bool is_empty() const;