-Display on animation editor which keys are invalid and which tracks are unresolved
-Added a tool to clean up unresolved tracks and unused keys
This commit is contained in:
parent
35fa048af5
commit
200b7bb87c
19 changed files with 381 additions and 20 deletions
|
|
@ -2274,6 +2274,26 @@ bool GDInstance::get(const StringName& p_name, Variant &r_ret) const {
|
|||
return false;
|
||||
|
||||
}
|
||||
|
||||
Variant::Type GDInstance::get_property_type(const StringName& p_name,bool *r_is_valid) const {
|
||||
|
||||
|
||||
const GDScript *sptr=script.ptr();
|
||||
while(sptr) {
|
||||
|
||||
if (sptr->member_info.has(p_name)) {
|
||||
if (r_is_valid)
|
||||
*r_is_valid=true;
|
||||
return sptr->member_info[p_name].type;
|
||||
}
|
||||
sptr = sptr->_base;
|
||||
}
|
||||
|
||||
if (r_is_valid)
|
||||
*r_is_valid=false;
|
||||
return Variant::NIL;
|
||||
}
|
||||
|
||||
void GDInstance::get_property_list(List<PropertyInfo> *p_properties) const {
|
||||
// exported members, not doen yet!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue