Depsgraph: Cleanup, indentation
This commit is contained in:
parent
bdc15061fc
commit
40822ae4e9
@ -196,15 +196,15 @@ RNAPathKey::RNAPathKey(ID *id, const PointerRNA &ptr, PropertyRNA *prop)
|
||||
RNAPathKey::RNAPathKey(ID *id, const char *path)
|
||||
: id(id)
|
||||
{
|
||||
/* create ID pointer for root of path lookup */
|
||||
PointerRNA id_ptr;
|
||||
RNA_id_pointer_create(id, &id_ptr);
|
||||
/* try to resolve path... */
|
||||
int index;
|
||||
if (!RNA_path_resolve_full(&id_ptr, path, &this->ptr, &this->prop, &index)) {
|
||||
this->ptr = PointerRNA_NULL;
|
||||
this->prop = NULL;
|
||||
}
|
||||
/* create ID pointer for root of path lookup */
|
||||
PointerRNA id_ptr;
|
||||
RNA_id_pointer_create(id, &id_ptr);
|
||||
/* try to resolve path... */
|
||||
int index;
|
||||
if (!RNA_path_resolve_full(&id_ptr, path, &this->ptr, &this->prop, &index)) {
|
||||
this->ptr = PointerRNA_NULL;
|
||||
this->prop = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
string RNAPathKey::identifier() const
|
||||
|
Loading…
Reference in New Issue
Block a user