Skip to content

Commit

Permalink
Allow type-less attribute properties
Browse files Browse the repository at this point in the history
  • Loading branch information
justint committed Jun 15, 2020
1 parent bcf1daa commit b70f8af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.justint'
version '0.3'
version '0.3.1'

sourceSets.main.java.srcDirs = ['src/main/gen','src/main/java']

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,13 @@ public String getPresentableText() {
usdAttributeProperty attributeProperty = propertyElement.getAttributeProperty();
assert attributeProperty != null;
usdAttributeType attributeType = attributeProperty.getAttributeType();
assert attributeType != null;
String propertyType = attributeType.getText();
return String.format("%s: %s", propertyName, propertyType);
if (attributeType == null) {
return propertyName;
}
else {
String propertyType = attributeType.getText();
return String.format("%s: %s", propertyName, propertyType);
}
}
else if (propertyElement.getPropertyType() == USDTypes.RELATIONSHIP_PROPERTY) {
return propertyName;
Expand Down

0 comments on commit b70f8af

Please sign in to comment.