Skip to content

Commit

Permalink
javadoc, comments, and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jul 31, 2023
1 parent 386e15e commit d91b9fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 5 additions & 2 deletions src/main/java/maud/CheckLoaded.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public static boolean animControl(AnimControl animControl) {
logger.warning("animation has reserved name");
return false;
}
//System.out.println("check animation " + MyString.quote(name));
if (nameSet.contains(name)) {
logger.warning("duplicate animation name");
return false;
Expand Down Expand Up @@ -297,7 +298,7 @@ public static boolean armature(Armature armature) {
* Check for anomalies in a bone.
*
* @param bone (may be null, unaffected)
* @param nameSet (not null, modified)
* @param nameSet names of bones already checked (not null, modified)
* @return false if issues found, otherwise true
*/
public static boolean bone(Bone bone, Set<String> nameSet) {
Expand All @@ -316,6 +317,7 @@ public static boolean bone(Bone bone, Set<String> nameSet) {
logger.warning("bone name is empty");
return false;
}
//System.out.println("check bone " + MyString.quote(name));
if (name.equals(SelectedSkeleton.noBone)) {
logger.warning("bone has reserved name");
return false;
Expand All @@ -336,7 +338,8 @@ public static boolean bone(Bone bone, Set<String> nameSet) {
* @param boneTrack (not null, unaffected)
* @param numBones (&gt;0)
* @param numFrames (&gt;0)
* @param targetBoneIndexSet (not null, modified)
* @param targetBoneIndexSet bone indices of tracks already checked (not
* null, modified)
* @return false if issues found, otherwise true
*/
public static boolean boneTrack(BoneTrack boneTrack, int numBones,
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/maud/model/cgm/LoadedCgm.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2017-2022, Stephen Gold
Copyright (c) 2017-2023, Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -314,9 +314,8 @@ protected void postLoad(Spatial cgmRoot) {
} else {
getAnimation().loadBindPose(true);
}
/*
* Verify that the displayed pose has been initialized.
*/

//Verify that the displayed pose has been initialized.
int boneCount = getSkeleton().countBones();
int numTransforms = getPose().get().countBones();
assert numTransforms == boneCount : numTransforms;
Expand Down Expand Up @@ -397,9 +396,8 @@ private Spatial loadFromAsset(
String assetPath, boolean useCache, boolean diagnose) {
AssetManager assetManager = Locators.getAssetManager();
Locators.save();
/*
* Load the C-G model.
*/

// Load the C-G model.
String ext;
Spatial loaded;
if (assetPath.endsWith(".bvh")) {
Expand Down

0 comments on commit d91b9fe

Please sign in to comment.