File tree Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ var CUSTOM_CLASSES = [
40
40
'controls/Picker.js' ,
41
41
'geometries/PlainGeometry.js' ,
42
42
'objects/CloneArray.js' ,
43
+ 'objects/Blackbox.js' ,
43
44
] ;
44
45
45
46
Original file line number Diff line number Diff line change @@ -316,6 +316,10 @@ module.exports = {
316
316
} ,
317
317
propsDefinedByThree : [ 'type' ]
318
318
} ,
319
+ Blackbox : {
320
+ superClass : 'Object3D' ,
321
+ relativePath : './objects/Blackbox'
322
+ } ,
319
323
Raycaster : {
320
324
relativePath : './core/Raycaster' ,
321
325
properties : {
Original file line number Diff line number Diff line change
1
+ var _ = require ( 'underscore' ) ;
2
+ var BlackboxAutogen = require ( './Blackbox.autogen' ) . BlackboxModel ;
3
+
4
+ var BlackboxModel = Object3DModel . extend ( {
5
+
6
+ defaults : function ( ) {
7
+ var superdef = Object3DModel . prototype . defaults . call ( this ) ;
8
+ delete superdef [ 'children' ] ;
9
+ return superdef ;
10
+ } ,
11
+
12
+
13
+ createPropertiesArrays : function ( ) {
14
+
15
+ Object3DModel . prototype . createPropertiesArrays . call ( this ) ;
16
+ delete this . three_array_properties [ 'children' ] ;
17
+ delete this . property_converters [ 'children' ] ;
18
+
19
+ }
20
+
21
+ } ) ;
Original file line number Diff line number Diff line change
1
+ from .Blackbox_autogen import Blackbox as BaseBlackbox
2
+
3
+
4
+ class Blackbox (BaseBlackbox ):
5
+ """A widget with unsynced children.
6
+
7
+ This widget allows extension authors to expose scene control
8
+ of a given three object, without attempting to sync its
9
+ children. This makes it possible for a library to give
10
+ access to an outer object, without exposing the full object
11
+ three, and can be useful in avoiding possibly heavy sync
12
+ operations.
13
+ """
14
+ children = None
You can’t perform that action at this time.
0 commit comments