panda3d.core.PartBundleHandle

class PartBundleHandle

Bases: ReferenceCount

This is a trivial class returned by PartBundleNode.getBundle(). Its purpose is to hold the actual PartBundle pointer contained within the PartBundleNode, so that scene graph flatten operations can safely combine or duplicate PartBundles as necessary without affecting high-level bundle operations.

The high-level Actor class defined in direct/src/actor, for instance, will store a list of PartBundleHandles instead of on actual PartBundles, so that it will be immune to changes from these flatten operations.

Inheritance diagram

Inheritance diagram of PartBundleHandle

__init__(bundle: PartBundle) → None
__init__(param0: PartBundleHandle) → None
property bundle
Getter

Returns the actual PartBundle embedded within the handle.

Setter

Changes the actual PartBundle embedded within the handle.

Return type

PartBundle

getBundle() → PartBundle

Returns the actual PartBundle embedded within the handle.

Return type

PartBundle

setBundle(bundle: PartBundle) → None

Changes the actual PartBundle embedded within the handle.