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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-07 22:38:46 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-08 12:15:40 +0300
commit546a0e2d967ffa1a4cdf60c29fa57b2b5d4c9bbc (patch)
tree495a6156106f9691e25f6083b1c3593d318a880f
parent0589a814ba0b6abc5323da69b92e2fd5f752065c (diff)
Fix T44989: Crash on linking external OSL material
Issue was caused by passing NULL bmain to the path remap function when localizing the node tree. Paths are to be remapped, otherwise mapping of paths to OSL scripts might happen in a wrong way.
-rw-r--r--source/blender/blenkernel/intern/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 69905fa8c53..18d29af655e 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -1980,7 +1980,7 @@ bNodeTree *ntreeLocalize(bNodeTree *ntree)
/* Make full copy.
* Note: previews are not copied here.
*/
- ltree = ntreeCopyTree_internal(ntree, NULL, false, false, false);
+ ltree = ntreeCopyTree_internal(ntree, G.main, false, false, false);
ltree->flag |= NTREE_IS_LOCALIZED;
for (node = ltree->nodes.first; node; node = node->next) {