loop bug fix
This commit is contained in:
parent
16f0e0818c
commit
883e7b5896
@ -68,6 +68,7 @@ export default {
|
|||||||
//
|
//
|
||||||
doleance_transition: false,
|
doleance_transition: false,
|
||||||
//
|
//
|
||||||
|
paperContentsIsSet: false,
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -217,7 +218,7 @@ export default {
|
|||||||
|
|
||||||
// if map_item is open and we change the mad mode, redefined what is displayed in the "boussole"
|
// if map_item is open and we change the mad mode, redefined what is displayed in the "boussole"
|
||||||
if (this.is_open & n !== o) {
|
if (this.is_open & n !== o) {
|
||||||
this.setPaperContents();
|
this.resetPaperContents();
|
||||||
this.resetMapItemPosition();
|
this.resetMapItemPosition();
|
||||||
this.resetMapItemScale();
|
this.resetMapItemScale();
|
||||||
}
|
}
|
||||||
@ -843,6 +844,9 @@ export default {
|
|||||||
console.log('setPaperContents');
|
console.log('setPaperContents');
|
||||||
// trigered once opening tween is complete
|
// trigered once opening tween is complete
|
||||||
// trigered once mapmode changed
|
// trigered once mapmode changed
|
||||||
|
// triggerd when reseting papercontents
|
||||||
|
|
||||||
|
if (!this.paperContentsIsSet) {
|
||||||
this.clearPaperContents();
|
this.clearPaperContents();
|
||||||
switch(this.map_mode){
|
switch(this.map_mode){
|
||||||
case 'terraindevie':
|
case 'terraindevie':
|
||||||
@ -870,6 +874,12 @@ export default {
|
|||||||
this.paper_main_object.addChild(this.setPaperDoleances());
|
this.paper_main_object.addChild(this.setPaperDoleances());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
this.paperContentsIsSet = true;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
resetPaperContents(){
|
||||||
|
this.paperContentsIsSet = false;
|
||||||
|
this.setPaperContents();
|
||||||
},
|
},
|
||||||
resetPaperEntitesAndContours(){
|
resetPaperEntitesAndContours(){
|
||||||
console.log(`concernementMapitem ${this.id} resetPaperEntitesAndContours this.concernement`, this.concernement);
|
console.log(`concernementMapitem ${this.id} resetPaperEntitesAndContours this.concernement`, this.concernement);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user