- fbx: add DOM classes for light and camera node attachments. Devise a new macro-based system to easily define dynamic fbx properties.

This commit is contained in:
Alexander Gessler
2012-08-10 22:58:54 +02:00
parent c126cfa1ff
commit ffbac847ef
4 changed files with 1486 additions and 1396 deletions

View File

@@ -506,9 +506,15 @@ const Object* LazyObject::Get(bool dieOnError)
}
}
else if (!strncmp(obtype,"NodeAttribute",length)) {
if (!strcmp(classtag.c_str(),"CameraSwitcher")) {
if (!strcmp(classtag.c_str(),"Camera")) {
object.reset(new Camera(id,element,doc,name));
}
else if (!strcmp(classtag.c_str(),"CameraSwitcher")) {
object.reset(new CameraSwitcher(id,element,doc,name));
}
else if (!strcmp(classtag.c_str(),"Light")) {
object.reset(new Light(id,element,doc,name));
}
}
else if (!strncmp(obtype,"Deformer",length)) {
if (!strcmp(classtag.c_str(),"Cluster")) {