- (make <animated-mesh-scene-node>
- #:irr-pointer
- ((get-irrlicht-proc "addAnimatedMeshSceneNode" scene-manager parent)
- scene-manager
- mesh
- parent
- id
- position
- rotation
- scale
- also-add-if-mesh-pointer-zero))))
+ (let* ((addAnimatedMeshSceneNode (get-irrlicht-proc "addAnimatedMeshSceneNode"
+ scene-manager
+ parent))
+ (node-pointer (addAnimatedMeshSceneNode scene-manager mesh parent id position
+ rotation scale also-add-if-mesh-pointer-zero)))
+ (cond ((null-pointer? node-pointer)
+ (error "In procedure add-animated-mesh-scene-node!: Scene node cannot be created"))
+ (else
+ (make <animated-mesh-scene-node> #:irr-pointer node-pointer))))))