-fixed NODE_OUT error in animtreeplayer #1078

-fixed randon button when editing menubutton #1079
This commit is contained in:
Juan Linietsky 2015-01-02 12:52:51 -03:00
parent 530d717a67
commit 0378e1109b
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,7 @@ bool AnimationTreePlayer::_set(const StringName& p_name, const Variant& p_value)
ERR_FAIL_COND_V(nt==NODE_MAX,false);
if (nt!=NODE_OUTPUT)
add_node(nt,id);
node_set_pos(id,pos);

View File

@ -210,6 +210,7 @@ void ItemListEditor::_bind_methods() {
}
bool ItemListEditor::handles(Object *p_object) const {
return false;
for(int i=0;i<item_plugins.size();i++) {
if (item_plugins[i]->handles(p_object)) {
return true;