Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-10-01 17:56:24 +0300
committerJacques Lucke <jacques@blender.org>2020-10-01 17:57:00 +0300
commit958fc6944f75f51b9fe5b47f29ff82156b3c6286 (patch)
tree0f5b52f18461713b541e20a57c679cdb301d0b1a /source/blender/nodes
parent83980506957cd4e31e8dc7041672efb256b5c28c (diff)
Cleanup: make texture coordinates const
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/texture/node_texture_tree.c2
-rw-r--r--source/blender/nodes/texture/node_texture_util.h4
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;