File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ import defineProperties from '../Core/defineProperties.js';
41
41
this . _content = content ;
42
42
this . _batchId = batchId ;
43
43
this . _color = undefined ; // for calling getColor
44
+
45
+ /**
46
+ * NOTE: This property exists so that `Picking.js` can differentiate between
47
+ * PrimitiveCollections and isCesium3DTileFeature objects without inflating
48
+ * the size of the module via `instance of Cesium3DTileFeature`
49
+ * @private
50
+ */
51
+
52
+ this . isCesium3DTileFeature = true ;
44
53
}
45
54
46
55
defineProperties ( Cesium3DTileFeature . prototype , {
Original file line number Diff line number Diff line change @@ -17,10 +17,8 @@ import Ray from '../Core/Ray.js';
17
17
import ShowGeometryInstanceAttribute from '../Core/ShowGeometryInstanceAttribute.js' ;
18
18
import when from '../ThirdParty/when.js' ;
19
19
import Camera from './Camera.js' ;
20
- import Cesium3DTileFeature from './Cesium3DTileFeature.js' ;
21
20
import Cesium3DTilePass from './Cesium3DTilePass.js' ;
22
21
import Cesium3DTilePassState from './Cesium3DTilePassState.js' ;
23
- import Cesium3DTileset from './Cesium3DTileset.js' ;
24
22
import PickDepth from './PickDepth.js' ;
25
23
import PrimitiveCollection from './PrimitiveCollection.js' ;
26
24
import SceneMode from './SceneMode.js' ;
@@ -421,7 +419,7 @@ import View from './View.js';
421
419
}
422
420
}
423
421
424
- if ( object instanceof Cesium3DTileFeature ) {
422
+ if ( defined ( object . isCesium3DTileFeature ) ) {
425
423
hasShowAttribute = true ;
426
424
object . show = false ;
427
425
pickedFeatures . push ( object ) ;
You can’t perform that action at this time.
0 commit comments