Blender Git Commit Log

Git Commits -> Revision d9bb08f

Revision d9bb08f by Campbell Barton (master)
June 21, 2017, 02:19 (GMT)
RNA: avoid many calls to 'RNA_struct_is_a'

Quicker to find the ID-subtype then use direct pointer comparisons.

Also modify `ID_code_to_RNA_type` so missing ID-codes raise a warning
(handy when adding new ID types).

Commit Details:

Full Hash: d9bb08f111e606f30876eb6cef972591b60c1080
Parent Commit: 0ef7ccb
Lines Changed: +63, -37

3 Modified Paths:

/source/blender/makesrna/intern/rna_access.c (+16, -0) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+46, -37) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021