| 76 | } |
| 77 | |
| 78 | void AbstractClassRep::init() |
| 79 | { |
| 80 | // Only add the renderable and selectable globals for |
| 81 | // classes derived from SceneObject which are the only |
| 82 | // objects for which these work. |
| 83 | if ( isSubclassOf( "SceneObject" ) ) |
| 84 | { |
| 85 | Con::addVariable( avar( "$%s::isRenderable", getClassName() ), TypeBool, &mIsRenderEnabled, |
| 86 | "@brief Disables rendering of all instances of this type.\n\n" ); |
| 87 | |
| 88 | Con::addVariable( avar( "$%s::isSelectable", getClassName() ), TypeBool, &mIsSelectionEnabled, |
| 89 | "@brief Disables selection of all instances of this type.\n\n" ); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | const AbstractClassRep::Field *AbstractClassRep::findField(StringTableEntry name) const |
| 94 | { |
no test coverage detected