Cleanup: some more G.main removal/validation...

This commit is contained in:
2018-06-15 17:21:07 +02:00
parent 2e25a48b05
commit da9b1b14ed
9 changed files with 11 additions and 9 deletions

View File

@@ -1733,7 +1733,8 @@ static void search_id_collection(StructRNA *ptype, PointerRNA *ptr, PropertyRNA
StructRNA *srna;
/* look for collection property in Main */
RNA_main_pointer_create(G.main, ptr);
/* Note: using global Main is OK-ish here, UI shall not access other Mains anyay... */
RNA_main_pointer_create(G_MAIN, ptr);
*prop = NULL;