|
@@ -354,10 +354,10 @@
|
|
|
this.renderOutline = function ( scene, camera ) {
|
|
|
|
|
|
const currentAutoClear = renderer.autoClear;
|
|
|
- const currentSceneAutoUpdate = scene.autoUpdate;
|
|
|
+ const currentSceneAutoUpdate = scene.matrixWorldAutoUpdate;
|
|
|
const currentSceneBackground = scene.background;
|
|
|
const currentShadowMapEnabled = renderer.shadowMap.enabled;
|
|
|
- scene.autoUpdate = false;
|
|
|
+ scene.matrixWorldAutoUpdate = false;
|
|
|
scene.background = null;
|
|
|
renderer.autoClear = false;
|
|
|
renderer.shadowMap.enabled = false;
|
|
@@ -365,7 +365,7 @@
|
|
|
renderer.render( scene, camera );
|
|
|
scene.traverse( restoreOriginalMaterial );
|
|
|
cleanupCache();
|
|
|
- scene.autoUpdate = currentSceneAutoUpdate;
|
|
|
+ scene.matrixWorldAutoUpdate = currentSceneAutoUpdate;
|
|
|
scene.background = currentSceneBackground;
|
|
|
renderer.autoClear = currentAutoClear;
|
|
|
renderer.shadowMap.enabled = currentShadowMapEnabled;
|