Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fozmo-3d-preview

Package Overview
Dependencies
Maintainers
0
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fozmo-3d-preview - npm Package Compare versions

Comparing version 1.0.38 to 1.0.39

24

lib/scenes/MainScene.js

@@ -986,2 +986,18 @@ import { EEncryptExt, ENormalExt, ResLoaderManager } from './../manager/ResLoaderManager';

async loadHDR(url) {
if (this.scene.background) {
let oldBg = this.scene.background;
this.scene.background = null;
if (oldBg['dispose']) {
oldBg['dispose']();
oldBg = null;
}
}
if (this.scene.environment) {
let oldEnv = this.scene.environment;
this.scene.environment = null;
if (oldEnv['dispose']) {
oldEnv['dispose']();
oldEnv = null;
}
}
if (url === 'neutral') {

@@ -1024,2 +1040,10 @@ const textureUtils = new TextureUtils(this.renderer);

setBGColor(c) {
if (this.scene.environment) {
let old = this.scene.environment;
this.scene.environment = null;
if (old.dispose) {
old.dispose();
}
old = null;
}
const width = 64; // 纹理的宽度

@@ -1026,0 +1050,0 @@ const height = 64; // 纹理的高度

2

package.json
{
"name": "fozmo-3d-preview",
"version": "1.0.38",
"version": "1.0.39",
"description": "风之末 作品预览",

@@ -5,0 +5,0 @@ "main": "lib/Fozmo3DPreview.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc