mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
fix crash
This commit is contained in:
parent
9af0d907b7
commit
f0862e7d8c
@ -1153,9 +1153,6 @@ void WindowFramework::
|
||||
create_anim_controls() {
|
||||
destroy_anim_controls();
|
||||
|
||||
AnimControl *control = _anim_controls.get_anim(_anim_index);
|
||||
nassertv(control != (AnimControl *)NULL);
|
||||
|
||||
PT(PGItem) group = new PGItem("anim_controls_group");
|
||||
PGFrameStyle style;
|
||||
style.set_type(PGFrameStyle::T_flat);
|
||||
@ -1179,6 +1176,9 @@ create_anim_controls() {
|
||||
return;
|
||||
}
|
||||
|
||||
AnimControl *control = _anim_controls.get_anim(_anim_index);
|
||||
nassertv(control != (AnimControl *)NULL);
|
||||
|
||||
PT(TextNode) label = new TextNode("anim_name");
|
||||
label->set_align(TextNode::A_left);
|
||||
label->set_text(_anim_controls.get_anim_name(_anim_index));
|
||||
|
Loading…
x
Reference in New Issue
Block a user