set_card_decal() should invalidate

This commit is contained in:
David Rose 2006-01-29 16:03:34 +00:00
parent 643fbbd763
commit d78f7097a8
2 changed files with 4 additions and 2 deletions

View File

@ -501,6 +501,7 @@ set_card_decal(bool card_decal) {
} else {
_flags &= ~F_card_decal;
}
invalidate_no_measure();
}
////////////////////////////////////////////////////////////////////

View File

@ -315,10 +315,11 @@ generate() {
if (has_card()) {
PT(PandaNode) card_root;
if (has_card_border())
if (has_card_border()) {
card_root = make_card_with_border();
else
} else {
card_root = make_card();
}
card_root->set_transform(transform);
card_root->set_attrib(ColorAttrib::make_flat(get_card_color()));
if (get_card_color()[3] != 1.0f) {