Remove unnecessary guard

This commit is contained in:
Zach Fox 2017-06-30 15:25:33 -07:00
parent 6a8cc6faa8
commit 7851c8002f

View file

@ -49,14 +49,12 @@ public:
}
void configure(const Config& config) {
if (config.enabled || config.alwaysEnabled) {
_attachedEntityId = config.attachedEntityId;
_position = config.position;
_orientation = config.orientation;
_vFoV = config.vFoV;
_nearClipPlaneDistance = config.nearClipPlaneDistance;
_farClipPlaneDistance = config.farClipPlaneDistance;
}
_attachedEntityId = config.attachedEntityId;
_position = config.position;
_orientation = config.orientation;
_vFoV = config.vFoV;
_nearClipPlaneDistance = config.nearClipPlaneDistance;
_farClipPlaneDistance = config.farClipPlaneDistance;
}
void run(const render::RenderContextPointer& renderContext, RenderArgsPointer& cachedArgs) {