Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/dynamicpaint.c
| Context not available. | |||||
| #include "atomic_ops.h" | #include "atomic_ops.h" | ||||
| #include "CLG_log.h" | |||||
| /* could enable at some point but for now there are far too many conversions */ | /* could enable at some point but for now there are far too many conversions */ | ||||
| #ifdef __GNUC__ | #ifdef __GNUC__ | ||||
| //# pragma GCC diagnostic ignored "-Wdouble-promotion" | //# pragma GCC diagnostic ignored "-Wdouble-promotion" | ||||
| #endif | #endif | ||||
| static CLG_LogRef LOG = { "bke.dynamicpaint" }; | |||||
| /* precalculated gaussian factors for 5x super sampling */ | /* precalculated gaussian factors for 5x super sampling */ | ||||
| static const float gaussianFactors[5] = { | static const float gaussianFactors[5] = { | ||||
| 0.996849f, | 0.996849f, | ||||
| Context not available. | |||||
| { | { | ||||
| /* Add error to canvas ui info label */ | /* Add error to canvas ui info label */ | ||||
| BLI_strncpy(canvas->error, string, sizeof(canvas->error)); | BLI_strncpy(canvas->error, string, sizeof(canvas->error)); | ||||
| CLOG_STR_ERROR(&LOG, string); | |||||
| return 0; | return 0; | ||||
| } | } | ||||
| Context not available. | |||||
| /* | /* | ||||
| * Start generating the surface | * Start generating the surface | ||||
| */ | */ | ||||
| printf("DynamicPaint: Preparing UV surface of %ix%i pixels and %i tris.\n", w, h, tottri); | CLOG_INFO(&LOG, 1, "Preparing UV surface of %ix%i pixels and %i tris.", w, h, tottri); | ||||
| /* Init data struct */ | /* Init data struct */ | ||||
| if (surface->data) | if (surface->data) | ||||
| Context not available. | |||||
| particlesAdded++; | particlesAdded++; | ||||
| } | } | ||||
| if (invalidParticles) | if (invalidParticles) | ||||
| printf("Warning: Invalid particle(s) found!\n"); | CLOG_WARN(&LOG, "Invalid particle(s) found!"); | ||||
| /* If no suitable particles were found, exit */ | /* If no suitable particles were found, exit */ | ||||
| if (particlesAdded < 1) { | if (particlesAdded < 1) { | ||||
| Context not available. | |||||