Skip to content

Commit

Permalink
Fix #207: LightEstimationConfig init
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed Nov 24, 2021
1 parent 5006b55 commit 99d5cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class ArSceneView extends SceneView {
* @see ArSceneViewKt#setEstimatedEnvironmentLights(ArSceneView, EnvironmentLightsEstimate)
* @see ArSceneViewKt#getEstimatedEnvironmentLights(ArSceneView)
*/
public LightEstimationConfig _lightEstimationConfig;
public LightEstimationConfig _lightEstimationConfig = new LightEstimationConfig();

private AtomicBoolean isProcessingFrame = new AtomicBoolean(false);
@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ import com.gorisse.thomas.sceneform.light.*
* @see LightEstimationConfig.AMBIENT_INTENSITY
*/
var ArSceneView.lightEstimationConfig: LightEstimationConfig
get() = _lightEstimationConfig ?: LightEstimationConfig().also {
_lightEstimationConfig = it
}
get() = _lightEstimationConfig
set(value) {
if (_lightEstimationConfig != value) {
if (sessionConfig != null && value.mode != sessionConfig?.lightEstimationMode) {
Expand Down

0 comments on commit 99d5cef

Please sign in to comment.