We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a67ccf commit 67e7f53Copy full SHA for 67e7f53
src/outliner/textDisplay.ts
@@ -269,6 +269,10 @@ export class TextDisplay extends ResizableOutlinerElement {
269
text.isTextDisplayText = true
270
271
const mesh = this.mesh as THREE.Mesh
272
+ if (!mesh) {
273
+ console.warn('TextDisplay mesh not found')
274
+ return
275
+ }
276
mesh.clear()
277
delete mesh.sprite
278
mesh.name = this.uuid
@@ -281,8 +285,6 @@ export class TextDisplay extends ResizableOutlinerElement {
281
285
mesh.outline = outline
282
286
mesh.add(outline)
283
287
mesh.visible = this.visibility
284
-
- return text
288
}
289
290
TextDisplay.prototype.icon = TextDisplay.icon
0 commit comments