Commit: 6866b1888e4ea7a8ce8acf788e499146cbe3a5ed
Author: Gaia Clary
Date:   Sun May 29 01:30:20 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rB6866b1888e4ea7a8ce8acf788e499146cbe3a5ed

fixed some incompatible definitions (to make this work also on linux)

===================================================================

M       source/blender/collada/collada_utils.cpp

===================================================================

diff --git a/source/blender/collada/collada_utils.cpp 
b/source/blender/collada/collada_utils.cpp
index 5a84eed..1377563 100644
--- a/source/blender/collada/collada_utils.cpp
+++ b/source/blender/collada/collada_utils.cpp
@@ -516,7 +516,7 @@ void BoneExtended::set_bone_layers(std::string layerString, 
std::vector<std::str
                /* Blender uses numbers to specify layers*/
                if (isInteger(layer))
                {
-                       pos = std::stoi(layer);
+                       pos = atoi(layer.c_str());
                        if (pos >= 0 || pos < 32) {
                                this->bone_layers = 
bc_set_layer(this->bone_layers, pos);
                                continue;
@@ -549,16 +549,17 @@ std::string BoneExtended::get_bone_layers(int bitfield)
        std::string sep = "";
        int bit = 1u;
 
+       std::ostringstream ss;
        for (int i = 0; i < 32; i++)
        {
                if (bit & bitfield)
                {
-                       result += sep + std::to_string(i);
+                       ss << sep << i;
                        sep = " ";
                }
                bit = bit << 1;
        }
-       return result;
+       return ss.str();
 }
 
 int BoneExtended::get_bone_layers()

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to