Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions examples/jsm/inspector/tabs/Parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class ParametersGroup {

this.paramList = new Item( name );

this.objects = [];

}

close() {
Expand Down Expand Up @@ -93,6 +95,15 @@ class ParametersGroup {

};


this._registerParameter( object, property, editor, subItem );

}

_registerParameter( object, property, editor, subItem ) {

this.objects.push( { object: object, key: property, editor: editor, subItem: subItem } );

}

addFolder( name ) {
Expand Down Expand Up @@ -291,6 +302,8 @@ class ParametersGroup {

};

this._registerParameter( object, property, editor, subItem );

return editor;

}
Expand All @@ -315,13 +328,16 @@ class Parameters extends Tab {

this.paramList = paramList;

this.groups = [];

}

createGroup( name ) {

const group = new ParametersGroup( this, name );

this.paramList.add( group.paramList );
this.groups.push( group );

return group;

Expand Down