mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
gobj: Fix a bad assertion comparison
This commit is contained in:
parent
3a2048e44a
commit
3abd157315
@ -659,7 +659,7 @@ copy_from(const GeomVertexData *source, bool keep_data_objects,
|
|||||||
for (size_t i = 0; i < blend.get_num_transforms(); i++) {
|
for (size_t i = 0; i < blend.get_num_transforms(); i++) {
|
||||||
int index = add_transform(transform_table, blend.get_transform(i),
|
int index = add_transform(transform_table, blend.get_transform(i),
|
||||||
already_added);
|
already_added);
|
||||||
nassertv(index <= 4);
|
nassertv(index < 4);
|
||||||
weights[index] = blend.get_weight(i);
|
weights[index] = blend.get_weight(i);
|
||||||
}
|
}
|
||||||
if (weight.has_column()) {
|
if (weight.has_column()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user