mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[Viewer3D] Clean-up: Harmonize syntax across all the files
This commit is contained in:
parent
9249615baf
commit
9d2974d282
18 changed files with 307 additions and 321 deletions
|
@ -35,19 +35,17 @@ Entity {
|
|||
|
||||
function removeComponentsByType(entity, type)
|
||||
{
|
||||
if(!entity)
|
||||
if (!entity)
|
||||
return
|
||||
for(var i=0; i < entity.components.length; ++i)
|
||||
for (var i = 0; i < entity.components.length; ++i)
|
||||
{
|
||||
if(entity.components[i].toString().indexOf(type) !== -1)
|
||||
{
|
||||
if (entity.components[i].toString().indexOf(type) !== -1) {
|
||||
//entity.components[i].enabled = false;
|
||||
Scene3DHelper.removeComponent(entity, entity.components[i]);
|
||||
Scene3DHelper.removeComponent(entity, entity.components[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
StateGroup {
|
||||
id: modeState
|
||||
state: Viewer3DSettings.renderModes[mode].name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue