|
@@ -1719,13 +1719,6 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( materialProperties.numClippingPlanes !== undefined &&
|
|
|
- materialProperties.numClippingPlanes !== _clipping.numPlanes ) {
|
|
|
-
|
|
|
- material.needsUpdate = true;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|
|
|
if ( material.needsUpdate === false ) {
|
|
@@ -1742,6 +1735,11 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
material.needsUpdate = true;
|
|
|
|
|
|
+ } else if ( materialProperties.numClippingPlanes !== undefined &&
|
|
|
+ materialProperties.numClippingPlanes !== _clipping.numPlanes ) {
|
|
|
+
|
|
|
+ material.needsUpdate = true;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|