Fix for Cycles (CUDA) compilation (again ...). Moved the AttributeStandard enum typed...
[blender.git] / intern / cycles / render / mesh.cpp
index 1d9683f25ccedbf5ae2ce9c681225d6d78a49ad7..7037e36f3138e4c9add5e37528b589cb010e7503 100644 (file)
@@ -366,7 +366,7 @@ void MeshManager::update_osl_attributes(Device *device, Scene *scene, vector<Att
 
                        if(req.std != ATTR_STD_NONE) {
                                /* if standard attribute, add lookup by std:: name convention */
-                               ustring stdname = ustring(string("std::") + attribute_standard_name(req.std).c_str());
+                               ustring stdname(std::string("std::") + std::string(attribute_standard_name(req.std)));
                                og->attribute_map[i][stdname] = osl_attr;
                        }
                        else if(req.name != ustring()) {