| 47 |
|
Shape* ShapeBuilder::createShape(StuntDouble* sd) { |
| 48 |
|
Shape* currShape = NULL; |
| 49 |
|
if (sd->isDirectionalAtom()) { |
| 50 |
< |
currShape = internalCreateShape(static_cast<Atom*>(sd)); |
| 50 |
> |
currShape = internalCreateShape(static_cast<DirectionalAtom*>(sd)); |
| 51 |
|
} else if (sd->isAtom()) { |
| 52 |
< |
currShape = internalCreateShape(static_cast<DirectionalAtom*>(sd)); |
| 52 |
> |
currShape = internalCreateShape(static_cast<Atom*>(sd)); |
| 53 |
|
} else if (sd->isRigidBody()) { |
| 54 |
|
currShape = internalCreateShape(static_cast<RigidBody*>(sd)); |
| 55 |
|
} |
| 122 |
|
for (atom = rb->beginAtom(ai); atom != NULL; atom = rb->nextAtom(ai)) { |
| 123 |
|
Shape* currShape = NULL; |
| 124 |
|
if (atom->isDirectionalAtom()){ |
| 125 |
< |
currShape = internalCreateShape(static_cast<Atom*>(atom)); |
| 125 |
> |
currShape = internalCreateShape(static_cast<DirectionalAtom*>(atom)); |
| 126 |
|
}else if (atom->isAtom()){ |
| 127 |
< |
currShape = internalCreateShape(static_cast<DirectionalAtom*>(atom)); |
| 127 |
> |
currShape = internalCreateShape(static_cast<Atom*>(atom)); |
| 128 |
|
} |
| 129 |
|
if (currShape != NULL) |
| 130 |
|
compositeShape->addShape(currShape); |