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