[Bf-blender-cvs] [3bf94a6d040] cycles_texture_cache: Cycles: Updated texture cache for new API.
Stefan Werner
noreply at git.blender.org
Mon Jan 4 14:05:09 CET 2021
Commit: 3bf94a6d04038061790e37265375d5957874137c
Author: Stefan Werner
Date: Mon Jan 4 14:04:35 2021 +0100
Branches: cycles_texture_cache
https://developer.blender.org/rB3bf94a6d04038061790e37265375d5957874137c
Cycles: Updated texture cache for new API.
===================================================================
M intern/cycles/render/graph.cpp
===================================================================
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index b5a26549790..7094d968bfd 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -1019,8 +1019,8 @@ void ShaderGraph::add_differentials()
/* Insert mapping nodes that are duplicates of what's inside the image node.
* This is somewhat wasteful, it would be better to have a MappingNode
* that does three transforms at a time. */
- MappingNode *mapping1 = new MappingNode;
- MappingNode *mapping2 = new MappingNode;
+ MappingNode *mapping1 = create_node<MappingNode>();
+ MappingNode *mapping2 = create_node<MappingNode>();
mapping1->set_location(((ImageTextureNode *)node)->tex_mapping.translation);
mapping1->set_rotation(((ImageTextureNode *)node)->tex_mapping.rotation);
mapping1->set_scale(((ImageTextureNode *)node)->tex_mapping.scale);
More information about the Bf-blender-cvs
mailing list