Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core/Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ func load_vrm(path) -> bool:
var model = $ModelController.get_node_or_null("Model")
if model:
var secondary_path = NodePath("secondary") #model.vrm_secondary
var secondary = model.get_node(secondary_path)
var secondary = model.get_node_or_null(secondary_path)

#if collider_data == null:
# collider_data = []
Expand Down
2 changes: 1 addition & 1 deletion Core/ModelController.gd
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func get_skeleton() -> Skeleton3D:
return null

# Try to find the skeleton on the secondary object first.
var secondary = $Model.get_node("secondary")
var secondary = $Model.get_node_or_null("secondary")
if secondary:
if secondary is VRMSecondary:
var skeleton2 : Skeleton3D = secondary.get_node(secondary.skeleton)
Expand Down