Cleanup: some more G.main removal/validation...
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user