Skip to content

Commit b9048c1

Browse files
committed
Revert objectProcessor change that resulted in breaking some material processing
1 parent 17f9926 commit b9048c1

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file.
1010

1111
- NA
1212

13+
## [0.1.1] - 2025-09-01
14+
15+
### Fixes
16+
17+
- Revert `objectProcessor` change that resulted in breaking some material processing.
18+
1319
## [0.1.0] - 2025-09-01
1420

1521
### Changes

package-lock.json

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "threepipe",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
@@ -51,7 +51,7 @@
5151
"docs-plugins": "node scripts/each-plugin.mjs run docs",
5252
"docs-all": "npm run docs && npm run docs-plugins",
5353
"build-plugins": "node scripts/each-plugin.mjs clean-install -p",
54-
"prepare": "npm run build && npm run build-plugins && npm run build-examples",
54+
"prepare": "npm run build",
5555
"update-version": "node scripts/update-version.mjs",
5656
"website:dev": "vitepress dev website",
5757
"website:build": "vitepress build website",

src/core/object/iObjectCommons.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,9 @@ export const iObjectCommons = {
486486
add: (superAdd: IObject3D['add']): IObject3D['add'] =>
487487
function(this: IObject3D, ...args): IObject3D {
488488
if (this.autoUpgradeChildren !== false) {
489-
for (const a of args) iObjectCommons.upgradeObject3D.call(a, this.parentRoot || this, this.objectProcessor)
489+
for (const a of args) {
490+
iObjectCommons.upgradeObject3D.call(a, this.parentRoot || this, this.objectProcessor)
491+
}
490492
}
491493
return superAdd.call(this, ...args)
492494
},
@@ -551,14 +553,14 @@ function upgradeObject3D(this: IObject3D, parent?: IObject3D|undefined, objectPr
551553
// not checking assetType but custom var __objectSetup because its required in types sometimes, check PerspectiveCamera2
552554
// if (this.assetType) return this
553555

554-
if (!this.objectProcessor) this.objectProcessor = objectProcessor || this.parent?.objectProcessor || parent?.objectProcessor
555-
556556
if (this.userData.__objectSetup) {
557557
this.objectProcessor?.processObject(this)
558558
return this
559559
}
560560
this.userData.__objectSetup = true
561561

562+
if (!this.objectProcessor) this.objectProcessor = objectProcessor || this.parent?.objectProcessor || parent?.objectProcessor
563+
562564
if (!this.objectExtensions) this.objectExtensions = []
563565

564566
if (!this.userData.__autoBubbleToParentEvents) this.userData.__autoBubbleToParentEvents = ['select']

src/viewer/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.1.0'
1+
export const VERSION = '0.1.1'

0 commit comments

Comments
 (0)