예제 #1
0
        private void ExportHierarchy(BabylonNode babylonNode, MFnTransform mFnTransform)
        {
            if (mFnTransform.parentCount != 0)
            {
                RaiseVerbose("BabylonExporter.Node | Hierarchy", 2);

                MObject parentMObject = mFnTransform.parent(0);
                // Children of World node don't have parent in Babylon
                if (parentMObject.apiType != MFn.Type.kWorld)
                {
                    MFnDagNode mFnTransformParent = new MFnDagNode(parentMObject);
                    babylonNode.parentId = mFnTransformParent.uuid().asString();
                }
            }
        }
예제 #2
0
        internal void MObjOnDeleted(object sender, MFnDagNode dagNode)
        {
            if (SelectedItems != null && SelectedItems.Count > 0)
            {
                if (SelectedItems.Count == 1)
                {
                    base._hasBeenDeleted = true;
                }


                var uuidstr = dagNode.uuid().asString();
                if (SelectedItems.ContainsKey(uuidstr))
                {
                    SelectedItems[uuidstr].Dispose();
                    SelectedItems.Remove(uuidstr);
                }


                OnNodeModified(true);
            }
        }