Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/context.c
| Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | #endif | ||||
| /* we check recursion to ensure that we do not get infinite | /* we check recursion to ensure that we do not get infinite | ||||
| * loops requesting data from ourselves in a context callback */ | * loops requesting data from ourselves in a context callback */ | ||||
| /* Ok, this looks evil... | /* Ok, this looks evil... | ||||
| * if (ret) done = -(-ret | -done); | * if (ret) done = -(-ret | -done); | ||||
| * | * | ||||
| * Values in order of importance | * Values in order of importance | ||||
| * (0, -1, 1) - Where 1 is highest priority | * (0, -1, 1) - Where 1 is highest priority | ||||
| * */ | */ | ||||
| if (done != 1 && recursion < 1 && C->wm.store) { | if (done != 1 && recursion < 1 && C->wm.store) { | ||||
| C->data.recursion = 1; | C->data.recursion = 1; | ||||
| bContextStoreEntry *entry = BLI_rfindstring( | bContextStoreEntry *entry = BLI_rfindstring( | ||||
| &C->wm.store->entries, member, offsetof(bContextStoreEntry, name)); | &C->wm.store->entries, member, offsetof(bContextStoreEntry, name)); | ||||
| if (entry) { | if (entry) { | ||||
| result->ptr = entry->ptr; | result->ptr = entry->ptr; | ||||
| ▲ Show 20 Lines • Show All 1,099 Lines • Show Last 20 Lines | |||||