|
@@ -21,6 +21,7 @@
|
|
|
#include "mayaBlendDesc.h"
|
|
#include "mayaBlendDesc.h"
|
|
|
#include "mayaToEggConverter.h"
|
|
#include "mayaToEggConverter.h"
|
|
|
#include "maya_funcs.h"
|
|
#include "maya_funcs.h"
|
|
|
|
|
+#include "eggGroup.h"
|
|
|
#include "config_mayaegg.h"
|
|
#include "config_mayaegg.h"
|
|
|
|
|
|
|
|
#include "pre_maya_include.h"
|
|
#include "pre_maya_include.h"
|
|
@@ -244,6 +245,25 @@ tag() {
|
|
|
_tagged = true;
|
|
_tagged = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+// Function: MayaNodeDesc::has_object_type
|
|
|
|
|
+// Access: Public
|
|
|
|
|
+// Description: Returns true if this node or any of its parent
|
|
|
|
|
+// has_object_type of object_type.
|
|
|
|
|
+////////////////////////////////////////////////////////////////////
|
|
|
|
|
+bool MayaNodeDesc::
|
|
|
|
|
+has_object_type(string object_type) const {
|
|
|
|
|
+ bool ret = false;
|
|
|
|
|
+ if ((_egg_group != (EggGroup*) NULL)
|
|
|
|
|
+ && _egg_group->has_object_type(object_type)) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_parent != (MayaNodeDesc *)NULL) {
|
|
|
|
|
+ ret |= _parent->has_object_type(object_type);
|
|
|
|
|
+ }
|
|
|
|
|
+ return ret;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: MayaNodeDesc::tag_recursively
|
|
// Function: MayaNodeDesc::tag_recursively
|
|
|
// Access: Private
|
|
// Access: Private
|