public void addObject(NameBindSceneObject o) { objects.add(o.data); objects.setName(o.data, o.name); if (o.data.parent == null && !o.name.equals(ROOT_NODE_NAME)) o.data.parent = ROOT_NODE_NAME; sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Object, o.name, true)); }
public void addMaterial(NameBindMaterial o) { materials.add(o.data); materials.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Material, o.name, true)); }
public void addTexture(NameBindTexture o) { textures.add(o.data); textures.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Texture, o.name, true)); }
public void addCubemap(NameBindCubemap o) { cubemaps.add(o.data); cubemaps.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Cubemap, o.name, true)); }
public void addMesh(NameBindMesh o) { meshes.add(o.data); meshes.setName(o.data, o.name); sendEvent(new SceneCollectionModifiedEvent(SceneDataType.Mesh, o.name, true)); }