diff options
author | Jacques Lucke <jacques@blender.org> | 2020-10-01 17:56:24 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-10-01 17:57:00 +0300 |
commit | 958fc6944f75f51b9fe5b47f29ff82156b3c6286 (patch) | |
tree | 0f5b52f18461713b541e20a57c679cdb301d0b1a /source/blender/nodes/texture | |
parent | 83980506957cd4e31e8dc7041672efb256b5c28c (diff) |
Cleanup: make texture coordinates const
Diffstat (limited to 'source/blender/nodes/texture')
-rw-r--r-- | source/blender/nodes/texture/node_texture_tree.c | 2 | ||||
-rw-r--r-- | source/blender/nodes/texture/node_texture_util.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/texture/node_texture_tree.c b/source/blender/nodes/texture/node_texture_tree.c index d8818657e1c..2d593c6218a 100644 --- a/source/blender/nodes/texture/node_texture_tree.c +++ b/source/blender/nodes/texture/node_texture_tree.c @@ -277,7 +277,7 @@ void ntreeTexEndExecTree(bNodeTreeExec *exec) int ntreeTexExecTree(bNodeTree *ntree, TexResult *target, - float co[3], + const float co[3], float dxt[3], float dyt[3], int osatex, diff --git a/source/blender/nodes/texture/node_texture_util.h b/source/blender/nodes/texture/node_texture_util.h index 17a88ddaf5b..01d1aa5cd62 100644 --- a/source/blender/nodes/texture/node_texture_util.h +++ b/source/blender/nodes/texture/node_texture_util.h @@ -70,7 +70,7 @@ extern "C" { typedef struct TexCallData { TexResult *target; /* all float[3] */ - float *co; + const float *co; float *dxt, *dyt; int osatex; @@ -84,7 +84,7 @@ typedef struct TexCallData { } TexCallData; typedef struct TexParams { - float *co; + const float *co; float *dxt, *dyt; const float *previewco; int cfra; |