Skip to content
Snippets Groups Projects
Unverified Commit 3171fe10 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #335 from HumanBrainProject/bugfix/repeatOpenPluginNowWorks

bugfix: repeat opening of plugin now works
parents 74c46376 9ef040d4
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ export class PluginServices{
this.launchingPlugins.add(pluginName)
}
removePluginFromIsLaunchingSet(pluginName:string){
this.launchedPlugins.delete(pluginName)
this.launchingPlugins.delete(pluginName)
}
private mapPluginNameToWidgetUnit: Map<string, WidgetUnit> = new Map()
......
......@@ -269,14 +269,12 @@ export class NehubaViewerUnit implements OnInit, OnDestroy{
const getCondition = (label:number) => `if(label > ${label - 0.1} && label < ${label + 0.1} ){${FRAGMENT_EMIT_RED}}`
const newShader = `void main(){ ${labels.map(getCondition).join('else ')}else {${FRAGMENT_EMIT_WHITE}} }`
if(!this.nehubaViewer){
if(!PRODUCTION || window['__debug__'])
console.warn('setting special landmark selection changed failed ... nehubaViewer is not yet defined')
if(!PRODUCTION || window['__debug__']) console.warn('setting special landmark selection changed failed ... nehubaViewer is not yet defined')
return
}
const landmarkLayer = this.nehubaViewer.ngviewer.layerManager.getLayerByName(this.constantService.ngLandmarkLayerName)
if(!landmarkLayer){
if(!PRODUCTION || window['__debug__'])
console.warn('landmark layer could not be found ... will not update colour map')
if(!PRODUCTION || window['__debug__']) console.warn('landmark layer could not be found ... will not update colour map')
return
}
if(labels.length === 0){
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment