Skip to content

Commit 28e2e67

Browse files
committed
Don't report warning when no variants are specified with a base model
1 parent 4b2f464 commit 28e2e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meshers/blocky/types/voxel_blocky_type.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ void VoxelBlockyType::get_configuration_warnings(PackedStringArray &out_warnings
484484
}
485485
}
486486

487-
if (unspecified_keys_count > 0) {
488-
out_warnings.push_back(String("{0} with name '{1}' has {2} unspecified variants.")
487+
if (unspecified_keys_count > 0 && _base_model.is_null()) {
488+
out_warnings.push_back(String("{0} with name '{1}' has {2} unspecified variants and no base model.")
489489
.format(varray(get_class(), get_unique_name(), unspecified_keys_count)));
490490
}
491491
}

0 commit comments

Comments
 (0)