Ejemplo n.º 1
0
        void ConnectScene(FbxObject obj)
        {
            if (obj.Scene != this.Scene)
            {
                if (obj.Scene != null)
                {
                    obj.DisconnectDstObject(obj.Scene);
                }
                if (this.Scene != null)
                {
                    obj.ConnectDstObject(this.Scene);
                }
            }

            var node = obj as Node;

            if (node != null)
            {
                foreach (var child in node.ChildNodes)
                {
                    ConnectScene(child);
                }
            }
        }