Fix more issues found by cppcheck.
This commit is contained in:
@ -354,7 +354,7 @@ void GPUParticles3DEditor::_generate_emission_points() {
|
||||
uint8_t *iw = point_img.ptrw();
|
||||
memset(iw, 0, w * h * 3 * sizeof(float));
|
||||
const Vector3 *r = points.ptr();
|
||||
float *wf = (float *)iw;
|
||||
float *wf = reinterpret_cast<float *>(iw);
|
||||
for (int i = 0; i < point_count; i++) {
|
||||
wf[i * 3 + 0] = r[i].x;
|
||||
wf[i * 3 + 1] = r[i].y;
|
||||
@ -383,7 +383,7 @@ void GPUParticles3DEditor::_generate_emission_points() {
|
||||
uint8_t *iw = point_img2.ptrw();
|
||||
memset(iw, 0, w * h * 3 * sizeof(float));
|
||||
const Vector3 *r = normals.ptr();
|
||||
float *wf = (float *)iw;
|
||||
float *wf = reinterpret_cast<float *>(iw);
|
||||
for (int i = 0; i < point_count; i++) {
|
||||
wf[i * 3 + 0] = r[i].x;
|
||||
wf[i * 3 + 1] = r[i].y;
|
||||
|
||||
Reference in New Issue
Block a user