Blender Git Commit Log

Git Commits -> Revision d97fd30

Revision d97fd30 by Campbell Barton (master)
September 3, 2021, 10:35 (GMT)
RNA: minor optimize for token extraction of RNA paths

- Split rna_path_token in two,
extracting bracket handling into it's own function.

- Only handle escape characters for quoted tokens.
Numbers were copied using BLI_str_unescape which is unnecessary.

- Extract text without without quotes,
use a return argument so the caller can tell if the token was quoted.
This avoids having to strip the tokens quotes afterwards.

Commit Details:

Full Hash: d97fd305a005170ea2c15f3697238e2680db679e
Parent Commit: 671640b
Lines Changed: +105, -68

1 Modified Path:

/source/blender/makesrna/intern/rna_access.c (+105, -68) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021