Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/gpencil.c
| Context not available. | |||||
| #include <stddef.h> | #include <stddef.h> | ||||
| #include <math.h> | #include <math.h> | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_blenlib.h" | #include "BLI_blenlib.h" | ||||
| Context not available. | |||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| static CLG_LogRef LOG = { "bke.gpencil" }; | |||||
| /* ************************************************** */ | /* ************************************************** */ | ||||
| /* Draw Engine */ | /* Draw Engine */ | ||||
| Context not available. | |||||
| /* check whether frame was added successfully */ | /* check whether frame was added successfully */ | ||||
| if (state == -1) { | if (state == -1) { | ||||
| printf("Error: Frame (%d) existed already for this layer. Using existing frame\n", cframe); | CLOG_ERROR(&LOG, "Frame (%d) existed already for this layer. Using existing frame", cframe); | ||||
| /* free the newly created one, and use the old one instead */ | /* free the newly created one, and use the old one instead */ | ||||
| MEM_freeN(gpf); | MEM_freeN(gpf); | ||||
| Context not available. | |||||
| gpl->actframe = gpf; | gpl->actframe = gpf; | ||||
| else { | else { | ||||
| /* unresolved errogenous situation! */ | /* unresolved errogenous situation! */ | ||||
| printf("Error: cannot find appropriate gp-frame\n"); | CLOG_STR_ERROR(&LOG, "cannot find appropriate gp-frame"); | ||||
| /* gpl->actframe should still be NULL */ | /* gpl->actframe should still be NULL */ | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||