[Viewer3D] Clean-up: Harmonize syntax across all the files

This commit is contained in:
Candice Bentéjac 2023-10-17 11:25:37 +02:00
parent 9249615baf
commit 9d2974d282
18 changed files with 307 additions and 321 deletions

View file

@ -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