瀏覽代碼

Fix reset in HierarchyUiPlugin.

master
Palash Bansal 1 年之前
父節點
當前提交
324a506621
沒有連結到貢獻者的電子郵件帳戶。

+ 2
- 2
plugins/tweakpane-editor/package-lock.json 查看文件

{ {
"name": "@threepipe/plugin-tweakpane-editor", "name": "@threepipe/plugin-tweakpane-editor",
"version": "0.3.3",
"version": "0.3.4",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@threepipe/plugin-tweakpane-editor", "name": "@threepipe/plugin-tweakpane-editor",
"version": "0.3.3",
"version": "0.3.4",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@threepipe/plugin-tweakpane": "file:./../tweakpane/src/", "@threepipe/plugin-tweakpane": "file:./../tweakpane/src/",

+ 1
- 1
plugins/tweakpane-editor/package.json 查看文件

{ {
"name": "@threepipe/plugin-tweakpane-editor", "name": "@threepipe/plugin-tweakpane-editor",
"description": "Tweakpane Editor Plugin for ThreePipe", "description": "Tweakpane Editor Plugin for ThreePipe",
"version": "0.3.3",
"version": "0.3.4",
"devDependencies": { "devDependencies": {
"tippy.js": "^6.3.7", "tippy.js": "^6.3.7",
"treejs": "git://github.com/repalash/treejs.git#d303016bb74e75725d13e97291ac1d4727985918" "treejs": "git://github.com/repalash/treejs.git#d303016bb74e75725d13e97291ac1d4727985918"

+ 1
- 1
plugins/tweakpane-editor/src/HierarchyUiPlugin.ts 查看文件

} }


reset(e?: any) { reset(e?: any) {
if (e?.source !== HierarchyUiPlugin.PluginType) return // for infinite loop
if (e?.source === HierarchyUiPlugin.PluginType) return // for infinite loop
if (!e?.hierarchyChanged) return if (!e?.hierarchyChanged) return
this._needsReset = true this._needsReset = true
} }

Loading…
取消
儲存