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.
2 parents ca1a966 + a4596ed commit 780dbc0Copy full SHA for 780dbc0
src/layout.ts
@@ -70,7 +70,7 @@ export class URDFLayout extends PanelLayout {
70
71
setURDF(data: string): void {
72
// Load robot model
73
- if (this._robotModel !== null) {
+ if (this._robotModel !== null && this._robotModel.object.parent !== null) {
74
// Remove old robot model from visualization
75
// Viewer -> Scene -> Group -> Robot Model
76
this._robotModel.object.parent.remove(this._robotModel.object);
0 commit comments