mirror of
https://github.com/MapMakersAndProgrammers/alternativa3d-archive.git
synced 2025-10-26 01:49:05 -07:00
a3d7 (2.7) moved to another folder
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package alternativa.engine3d.loaders.collada {
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
public class DaeVisualScene extends DaeElement {
|
||||
|
||||
use namespace collada;
|
||||
|
||||
public var nodes:Vector.<DaeNode>;
|
||||
|
||||
public function DaeVisualScene(data:XML, document:DaeDocument) {
|
||||
super(data, document);
|
||||
|
||||
// Внутри <visual_scene> объявляются node.
|
||||
constructNodes();
|
||||
}
|
||||
|
||||
public function constructNodes():void {
|
||||
var nodesList:XMLList = data.node;
|
||||
var count:int = nodesList.length();
|
||||
nodes = new Vector.<DaeNode>(count);
|
||||
for (var i:int = 0; i < count; i++) {
|
||||
var node:DaeNode = new DaeNode(nodesList[i], document, this);
|
||||
if (node.id != null) {
|
||||
document.nodes[node.id] = node;
|
||||
}
|
||||
nodes[i] = node;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user