Skip to content

Commit 780dbc0

Browse files
Merge pull request #14 from ihuicatl/xmlErrors
Reload robot once error in URDF file is cleared
2 parents ca1a966 + a4596ed commit 780dbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class URDFLayout extends PanelLayout {
7070

7171
setURDF(data: string): void {
7272
// Load robot model
73-
if (this._robotModel !== null) {
73+
if (this._robotModel !== null && this._robotModel.object.parent !== null) {
7474
// Remove old robot model from visualization
7575
// Viewer -> Scene -> Group -> Robot Model
7676
this._robotModel.object.parent.remove(this._robotModel.object);

0 commit comments

Comments
 (0)