Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/gpencil/gpencil_engine.c
| Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | if (obact_gpd) { | ||||
| } | } | ||||
| /* if render, set as dirty to update all data */ | /* if render, set as dirty to update all data */ | ||||
| else if (stl->storage->is_render == true) { | else if (stl->storage->is_render == true) { | ||||
| obact_gpd->flag |= GP_DATA_CACHE_IS_DIRTY; | obact_gpd->flag |= GP_DATA_CACHE_IS_DIRTY; | ||||
| } | } | ||||
| } | } | ||||
| /* save simplify flags (can change while drawing, so it's better to save) */ | /* save simplify flags (can change while drawing, so it's better to save) */ | ||||
| stl->storage->simplify_fill = GP_SIMPLIFY_FILL(scene, stl->storage->is_playing); | stl->storage->simplify_fill = GPENCIL_SIMPLIFY_FILL(scene, stl->storage->is_playing); | ||||
| stl->storage->simplify_modif = GP_SIMPLIFY_MODIF(scene, stl->storage->is_playing); | stl->storage->simplify_modif = GPENCIL_SIMPLIFY_MODIF(scene, stl->storage->is_playing); | ||||
| stl->storage->simplify_fx = GP_SIMPLIFY_FX(scene, stl->storage->is_playing); | stl->storage->simplify_fx = GPENCIL_SIMPLIFY_FX(scene, stl->storage->is_playing); | ||||
| stl->storage->simplify_blend = GP_SIMPLIFY_BLEND(scene, stl->storage->is_playing); | stl->storage->simplify_blend = GPENCIL_SIMPLIFY_BLEND(scene, stl->storage->is_playing); | ||||
| /* xray mode */ | /* xray mode */ | ||||
| if (v3d) { | if (v3d) { | ||||
| stl->storage->is_xray = XRAY_ACTIVE(v3d); | stl->storage->is_xray = XRAY_ACTIVE(v3d); | ||||
| } | } | ||||
| else { | else { | ||||
| stl->storage->is_xray = 0; | stl->storage->is_xray = 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 781 Lines • Show Last 20 Lines | |||||