| 42 | } |
| 43 | |
| 44 | void EclassModelNode::construct() |
| 45 | { |
| 46 | EntityNode::construct(); |
| 47 | |
| 48 | _rotation.setIdentity(); |
| 49 | |
| 50 | // Observe position and orientation spawnargs |
| 51 | static_assert(std::is_base_of<sigc::trackable, OriginKey>::value); |
| 52 | static_assert(std::is_base_of<sigc::trackable, RotationKey>::value); |
| 53 | observeKey("angle", sigc::mem_fun(_rotationKey, &RotationKey::angleChanged)); |
| 54 | observeKey("rotation", sigc::mem_fun(_rotationKey, &RotationKey::rotationChanged)); |
| 55 | observeKey("origin", sigc::mem_fun(_originKey, &OriginKey::onKeyValueChanged)); |
| 56 | observeKey("noshadows_lit", sigc::mem_fun(this, &EclassModelNode::onNoshadowsLitChanged)); |
| 57 | } |
| 58 | |
| 59 | // Snappable implementation |
| 60 | void EclassModelNode::snapto(float snap) |
no test coverage detected