|
@@ -105899,7 +105899,7 @@ ENDSEC
|
|
|
|
|
|
constructor: GLTFLoader,
|
|
constructor: GLTFLoader,
|
|
|
|
|
|
- load: function ( url, onLoad, onProgress, onError ) {
|
|
|
|
|
|
+ load: function ( url, onLoad, onProgress, onError ) {
|
|
|
|
|
|
var scope = this;
|
|
var scope = this;
|
|
|
|
|
|
@@ -105949,7 +105949,7 @@ ENDSEC
|
|
loader.setWithCredentials( this.withCredentials );
|
|
loader.setWithCredentials( this.withCredentials );
|
|
|
|
|
|
loader.load( url, function ( data, total ) {// xzw add total
|
|
loader.load( url, function ( data, total ) {// xzw add total
|
|
-
|
|
|
|
|
|
+ console.log('gltf数据加载成功',url);
|
|
try {
|
|
try {
|
|
|
|
|
|
scope.parse( data, resourcePath, function ( gltf ) {
|
|
scope.parse( data, resourcePath, function ( gltf ) {
|
|
@@ -119027,7 +119027,7 @@ ENDSEC
|
|
SiteModel$1.bus.addEventListener('initDataDone',()=>{
|
|
SiteModel$1.bus.addEventListener('initDataDone',()=>{
|
|
this.gotoFloor(SiteModel$1.entities.find(e=>e.buildType == 'floor')); //任意一层
|
|
this.gotoFloor(SiteModel$1.entities.find(e=>e.buildType == 'floor')); //任意一层
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
Alignment$1.bus.addEventListener('switchHandle', this.updateCursor.bind(this));
|
|
Alignment$1.bus.addEventListener('switchHandle', this.updateCursor.bind(this));
|
|
|
|
|