File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
lib/processes/load-skeleton Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ export class HandHelper {
61
61
bone . parent . remove ( bone )
62
62
}
63
63
} )
64
-
65
- console . log ( `Modified hand skeleton: ${ hand_type } , removed ${ bones_to_remove . length } bones` )
66
64
}
67
65
68
66
private is_hand_bone ( bone_name : string ) : boolean {
Original file line number Diff line number Diff line change @@ -285,7 +285,6 @@ export class Bootstrap {
285
285
this . process_step = ProcessStep . BindPose
286
286
this . transform_controls . enabled = false // shouldn't be editing bones
287
287
this . calculate_skin_weighting_for_models ( )
288
- // this.regenerate_skeleton_helper(this.weight_skin_step.skeleton())
289
288
this . scene . add ( ...this . weight_skin_step . final_skinned_meshes ( ) ) // add final skinned mesh to scene
290
289
this . weight_skin_step . weight_painted_mesh_group ( ) . visible = false // hide weight painted mesh
291
290
this . process_step_changed ( ProcessStep . AnimationsListing )
@@ -294,7 +293,9 @@ export class Bootstrap {
294
293
this . process_step = ProcessStep . AnimationsListing
295
294
this . animations_listing_step . begin ( this . load_skeleton_step . skeleton_type ( ) , this . load_skeleton_step . skeleton_scale ( ) )
296
295
297
- this . skeleton_helper ?. setJointsVisible ( false )
296
+ // update reference of skeleton helper to use the final skinned mesh
297
+ this . regenerate_skeleton_helper ( this . weight_skin_step . skeleton ( ) )
298
+ this . skeleton_helper ?. setJointsVisible ( false ) // no need to show joints during
298
299
299
300
// hide skeleton by default in animations listing step
300
301
if ( this . ui . dom_show_skeleton_checkbox !== null ) {
You can’t perform that action at this time.
0 commit comments